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

Side by Side Diff: net/base/network_delegate_impl.h

Issue 1393193005: Implement $Secure- cookie prefix (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add another test 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 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 // is not tracked by the server. Usually is false, unless user privacy 203 // is not tracked by the server. Usually is false, unless user privacy
204 // settings block cookies from being get or set. 204 // settings block cookies from being get or set.
205 bool OnCanEnablePrivacyMode( 205 bool OnCanEnablePrivacyMode(
206 const GURL& url, 206 const GURL& url,
207 const GURL& first_party_for_cookies) const override; 207 const GURL& first_party_for_cookies) const override;
208 208
209 // Returns true if the embedder has enabled the "first-party" cookie 209 // Returns true if the embedder has enabled the "first-party" cookie
210 // experiment, and false otherwise. 210 // experiment, and false otherwise.
211 // 211 //
212 // TODO(mkwst): Remove this once we decide whether or not we wish to ship 212 // TODO(mkwst): Remove this once we decide whether or not we wish to ship
213 // first-party cookies. https://crbug.com/459154 213 // first-party cookies and cookie prefixes. https://crbug.com/459154,
214 bool OnFirstPartyOnlyCookieExperimentEnabled() const override; 214 // https://crbug.com/541511
215 bool OnExperimentalFeaturesEnabled() const override;
215 216
216 // Called when the |referrer_url| for requesting |target_url| during handling 217 // Called when the |referrer_url| for requesting |target_url| during handling
217 // of the |request| is does not comply with the referrer policy (e.g. a 218 // of the |request| is does not comply with the referrer policy (e.g. a
218 // secure referrer for an insecure initial target). 219 // secure referrer for an insecure initial target).
219 // Returns true if the request should be cancelled. Otherwise, the referrer 220 // Returns true if the request should be cancelled. Otherwise, the referrer
220 // header is stripped from the request. 221 // header is stripped from the request.
221 bool OnCancelURLRequestWithPolicyViolatingReferrerHeader( 222 bool OnCancelURLRequestWithPolicyViolatingReferrerHeader(
222 const URLRequest& request, 223 const URLRequest& request,
223 const GURL& target_url, 224 const GURL& target_url,
224 const GURL& referrer_url) const override; 225 const GURL& referrer_url) const override;
225 }; 226 };
226 227
227 } // namespace net 228 } // namespace net
228 229
229 #endif // NET_BASE_NETWORK_DELEGATE_IMPL_H_ 230 #endif // NET_BASE_NETWORK_DELEGATE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698