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

Side by Side Diff: chrome/browser/net/chrome_network_delegate.h

Issue 1032063002: Enable 'First-Party-Only' cookies by default. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Friend. 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;
180 bool OnCancelURLRequestWithPolicyViolatingReferrerHeader( 179 bool OnCancelURLRequestWithPolicyViolatingReferrerHeader(
181 const net::URLRequest& request, 180 const net::URLRequest& request,
182 const GURL& target_url, 181 const GURL& target_url,
183 const GURL& referrer_url) const override; 182 const GURL& referrer_url) const override;
184 183
185 void AccumulateContentLength( 184 void AccumulateContentLength(
186 int64 received_payload_byte_count, 185 int64 received_payload_byte_count,
187 int64 original_payload_byte_count); 186 int64 original_payload_byte_count);
188 187
189 scoped_ptr<ChromeExtensionsNetworkDelegate> extensions_delegate_; 188 scoped_ptr<ChromeExtensionsNetworkDelegate> extensions_delegate_;
(...skipping 21 matching lines...) Expand all
211 static bool g_allow_file_access_; 210 static bool g_allow_file_access_;
212 211
213 // True if OnCanThrottleRequest should always return false. 212 // True if OnCanThrottleRequest should always return false.
214 // 213 //
215 // Note: This needs to be static as the instance of 214 // Note: This needs to be static as the instance of
216 // ChromeNetworkDelegate used may change over time, and we need to 215 // ChromeNetworkDelegate used may change over time, and we need to
217 // set this variable once at start-up time. It is effectively 216 // set this variable once at start-up time. It is effectively
218 // static anyway since it is based on a command-line flag. 217 // static anyway since it is based on a command-line flag.
219 static bool g_never_throttle_requests_; 218 static bool g_never_throttle_requests_;
220 219
221 bool experimental_web_platform_features_enabled_;
222
223 bool first_request_; 220 bool first_request_;
224 221
225 DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate); 222 DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate);
226 }; 223 };
227 224
228 #endif // CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ 225 #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