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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_BASE_NETWORK_DELEGATE_IMPL_H_ 5 #ifndef NET_BASE_NETWORK_DELEGATE_IMPL_H_
6 #define NET_BASE_NETWORK_DELEGATE_IMPL_H_ 6 #define NET_BASE_NETWORK_DELEGATE_IMPL_H_
7 7
8 #include "base/strings/string16.h" 8 #include "base/strings/string16.h"
9 #include "net/base/completion_callback.h" 9 #include "net/base/completion_callback.h"
10 #include "net/base/network_delegate.h" 10 #include "net/base/network_delegate.h"
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 // request is overloaded or down. 177 // request is overloaded or down.
178 bool OnCanThrottleRequest(const URLRequest& request) const override; 178 bool OnCanThrottleRequest(const URLRequest& request) const override;
179 179
180 // Returns true if the given |url| has to be requested over connection that 180 // Returns true if the given |url| has to be requested over connection that
181 // is not tracked by the server. Usually is false, unless user privacy 181 // is not tracked by the server. Usually is false, unless user privacy
182 // settings block cookies from being get or set. 182 // settings block cookies from being get or set.
183 bool OnCanEnablePrivacyMode( 183 bool OnCanEnablePrivacyMode(
184 const GURL& url, 184 const GURL& url,
185 const GURL& first_party_for_cookies) const override; 185 const GURL& first_party_for_cookies) const override;
186 186
187 // Returns true if the embedder has enabled the "first-party" cookie
188 // experiment, and false otherwise.
189 //
190 // TODO(mkwst): Remove this once we decide whether or not we wish to ship
191 // first-party cookies. https://crbug.com/459154
192 bool OnFirstPartyCookieExperimentEnabled() const override;
193
187 // Called when the |referrer_url| for requesting |target_url| during handling 194 // Called when the |referrer_url| for requesting |target_url| during handling
188 // of the |request| is does not comply with the referrer policy (e.g. a 195 // of the |request| is does not comply with the referrer policy (e.g. a
189 // secure referrer for an insecure initial target). 196 // secure referrer for an insecure initial target).
190 // Returns true if the request should be cancelled. Otherwise, the referrer 197 // Returns true if the request should be cancelled. Otherwise, the referrer
191 // header is stripped from the request. 198 // header is stripped from the request.
192 bool OnCancelURLRequestWithPolicyViolatingReferrerHeader( 199 bool OnCancelURLRequestWithPolicyViolatingReferrerHeader(
193 const URLRequest& request, 200 const URLRequest& request,
194 const GURL& target_url, 201 const GURL& target_url,
195 const GURL& referrer_url) const override; 202 const GURL& referrer_url) const override;
196 }; 203 };
197 204
198 } // namespace net 205 } // namespace net
199 206
200 #endif // NET_BASE_NETWORK_DELEGATE_IMPL_H_ 207 #endif // NET_BASE_NETWORK_DELEGATE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698