Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(874)

Unified Diff: components/cronet/android/cronet_data_reduction_proxy.h

Issue 1725123005: Passing in a Data Reduction Proxy Delegate from Cronet with Data Reduction Proxy Enabled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding a comment Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | components/cronet/android/cronet_data_reduction_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..c67ed78d11ae383781a32e2236803b4e171b559d 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,24 @@ 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);
+ // Constructs a proxy delegate suitable for adding Data Reduction Proxy
+ // proxy resolution.
+ scoped_ptr<net::ProxyDelegate> CreateProxyDelegate();
+
// 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:
« no previous file with comments | « no previous file | components/cronet/android/cronet_data_reduction_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698