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

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

Issue 1112513003: Put Data Reduction Proxy support in Cronet behind a gyp flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cronet
Patch Set: Created 5 years, 8 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
Index: components/cronet/android/cronet_url_request_context_adapter.h
diff --git a/components/cronet/android/cronet_url_request_context_adapter.h b/components/cronet/android/cronet_url_request_context_adapter.h
index a5859c7b2220dcfd3e5569ebc6118e44db25361c..8c6d009896db93729be6e5e86873f00727f5c01f 100644
--- a/components/cronet/android/cronet_url_request_context_adapter.h
+++ b/components/cronet/android/cronet_url_request_context_adapter.h
@@ -29,7 +29,10 @@ class ProxyConfigService;
namespace cronet {
+#if defined(DATA_REDUCTION_PROXY_SUPPORT)
class CronetDataReductionProxy;
+#endif
+
struct URLRequestContextConfig;
bool CronetUrlRequestContextAdapterRegisterJni(JNIEnv* env);
@@ -99,7 +102,10 @@ class CronetURLRequestContextAdapter {
std::queue<base::Closure> tasks_waiting_for_context_;
bool is_context_initialized_;
int default_load_flags_;
+
+#if defined(DATA_REDUCTION_PROXY_SUPPORT)
scoped_ptr<CronetDataReductionProxy> data_reduction_proxy_;
+#endif
DISALLOW_COPY_AND_ASSIGN(CronetURLRequestContextAdapter);
};

Powered by Google App Engine
This is Rietveld 408576698