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_; |
}; |