| 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_;
|
|
|