Chromium Code Reviews| Index: components/cronet/android/cronet_data_reduction_proxy.h |
| diff --git a/components/cronet/android/cronet_data_reduction_proxy.h b/components/cronet/android/cronet_data_reduction_proxy.h |
| index ff4fa5fc8198f207943ee096dbf2983bab5e3012..4bcf7fbb01cc7bf66a53ddd5463bbe220808b40e 100644 |
| --- a/components/cronet/android/cronet_data_reduction_proxy.h |
| +++ b/components/cronet/android/cronet_data_reduction_proxy.h |
| @@ -18,20 +18,21 @@ class SingleThreadTaskRunner; |
| } |
| namespace data_reduction_proxy { |
| class DataReductionProxyIOData; |
| class DataReductionProxySettings; |
| } |
| namespace net { |
| class NetLog; |
| class NetworkDelegate; |
| +class ProxyDelegate; |
| class URLRequestContext; |
| class URLRequestContextGetter; |
| class URLRequestInterceptor; |
| } |
| namespace cronet { |
| // Wrapper and configurator of Data Reduction Proxy objects for Cronet. It |
| // configures the Data Reduction Proxy to run both its UI and IO classes on |
| // Cronet's network thread. |
| @@ -50,20 +51,22 @@ class CronetDataReductionProxy { |
| scoped_refptr<base::SingleThreadTaskRunner> task_runner, |
| net::NetLog* net_log); |
| ~CronetDataReductionProxy(); |
| // Constructs a network delegate suitable for adding Data Reduction Proxy |
| // request headers. |
| scoped_ptr<net::NetworkDelegate> CreateNetworkDelegate( |
| scoped_ptr<net::NetworkDelegate> wrapped_network_delegate); |
| + scoped_ptr<net::ProxyDelegate> CreateProxyDelegate(); |
|
mef
2016/02/29 15:38:56
could you add a comment?
|
| + |
| // Constructs a URLRequestInterceptor suitable for carrying out the Data |
| // Reduction Proxy's bypass protocol. |
| scoped_ptr<net::URLRequestInterceptor> CreateInterceptor(); |
| // Constructs a bridge between the Settings and IOData objects, sets up a |
| // context for secure proxy check requests, and enables the proxy, if |
| // |enable| is true. |
| void Init(bool enable, net::URLRequestContext* context); |
| private: |