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

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

Issue 1043403003: Revert of Enable 'First-Party-Only' cookies by default. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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
« no previous file with comments | « content/shell/browser/shell_network_delegate.cc ('k') | net/base/layered_network_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_LAYERED_NETWORK_DELEGATE_H_ 5 #ifndef NET_BASE_LAYERED_NETWORK_DELEGATE_H_
6 #define NET_BASE_LAYERED_NETWORK_DELEGATE_H_ 6 #define NET_BASE_LAYERED_NETWORK_DELEGATE_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 #include "net/base/completion_callback.h" 10 #include "net/base/completion_callback.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 bool OnCanGetCookies(const URLRequest& request, 73 bool OnCanGetCookies(const URLRequest& request,
74 const CookieList& cookie_list) final; 74 const CookieList& cookie_list) final;
75 bool OnCanSetCookie(const URLRequest& request, 75 bool OnCanSetCookie(const URLRequest& request,
76 const std::string& cookie_line, 76 const std::string& cookie_line,
77 CookieOptions* options) final; 77 CookieOptions* options) final;
78 bool OnCanAccessFile(const URLRequest& request, 78 bool OnCanAccessFile(const URLRequest& request,
79 const base::FilePath& path) const final; 79 const base::FilePath& path) const final;
80 bool OnCanThrottleRequest(const URLRequest& request) const final; 80 bool OnCanThrottleRequest(const URLRequest& request) const final;
81 bool OnCanEnablePrivacyMode(const GURL& url, 81 bool OnCanEnablePrivacyMode(const GURL& url,
82 const GURL& first_party_for_cookies) const final; 82 const GURL& first_party_for_cookies) const final;
83 bool OnFirstPartyOnlyCookieExperimentEnabled() const final;
83 bool OnCancelURLRequestWithPolicyViolatingReferrerHeader( 84 bool OnCancelURLRequestWithPolicyViolatingReferrerHeader(
84 const URLRequest& request, 85 const URLRequest& request,
85 const GURL& target_url, 86 const GURL& target_url,
86 const GURL& referrer_url) const final; 87 const GURL& referrer_url) const final;
87 88
88 protected: 89 protected:
89 virtual void OnBeforeURLRequestInternal(URLRequest* request, 90 virtual void OnBeforeURLRequestInternal(URLRequest* request,
90 const CompletionCallback& callback, 91 const CompletionCallback& callback,
91 GURL* new_url); 92 GURL* new_url);
92 93
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 146
146 virtual void OnCanAccessFileInternal(const URLRequest& request, 147 virtual void OnCanAccessFileInternal(const URLRequest& request,
147 const base::FilePath& path) const; 148 const base::FilePath& path) const;
148 149
149 virtual void OnCanThrottleRequestInternal(const URLRequest& request) const; 150 virtual void OnCanThrottleRequestInternal(const URLRequest& request) const;
150 151
151 virtual void OnCanEnablePrivacyModeInternal( 152 virtual void OnCanEnablePrivacyModeInternal(
152 const GURL& url, 153 const GURL& url,
153 const GURL& first_party_for_cookies) const; 154 const GURL& first_party_for_cookies) const;
154 155
156 virtual void OnFirstPartyOnlyCookieExperimentEnabledInternal() const;
157
155 virtual void OnCancelURLRequestWithPolicyViolatingReferrerHeaderInternal( 158 virtual void OnCancelURLRequestWithPolicyViolatingReferrerHeaderInternal(
156 const URLRequest& request, 159 const URLRequest& request,
157 const GURL& target_url, 160 const GURL& target_url,
158 const GURL& referrer_url) const; 161 const GURL& referrer_url) const;
159 162
160 private: 163 private:
161 scoped_ptr<NetworkDelegate> nested_network_delegate_; 164 scoped_ptr<NetworkDelegate> nested_network_delegate_;
162 }; 165 };
163 166
164 } // namespace net 167 } // namespace net
165 168
166 #endif // NET_BASE_LAYERED_NETWORK_DELEGATE_H_ 169 #endif // NET_BASE_LAYERED_NETWORK_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/shell/browser/shell_network_delegate.cc ('k') | net/base/layered_network_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698