Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Unified Diff: net/base/static_cookie_policy.h

Issue 2655443003: Unify the "get" and "set" cookie access settings. (Closed)
Patch Set: rebase Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/chrome/browser/net/ios_chrome_network_delegate.cc ('k') | net/base/static_cookie_policy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/static_cookie_policy.h
diff --git a/net/base/static_cookie_policy.h b/net/base/static_cookie_policy.h
index 5adc194684bd1677b9d88650628d112492ead23c..8e33d731bb3a1fa0c7b721f23e3778e20ea9d690 100644
--- a/net/base/static_cookie_policy.h
+++ b/net/base/static_cookie_policy.h
@@ -41,13 +41,9 @@ class NET_EXPORT StaticCookiePolicy {
Type type() const { return type_; }
// Consults the user's third-party cookie blocking preferences to determine
- // whether the URL's cookies can be read.
- int CanGetCookies(const GURL& url, const GURL& first_party_for_cookies) const;
-
- // Consults the user's third-party cookie blocking preferences to determine
- // whether the URL's cookies can be set.
- int CanSetCookie(const GURL& url,
- const GURL& first_party_for_cookies) const;
+ // whether the URL's cookies can be accessed (i.e., can be get or set).
+ int CanAccessCookies(const GURL& url,
+ const GURL& first_party_for_cookies) const;
private:
Type type_;
« no previous file with comments | « ios/chrome/browser/net/ios_chrome_network_delegate.cc ('k') | net/base/static_cookie_policy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698