summaryrefslogtreecommitdiffstats
path: root/chrome_frame/utils.cc
diff options
context:
space:
mode:
authorananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-19 16:50:43 +0000
committerananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-19 16:50:43 +0000
commit80b5a8d9ebf236533f154e87b18c9130835ccf06 (patch)
tree72db1dce801baa370e4f9536820edd7f8f1048a3 /chrome_frame/utils.cc
parent84e1dff96238dfede15aed36ee2a9bf5a71dd9f9 (diff)
downloadchromium_src-80b5a8d9ebf236533f154e87b18c9130835ccf06.zip
chromium_src-80b5a8d9ebf236533f154e87b18c9130835ccf06.tar.gz
chromium_src-80b5a8d9ebf236533f154e87b18c9130835ccf06.tar.bz2
Initial support for IE View->Privacy. To support this menu option the active document now implements
the Exec command for the CGID_ShellDocView group and command id 75. We invoke the DoPrivacyDlg function exported by shdocvw and pass in our implementation of the IEnumPrivacyServices interface. The actual privacy data is gathered and maintained by the UrlmonUrlRequestManager. If we detect a privacy violation we notify the shell browser via the ITridentService2::FirePrivacyImpactedStateChange function which ensures that IE displays the privacy icon. Thanks to stoyan for his help in getting this done. I will add tests in a followup CL. Fixes bug http://code.google.com/p/chromium/issues/detail?id=25479 Bug=25479 Review URL: http://codereview.chromium.org/1127003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42113 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/utils.cc')
-rw-r--r--chrome_frame/utils.cc27
1 files changed, 27 insertions, 0 deletions
diff --git a/chrome_frame/utils.cc b/chrome_frame/utils.cc
index 4e6b843..bec0595 100644
--- a/chrome_frame/utils.cc
+++ b/chrome_frame/utils.cc
@@ -902,3 +902,30 @@ std::wstring GuidToString(const GUID& guid) {
::StringFromGUID2(guid, WriteInto(&ret, 39), 39);
return ret;
}
+
+int32 MapCookieStateToCookieAction(InternetCookieState cookie_state) {
+ int32 cookie_action = COOKIEACTION_NONE;
+
+ switch (cookie_state) {
+ case COOKIE_STATE_UNKNOWN:
+ cookie_action = COOKIEACTION_NONE;
+ break;
+ case COOKIE_STATE_ACCEPT:
+ cookie_action = COOKIEACTION_ACCEPT;
+ break;
+ case COOKIE_STATE_LEASH:
+ cookie_action = COOKIEACTION_LEASH;
+ break;
+ case COOKIE_STATE_DOWNGRADE:
+ cookie_action = COOKIEACTION_DOWNGRADE;
+ break;
+ case COOKIE_STATE_REJECT:
+ cookie_action = COOKIEACTION_REJECT;
+ break;
+ default:
+ cookie_action = COOKIEACTION_REJECT;
+ break;
+ }
+ return cookie_action;
+}
+