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

Unified Diff: net/cookies/cookie_options.h

Issue 1253353004: WIP: Teach "First-Party-Only" cookies about the requestor origin. Base URL: https://chromium.googlesource.com/chromium/src.git@cookie-options
Patch Set: Created 5 years, 5 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 | « net/cookies/cookie_monster.cc ('k') | net/url_request/test_url_fetcher_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cookies/cookie_options.h
diff --git a/net/cookies/cookie_options.h b/net/cookies/cookie_options.h
index d3d7fd056b71a05cc92e322b10d8d8f7d47991a9..5a01067daf949cb772f52cdecaa6d6427f8e1605 100644
--- a/net/cookies/cookie_options.h
+++ b/net/cookies/cookie_options.h
@@ -10,6 +10,7 @@
#include "base/time/time.h"
#include "net/base/net_export.h"
#include "url/gurl.h"
+#include "url/origin.h"
namespace net {
@@ -35,6 +36,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_; }
+ void set_requestor_origin(const url::Origin& requestor_origin) {
+ requestor_origin_ = requestor_origin;
+ }
+ const url::Origin& requestor_origin() const { return requestor_origin_; }
+
// |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 +54,7 @@ class NET_EXPORT CookieOptions {
bool exclude_httponly_;
bool include_first_party_only_;
GURL first_party_url_;
+ url::Origin requestor_origin_;
base::Time server_time_;
};
« no previous file with comments | « net/cookies/cookie_monster.cc ('k') | net/url_request/test_url_fetcher_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698