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

Unified Diff: net/cookies/cookie_options.h

Issue 1413623002: Convert 'CookieOptions::first_party_url' to a 'url::Origin'. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. 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
« no previous file with comments | « net/cookies/cookie_monster.cc ('k') | net/url_request/url_request.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 9b408861c6e8ee81d7462514a21619a990598fb4..1162c96f1d2d036a65e9e6f548ea1697e345e15d 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 {
@@ -32,8 +33,8 @@ class NET_EXPORT CookieOptions {
void set_include_first_party_only() { include_first_party_only_ = true; }
bool include_first_party_only() const { return include_first_party_only_; }
- void set_first_party_url(const GURL& url) { first_party_url_ = url; }
- GURL first_party_url() const { return first_party_url_; }
+ void set_first_party(const url::Origin& origin) { first_party_ = origin; }
+ const url::Origin& first_party() const { return first_party_; }
// TODO(estark): Remove once we decide whether to ship cookie
// prefixes. https://crbug.com/541511
@@ -52,7 +53,7 @@ class NET_EXPORT CookieOptions {
private:
bool exclude_httponly_;
bool include_first_party_only_;
- GURL first_party_url_;
+ url::Origin first_party_;
bool enforce_prefixes_;
base::Time server_time_;
};
« no previous file with comments | « net/cookies/cookie_monster.cc ('k') | net/url_request/url_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698