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

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: indent fixed 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..a4938139ac76cceee57d898b5a26e1970cc70c64 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"
@@ -121,6 +122,11 @@ class DataReductionProxySettings
net::URLRequestContextGetter* url_request_context_getter,
scoped_ptr<DataReductionProxyConfigurator> configurator);
+ // Sets the |on_data_reduction_proxy_enabled_| callback and runs to register
+ // the DataReductionProxyEnabled synthetic field trial.
+ void SetOnDataReductionEnabledCallback(
+ 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.
void SetProxyConfigurator(
@@ -310,6 +316,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