OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_NET_SPDYPROXY_DATA_REDUCTION_PROXY_CHROME_SETTINGS_H_ | 5 #ifndef CHROME_BROWSER_NET_SPDYPROXY_DATA_REDUCTION_PROXY_CHROME_SETTINGS_H_ |
6 #define CHROME_BROWSER_NET_SPDYPROXY_DATA_REDUCTION_PROXY_CHROME_SETTINGS_H_ | 6 #define CHROME_BROWSER_NET_SPDYPROXY_DATA_REDUCTION_PROXY_CHROME_SETTINGS_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_requ
est_options.h" | 9 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_requ
est_options.h" |
10 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_sett
ings.h" | 10 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_sett
ings.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 // Destructs the settings object. | 42 // Destructs the settings object. |
43 ~DataReductionProxyChromeSettings() override; | 43 ~DataReductionProxyChromeSettings() override; |
44 | 44 |
45 // Initialize the settings object with the given configurator, prefs services, | 45 // Initialize the settings object with the given configurator, prefs services, |
46 // and request context. Settings takes ownership of statistics prefs from | 46 // and request context. Settings takes ownership of statistics prefs from |
47 // |io_data|. | 47 // |io_data|. |
48 void InitDataReductionProxySettings( | 48 void InitDataReductionProxySettings( |
49 data_reduction_proxy::DataReductionProxyIOData* io_data, | 49 data_reduction_proxy::DataReductionProxyIOData* io_data, |
50 PrefService* profile_prefs, | 50 PrefService* profile_prefs, |
51 PrefService* local_state_prefs, | 51 PrefService* local_state_prefs, |
52 net::URLRequestContextGetter* request_context); | 52 net::URLRequestContextGetter* request_context, |
| 53 bool enable_quic); |
53 | 54 |
54 // Gets the client type for the data reduction proxy. | 55 // Gets the client type for the data reduction proxy. |
55 static data_reduction_proxy::Client GetClient(); | 56 static data_reduction_proxy::Client GetClient(); |
56 | 57 |
57 // Public for testing. | 58 // Public for testing. |
58 void MigrateDataReductionProxyOffProxyPrefs(PrefService* prefs); | 59 void MigrateDataReductionProxyOffProxyPrefs(PrefService* prefs); |
59 | 60 |
60 private: | 61 private: |
61 // Registers the DataReductionProxyEnabled synthetic field trial with | 62 // Registers the DataReductionProxyEnabled synthetic field trial with |
62 // the group |data_reduction_proxy_enabled|. | 63 // the group |data_reduction_proxy_enabled|. |
63 void RegisterSyntheticFieldTrial(bool data_reduction_proxy_enabled); | 64 void RegisterSyntheticFieldTrial(bool data_reduction_proxy_enabled); |
64 | 65 |
65 DISALLOW_COPY_AND_ASSIGN(DataReductionProxyChromeSettings); | 66 DISALLOW_COPY_AND_ASSIGN(DataReductionProxyChromeSettings); |
66 }; | 67 }; |
67 | 68 |
68 #endif // CHROME_BROWSER_NET_SPDYPROXY_DATA_REDUCTION_PROXY_CHROME_SETTINGS_H_ | 69 #endif // CHROME_BROWSER_NET_SPDYPROXY_DATA_REDUCTION_PROXY_CHROME_SETTINGS_H_ |
OLD | NEW |