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

Side by Side Diff: chrome/browser/net/chrome_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 | « no previous file | chrome/browser/net/chrome_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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_
6 #define CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ 6 #define CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 const net::CookieList& cookie_list) override; 169 const net::CookieList& cookie_list) override;
170 bool OnCanSetCookie(const net::URLRequest& request, 170 bool OnCanSetCookie(const net::URLRequest& request,
171 const std::string& cookie_line, 171 const std::string& cookie_line,
172 net::CookieOptions* options) override; 172 net::CookieOptions* options) override;
173 bool OnCanAccessFile(const net::URLRequest& request, 173 bool OnCanAccessFile(const net::URLRequest& request,
174 const base::FilePath& path) const override; 174 const base::FilePath& path) const override;
175 bool OnCanThrottleRequest(const net::URLRequest& request) const override; 175 bool OnCanThrottleRequest(const net::URLRequest& request) const override;
176 bool OnCanEnablePrivacyMode( 176 bool OnCanEnablePrivacyMode(
177 const GURL& url, 177 const GURL& url,
178 const GURL& first_party_for_cookies) const override; 178 const GURL& first_party_for_cookies) const override;
179 bool OnFirstPartyOnlyCookieExperimentEnabled() const override;
179 bool OnCancelURLRequestWithPolicyViolatingReferrerHeader( 180 bool OnCancelURLRequestWithPolicyViolatingReferrerHeader(
180 const net::URLRequest& request, 181 const net::URLRequest& request,
181 const GURL& target_url, 182 const GURL& target_url,
182 const GURL& referrer_url) const override; 183 const GURL& referrer_url) const override;
183 184
184 void AccumulateContentLength( 185 void AccumulateContentLength(
185 int64 received_payload_byte_count, 186 int64 received_payload_byte_count,
186 int64 original_payload_byte_count); 187 int64 original_payload_byte_count);
187 188
188 scoped_ptr<ChromeExtensionsNetworkDelegate> extensions_delegate_; 189 scoped_ptr<ChromeExtensionsNetworkDelegate> extensions_delegate_;
(...skipping 21 matching lines...) Expand all
210 static bool g_allow_file_access_; 211 static bool g_allow_file_access_;
211 212
212 // True if OnCanThrottleRequest should always return false. 213 // True if OnCanThrottleRequest should always return false.
213 // 214 //
214 // Note: This needs to be static as the instance of 215 // Note: This needs to be static as the instance of
215 // ChromeNetworkDelegate used may change over time, and we need to 216 // ChromeNetworkDelegate used may change over time, and we need to
216 // set this variable once at start-up time. It is effectively 217 // set this variable once at start-up time. It is effectively
217 // static anyway since it is based on a command-line flag. 218 // static anyway since it is based on a command-line flag.
218 static bool g_never_throttle_requests_; 219 static bool g_never_throttle_requests_;
219 220
221 bool experimental_web_platform_features_enabled_;
222
220 bool first_request_; 223 bool first_request_;
221 224
222 DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate); 225 DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate);
223 }; 226 };
224 227
225 #endif // CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ 228 #endif // CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/net/chrome_network_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698