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

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

Issue 937513003: Add Data Saver support to Cronet (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed boolean from api 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 d20c02fc861a8f8f58c165b65b930b461350fc98..a5859c7b2220dcfd3e5569ebc6118e44db25361c 100644
--- a/components/cronet/android/cronet_url_request_context_adapter.h
+++ b/components/cronet/android/cronet_url_request_context_adapter.h
@@ -29,6 +29,7 @@ class ProxyConfigService;
namespace cronet {
+class CronetDataReductionProxy;
struct URLRequestContextConfig;
bool CronetUrlRequestContextAdapterRegisterJni(JNIEnv* env);
@@ -98,6 +99,7 @@ class CronetURLRequestContextAdapter {
std::queue<base::Closure> tasks_waiting_for_context_;
bool is_context_initialized_;
int default_load_flags_;
+ scoped_ptr<CronetDataReductionProxy> data_reduction_proxy_;
mmenke 2015/05/07 20:22:18 BUG: For proper teardown, we need to delete whate
mmenke 2015/05/07 20:39:52 Test suggestion: In another test, use a URL that
bengr 2015/05/08 22:41:02 Can you say a little more? data_reduction_proxy_ g
bengr 2015/05/08 22:41:02 What would this test? And mind if we postpone to a
DISALLOW_COPY_AND_ASSIGN(CronetURLRequestContextAdapter);
};

Powered by Google App Engine
This is Rietveld 408576698