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

Unified Diff: net/base/network_delegate_impl.h

Issue 940373002: First-Party Cookies: Wire it up as an experimental web platform feature (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@first-party
Patch Set: Created 5 years, 10 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/base/network_delegate_impl.h
diff --git a/net/base/network_delegate_impl.h b/net/base/network_delegate_impl.h
index aa87bd46f03445814b6c515e28fc4f7d8f4f5fb0..84f5302baad7d5436567649ba4719dc5a498ad55 100644
--- a/net/base/network_delegate_impl.h
+++ b/net/base/network_delegate_impl.h
@@ -184,6 +184,13 @@ class NET_EXPORT NetworkDelegateImpl : public NetworkDelegate {
const GURL& url,
const GURL& first_party_for_cookies) const override;
+ // Returns true if the embedder has enabled the "first-party" cookie
+ // experiment, and false otherwise.
+ //
+ // TODO(mkwst): Remove this once we decide whether or not we wish to ship
+ // first-party cookies. https://crbug.com/459154
+ bool OnFirstPartyCookieExperimentEnabled() const override;
+
// Called when the |referrer_url| for requesting |target_url| during handling
// of the |request| is does not comply with the referrer policy (e.g. a
// secure referrer for an insecure initial target).

Powered by Google App Engine
This is Rietveld 408576698