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

Unified Diff: components/data_reduction_proxy/browser/data_reduction_proxy_settings.h

Issue 421653005: Adding synthetic field trial for DataReductionProxyEnabled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@newPltWithCL
Patch Set: Created 6 years, 5 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/data_reduction_proxy/browser/data_reduction_proxy_settings.h
diff --git a/components/data_reduction_proxy/browser/data_reduction_proxy_settings.h b/components/data_reduction_proxy/browser/data_reduction_proxy_settings.h
index 59b215738900863b0b725b45f6d26463ac4bbe16..87c508fbb0e32ace66853d8fc5b77d87625cb4ec 100644
--- a/components/data_reduction_proxy/browser/data_reduction_proxy_settings.h
+++ b/components/data_reduction_proxy/browser/data_reduction_proxy_settings.h
@@ -8,6 +8,7 @@
#include <vector>
#include "base/basictypes.h"
+#include "base/callback.h"
#include "base/compiler_specific.h"
#include "base/gtest_prod_util.h"
#include "base/memory/scoped_ptr.h"
@@ -108,7 +109,8 @@ class DataReductionProxySettings
void InitDataReductionProxySettings(
PrefService* prefs,
PrefService* local_state_prefs,
- net::URLRequestContextGetter* url_request_context_getter);
+ net::URLRequestContextGetter* url_request_context_getter,
+ const base::Callback<void(bool)>& on_data_reduction_proxy_enabled);
// Initializes the data reduction proxy with profile and local state prefs,
// a |UrlRequestContextGetter| for canary probes, and a proxy configurator.
@@ -119,7 +121,8 @@ class DataReductionProxySettings
PrefService* prefs,
PrefService* local_state_prefs,
net::URLRequestContextGetter* url_request_context_getter,
- scoped_ptr<DataReductionProxyConfigurator> configurator);
+ scoped_ptr<DataReductionProxyConfigurator> configurator,
+ const base::Callback<void(bool)>& on_data_reduction_proxy_enabled);
// Sets the logic the embedder uses to set the networking configuration that
// causes traffic to be proxied.
@@ -310,6 +313,8 @@ class DataReductionProxySettings
net::URLRequestContextGetter* url_request_context_getter_;
+ base::Callback<void(bool)> on_data_reduction_proxy_enabled_;
+
scoped_ptr<DataReductionProxyConfigurator> configurator_;
base::ThreadChecker thread_checker_;

Powered by Google App Engine
This is Rietveld 408576698