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

Unified Diff: net/cookies/cookie_options.h

Issue 1393193005: Implement $Secure- cookie prefix (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test fix Created 5 years, 2 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
Index: net/cookies/cookie_options.h
diff --git a/net/cookies/cookie_options.h b/net/cookies/cookie_options.h
index d3d7fd056b71a05cc92e322b10d8d8f7d47991a9..9b408861c6e8ee81d7462514a21619a990598fb4 100644
--- a/net/cookies/cookie_options.h
+++ b/net/cookies/cookie_options.h
@@ -35,6 +35,11 @@ class NET_EXPORT CookieOptions {
void set_first_party_url(const GURL& url) { first_party_url_ = url; }
GURL first_party_url() const { return first_party_url_; }
+ // TODO(estark): Remove once we decide whether to ship cookie
+ // prefixes. https://crbug.com/541511
+ void set_enforce_prefixes() { enforce_prefixes_ = true; }
+ bool enforce_prefixes() const { return enforce_prefixes_; }
+
// |server_time| indicates what the server sending us the Cookie thought the
// current time was when the cookie was produced. This is used to adjust for
// clock skew between server and host.
@@ -48,6 +53,7 @@ class NET_EXPORT CookieOptions {
bool exclude_httponly_;
bool include_first_party_only_;
GURL first_party_url_;
+ bool enforce_prefixes_;
base::Time server_time_;
};

Powered by Google App Engine
This is Rietveld 408576698