Chromium Code Reviews| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 65 | 65 |
| 66 namespace prerender { | 66 namespace prerender { |
| 67 class PrerenderTracker; | 67 class PrerenderTracker; |
| 68 } | 68 } |
| 69 | 69 |
| 70 // ChromeNetworkDelegate is the central point from within the chrome code to | 70 // ChromeNetworkDelegate is the central point from within the chrome code to |
| 71 // add hooks into the network stack. | 71 // add hooks into the network stack. |
| 72 class ChromeNetworkDelegate : public net::NetworkDelegate { | 72 class ChromeNetworkDelegate : public net::NetworkDelegate { |
| 73 public: | 73 public: |
| 74 // Provides an opportunity to interpose on proxy resolution. Called before | 74 // Provides an opportunity to interpose on proxy resolution. Called before |
| 75 // ProxyService.ResolveProxy() returns. |proxy_info| contains information | 75 // ProxyService.ResolveProxy() returns. |proxy_info| contains information |
|
mef
2014/10/30 21:05:36
There is no |proxy_info| parameter.
bengr
2014/11/03 23:26:57
Done.
| |
| 76 // about the proxy being used, and may be modified by this callback. | 76 // about the proxy being used, and may be modified by this callback. |
| 77 typedef base::Callback<void( | 77 typedef base::Callback<void( |
| 78 const GURL& url, | 78 const GURL& url, |
| 79 int load_flags, | 79 int load_flags, |
| 80 const net::ProxyConfig& data_reduction_proxy_config, | 80 const net::ProxyConfig& data_reduction_proxy_config, |
| 81 const net::ProxyConfig& proxy_service_proxy_config, | |
| 81 const net::ProxyRetryInfoMap& proxy_retry_info_map, | 82 const net::ProxyRetryInfoMap& proxy_retry_info_map, |
| 82 const data_reduction_proxy::DataReductionProxyParams* params, | 83 const data_reduction_proxy::DataReductionProxyParams* params, |
| 83 net::ProxyInfo* result)> OnResolveProxyHandler; | 84 net::ProxyInfo* result)> OnResolveProxyHandler; |
| 84 | 85 |
| 85 // Provides an additional proxy configuration that can be consulted after | 86 // Provides an additional proxy configuration that can be consulted after |
| 86 // proxy resolution. | 87 // proxy resolution. |
| 87 typedef base::Callback<const net::ProxyConfig&()> ProxyConfigGetter; | 88 typedef base::Callback<const net::ProxyConfig&()> ProxyConfigGetter; |
| 88 | 89 |
| 89 // |enable_referrers| (and all of the other optional PrefMembers) should be | 90 // |enable_referrers| (and all of the other optional PrefMembers) should be |
| 90 // initialized on the UI thread (see below) beforehand. This object's owner is | 91 // initialized on the UI thread (see below) beforehand. This object's owner is |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 327 data_reduction_proxy::DataReductionProxyStatisticsPrefs* | 328 data_reduction_proxy::DataReductionProxyStatisticsPrefs* |
| 328 data_reduction_proxy_statistics_prefs_; | 329 data_reduction_proxy_statistics_prefs_; |
| 329 | 330 |
| 330 OnResolveProxyHandler on_resolve_proxy_handler_; | 331 OnResolveProxyHandler on_resolve_proxy_handler_; |
| 331 ProxyConfigGetter proxy_config_getter_; | 332 ProxyConfigGetter proxy_config_getter_; |
| 332 | 333 |
| 333 DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate); | 334 DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate); |
| 334 }; | 335 }; |
| 335 | 336 |
| 336 #endif // CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ | 337 #endif // CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ |
| OLD | NEW |