summaryrefslogtreecommitdiffstats
path: root/net/base/cookie_policy.h
diff options
context:
space:
mode:
authorabarth@chromium.org <abarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-23 18:11:10 +0000
committerabarth@chromium.org <abarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-23 18:11:10 +0000
commitcfd7332188b64787a9cb2b110957c0eb60b806a8 (patch)
treebd5072b446490dc3266dff44a627416f54404eb8 /net/base/cookie_policy.h
parentd62c805ec92a9e00bfd97fc5a4d35103a8e89380 (diff)
downloadchromium_src-cfd7332188b64787a9cb2b110957c0eb60b806a8.zip
chromium_src-cfd7332188b64787a9cb2b110957c0eb60b806a8.tar.gz
chromium_src-cfd7332188b64787a9cb2b110957c0eb60b806a8.tar.bz2
Rename |policy_url| to |first_party_for_cookies|. This now matches the WebKit name for this piece of data.
R=jackson BUG=None TEST=No behavior change Review URL: http://codereview.chromium.org/115743 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16843 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/cookie_policy.h')
-rw-r--r--net/base/cookie_policy.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/net/base/cookie_policy.h b/net/base/cookie_policy.h
index 89d490b..4c01705 100644
--- a/net/base/cookie_policy.h
+++ b/net/base/cookie_policy.h
@@ -15,17 +15,17 @@ namespace net {
class CookiePolicy {
public:
// Consult the user's third-party cookie blocking preferences to determine
- // whether the URL's cookies can be read if the top-level window is policy_url
- bool CanGetCookies(const GURL& url, const GURL& policy_url);
+ // whether the URL's cookies can be read.
+ bool CanGetCookies(const GURL& url, const GURL& first_party_for_cookies);
// Consult the user's third-party cookie blocking preferences to determine
- // whether the URL's cookies can be set if the top-level window is policy_url
- bool CanSetCookie(const GURL& url, const GURL& policy_url);
+ // whether the URL's cookies can be set.
+ bool CanSetCookie(const GURL& url, const GURL& first_party_for_cookies);
enum Type {
- ALLOW_ALL_COOKIES = 0, // do not perform any cookie blocking
- BLOCK_THIRD_PARTY_COOKIES, // prevent third-party cookies from being sent
- BLOCK_ALL_COOKIES // disable cookies
+ 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.
};
static bool ValidType(int32 type) {