summaryrefslogtreecommitdiffstats
path: root/net/base/static_cookie_policy.h
diff options
context:
space:
mode:
authorjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-12 08:47:57 +0000
committerjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-12 08:47:57 +0000
commit4c6452d27812f765c27aefb673eee90a17edbb82 (patch)
tree3e61dc8e740278a4b2a140102b4895203508b846 /net/base/static_cookie_policy.h
parent6340f49d48a13c600319fc60f774f5ad6e3103e8 (diff)
downloadchromium_src-4c6452d27812f765c27aefb673eee90a17edbb82.zip
chromium_src-4c6452d27812f765c27aefb673eee90a17edbb82.tar.gz
chromium_src-4c6452d27812f765c27aefb673eee90a17edbb82.tar.bz2
Clarify wording around blocking 3rd party cookies and add lab to block reading of 3rd party cookies
BUG=69066 TEST=net_unittests Review URL: http://codereview.chromium.org/6207005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71148 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/static_cookie_policy.h')
-rw-r--r--net/base/static_cookie_policy.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/net/base/static_cookie_policy.h b/net/base/static_cookie_policy.h
index 4633161..815aadc 100644
--- a/net/base/static_cookie_policy.h
+++ b/net/base/static_cookie_policy.h
@@ -23,10 +23,17 @@ namespace net {
//
class StaticCookiePolicy : public CookiePolicy {
public:
+ // Do not change the order of these types as they are persisted in
+ // preferences.
enum Type {
- ALLOW_ALL_COOKIES = 0, // Do not perform any cookie blocking.
- BLOCK_THIRD_PARTY_COOKIES, // Prevent third-party cookies from being set.
- BLOCK_ALL_COOKIES // Disable cookies.
+ // Do not perform any cookie blocking.
+ ALLOW_ALL_COOKIES = 0,
+ // Prevent only third-party cookies from being set.
+ BLOCK_SETTING_THIRD_PARTY_COOKIES,
+ // Block all cookies (third-party or not) from begin set or read.
+ BLOCK_ALL_COOKIES,
+ // Prevent only third-party cookies from being set or read.
+ BLOCK_ALL_THIRD_PARTY_COOKIES
};
StaticCookiePolicy()