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 18 matching lines...) Expand all Loading... | |
| 29 class Value; | 29 class Value; |
| 30 } | 30 } |
| 31 | 31 |
| 32 namespace chrome_browser_net { | 32 namespace chrome_browser_net { |
| 33 class ConnectInterceptor; | 33 class ConnectInterceptor; |
| 34 class Predictor; | 34 class Predictor; |
| 35 } | 35 } |
| 36 | 36 |
| 37 namespace data_reduction_proxy { | 37 namespace data_reduction_proxy { |
| 38 class DataReductionProxyAuthRequestHandler; | 38 class DataReductionProxyAuthRequestHandler; |
| 39 class DataReductionProxyDelayedPrefService; | |
| 39 class DataReductionProxyParams; | 40 class DataReductionProxyParams; |
| 40 class DataReductionProxyUsageStats; | 41 class DataReductionProxyUsageStats; |
| 41 } | 42 } |
| 42 | 43 |
| 43 namespace domain_reliability { | 44 namespace domain_reliability { |
| 44 class DomainReliabilityMonitor; | 45 class DomainReliabilityMonitor; |
| 45 } // namespace domain_reliability | 46 } // namespace domain_reliability |
| 46 | 47 |
| 47 namespace extensions { | 48 namespace extensions { |
| 48 class EventRouterForwarder; | 49 class EventRouterForwarder; |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 149 data_reduction_proxy_usage_stats_ = usage_stats; | 150 data_reduction_proxy_usage_stats_ = usage_stats; |
| 150 } | 151 } |
| 151 | 152 |
| 152 // |data_reduction_proxy_auth_request_handler_| must outlive this | 153 // |data_reduction_proxy_auth_request_handler_| must outlive this |
| 153 // ChromeNetworkDelegate. | 154 // ChromeNetworkDelegate. |
| 154 void set_data_reduction_proxy_auth_request_handler( | 155 void set_data_reduction_proxy_auth_request_handler( |
| 155 data_reduction_proxy::DataReductionProxyAuthRequestHandler* handler) { | 156 data_reduction_proxy::DataReductionProxyAuthRequestHandler* handler) { |
| 156 data_reduction_proxy_auth_request_handler_ = handler; | 157 data_reduction_proxy_auth_request_handler_ = handler; |
| 157 } | 158 } |
| 158 | 159 |
| 160 void set_data_reduction_proxy_delayed_pref_service( | |
| 161 data_reduction_proxy::DataReductionProxyDelayedPrefService* service) { | |
| 162 data_reduction_proxy_delayed_pref_service_ = service; | |
| 163 } | |
| 164 | |
| 159 void set_on_resolve_proxy_handler(OnResolveProxyHandler handler) { | 165 void set_on_resolve_proxy_handler(OnResolveProxyHandler handler) { |
| 160 on_resolve_proxy_handler_ = handler; | 166 on_resolve_proxy_handler_ = handler; |
| 161 } | 167 } |
| 162 | 168 |
| 163 // Adds the Client Hints header to HTTP requests. | 169 // Adds the Client Hints header to HTTP requests. |
| 164 void SetEnableClientHints(); | 170 void SetEnableClientHints(); |
| 165 | 171 |
| 166 // Causes |OnCanThrottleRequest| to always return false, for all | 172 // Causes |OnCanThrottleRequest| to always return false, for all |
| 167 // instances of this object. | 173 // instances of this object. |
| 168 static void NeverThrottleRequests(); | 174 static void NeverThrottleRequests(); |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 293 prerender::PrerenderTracker* prerender_tracker_; | 299 prerender::PrerenderTracker* prerender_tracker_; |
| 294 | 300 |
| 295 // |data_reduction_proxy_params_| must outlive this ChromeNetworkDelegate. | 301 // |data_reduction_proxy_params_| must outlive this ChromeNetworkDelegate. |
| 296 data_reduction_proxy::DataReductionProxyParams* data_reduction_proxy_params_; | 302 data_reduction_proxy::DataReductionProxyParams* data_reduction_proxy_params_; |
| 297 // |data_reduction_proxy_usage_stats_| must outlive this | 303 // |data_reduction_proxy_usage_stats_| must outlive this |
| 298 // ChromeNetworkDelegate. | 304 // ChromeNetworkDelegate. |
| 299 data_reduction_proxy::DataReductionProxyUsageStats* | 305 data_reduction_proxy::DataReductionProxyUsageStats* |
| 300 data_reduction_proxy_usage_stats_; | 306 data_reduction_proxy_usage_stats_; |
| 301 data_reduction_proxy::DataReductionProxyAuthRequestHandler* | 307 data_reduction_proxy::DataReductionProxyAuthRequestHandler* |
| 302 data_reduction_proxy_auth_request_handler_; | 308 data_reduction_proxy_auth_request_handler_; |
| 309 data_reduction_proxy::DataReductionProxyDelayedPrefService* | |
| 310 data_reduction_proxy_delayed_pref_service_; | |
|
bengr
2014/08/14 17:39:41
I would call this class DatareductionProxyStatisti
megjablon
2014/08/26 19:28:40
Done.
| |
| 303 | 311 |
| 304 OnResolveProxyHandler on_resolve_proxy_handler_; | 312 OnResolveProxyHandler on_resolve_proxy_handler_; |
| 305 | 313 |
| 306 DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate); | 314 DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate); |
| 307 }; | 315 }; |
| 308 | 316 |
| 309 #endif // CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ | 317 #endif // CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ |
| OLD | NEW |