| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_DELEGA
TE_H_ | 5 #ifndef COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_DELEGA
TE_H_ |
| 6 #define COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_DELEGA
TE_H_ | 6 #define COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_DELEGA
TE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "net/base/proxy_delegate.h" | 11 #include "net/base/proxy_delegate.h" |
| 12 #include "net/proxy/proxy_retry_info.h" | 12 #include "net/proxy/proxy_retry_info.h" |
| 13 #include "net/proxy/proxy_server.h" | 13 #include "net/proxy/proxy_server.h" |
| 14 #include "url/gurl.h" | 14 #include "url/gurl.h" |
| 15 | 15 |
| 16 namespace net { | 16 namespace net { |
| 17 class HostPortPair; | 17 class HostPortPair; |
| 18 class HttpRequestHeaders; | 18 class HttpRequestHeaders; |
| 19 class HttpResponseHeaders; | 19 class HttpResponseHeaders; |
| 20 class NetLog; | 20 class NetLog; |
| 21 class ProxyConfig; | 21 class ProxyConfig; |
| 22 class ProxyInfo; | 22 class ProxyInfo; |
| 23 class ProxyService; | 23 class ProxyService; |
| 24 class URLRequest; | |
| 25 } | 24 } |
| 26 | 25 |
| 27 namespace data_reduction_proxy { | 26 namespace data_reduction_proxy { |
| 28 | 27 |
| 29 class DataReductionProxyBypassStats; | 28 class DataReductionProxyBypassStats; |
| 30 class DataReductionProxyConfig; | 29 class DataReductionProxyConfig; |
| 31 class DataReductionProxyConfigurator; | 30 class DataReductionProxyConfigurator; |
| 32 class DataReductionProxyEventCreator; | 31 class DataReductionProxyEventCreator; |
| 33 class DataReductionProxyRequestOptions; | |
| 34 | 32 |
| 35 class DataReductionProxyDelegate : public net::ProxyDelegate { | 33 class DataReductionProxyDelegate : public net::ProxyDelegate { |
| 36 public: | 34 public: |
| 37 // ProxyDelegate instance is owned by io_thread. |auth_handler| and |config| | 35 // ProxyDelegate instance is owned by io_thread. |auth_handler| and |config| |
| 38 // outlives this class instance. | 36 // outlives this class instance. |
| 39 explicit DataReductionProxyDelegate( | 37 explicit DataReductionProxyDelegate( |
| 40 DataReductionProxyConfig* config, | 38 DataReductionProxyConfig* config, |
| 41 const DataReductionProxyConfigurator* configurator, | 39 const DataReductionProxyConfigurator* configurator, |
| 42 DataReductionProxyEventCreator* event_creator, | 40 DataReductionProxyEventCreator* event_creator, |
| 43 DataReductionProxyBypassStats* bypass_stats, | 41 DataReductionProxyBypassStats* bypass_stats, |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 // This is visible for test purposes. | 122 // This is visible for test purposes. |
| 125 void OnResolveProxyHandler(const GURL& url, | 123 void OnResolveProxyHandler(const GURL& url, |
| 126 const std::string& method, | 124 const std::string& method, |
| 127 const net::ProxyConfig& data_reduction_proxy_config, | 125 const net::ProxyConfig& data_reduction_proxy_config, |
| 128 const net::ProxyRetryInfoMap& proxy_retry_info, | 126 const net::ProxyRetryInfoMap& proxy_retry_info, |
| 129 const DataReductionProxyConfig* config, | 127 const DataReductionProxyConfig* config, |
| 130 net::ProxyInfo* result); | 128 net::ProxyInfo* result); |
| 131 } // namespace data_reduction_proxy | 129 } // namespace data_reduction_proxy |
| 132 | 130 |
| 133 #endif // COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_DEL
EGATE_H_ | 131 #endif // COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_DEL
EGATE_H_ |
| OLD | NEW |