OLD | NEW |
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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 virtual bool OnCanAccessFile(const net::URLRequest& request, | 254 virtual bool OnCanAccessFile(const net::URLRequest& request, |
255 const base::FilePath& path) const OVERRIDE; | 255 const base::FilePath& path) const OVERRIDE; |
256 virtual bool OnCanThrottleRequest( | 256 virtual bool OnCanThrottleRequest( |
257 const net::URLRequest& request) const OVERRIDE; | 257 const net::URLRequest& request) const OVERRIDE; |
258 virtual bool OnCanEnablePrivacyMode( | 258 virtual bool OnCanEnablePrivacyMode( |
259 const GURL& url, | 259 const GURL& url, |
260 const GURL& first_party_for_cookies) const OVERRIDE; | 260 const GURL& first_party_for_cookies) const OVERRIDE; |
261 virtual int OnBeforeSocketStreamConnect( | 261 virtual int OnBeforeSocketStreamConnect( |
262 net::SocketStream* stream, | 262 net::SocketStream* stream, |
263 const net::CompletionCallback& callback) OVERRIDE; | 263 const net::CompletionCallback& callback) OVERRIDE; |
| 264 virtual bool OnCanCorrectInvalidReferrerHeader( |
| 265 const net::URLRequest& request, |
| 266 const GURL& target_url, |
| 267 const GURL& referrer_url) const OVERRIDE; |
264 | 268 |
265 void AccumulateContentLength( | 269 void AccumulateContentLength( |
266 int64 received_payload_byte_count, | 270 int64 received_payload_byte_count, |
267 int64 original_payload_byte_count, | 271 int64 original_payload_byte_count, |
268 data_reduction_proxy::DataReductionProxyRequestType request_type); | 272 data_reduction_proxy::DataReductionProxyRequestType request_type); |
269 | 273 |
270 scoped_ptr<ChromeExtensionsNetworkDelegate> extensions_delegate_; | 274 scoped_ptr<ChromeExtensionsNetworkDelegate> extensions_delegate_; |
271 | 275 |
272 void* profile_; | 276 void* profile_; |
273 base::FilePath profile_path_; | 277 base::FilePath profile_path_; |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 data_reduction_proxy::DataReductionProxyAuthRequestHandler* | 324 data_reduction_proxy::DataReductionProxyAuthRequestHandler* |
321 data_reduction_proxy_auth_request_handler_; | 325 data_reduction_proxy_auth_request_handler_; |
322 | 326 |
323 OnResolveProxyHandler on_resolve_proxy_handler_; | 327 OnResolveProxyHandler on_resolve_proxy_handler_; |
324 ProxyConfigGetter proxy_config_getter_; | 328 ProxyConfigGetter proxy_config_getter_; |
325 | 329 |
326 DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate); | 330 DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate); |
327 }; | 331 }; |
328 | 332 |
329 #endif // CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ | 333 #endif // CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ |
OLD | NEW |