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 "components/data_reduction_proxy/browser/data_reduction_proxy_settings.
h" | 8 #include "components/data_reduction_proxy/browser/data_reduction_proxy_settings.
h" |
9 #include "components/keyed_service/core/keyed_service.h" | 9 #include "components/keyed_service/core/keyed_service.h" |
10 | 10 |
(...skipping 14 matching lines...) Expand all Loading... |
25 explicit DataReductionProxyChromeSettings( | 25 explicit DataReductionProxyChromeSettings( |
26 data_reduction_proxy::DataReductionProxyParams* params); | 26 data_reduction_proxy::DataReductionProxyParams* params); |
27 | 27 |
28 // Destructs the settings object. | 28 // Destructs the settings object. |
29 virtual ~DataReductionProxyChromeSettings(); | 29 virtual ~DataReductionProxyChromeSettings(); |
30 | 30 |
31 // Initialize the settings object with the given profile, which it uses to | 31 // Initialize the settings object with the given profile, which it uses to |
32 // get the appropriate pref service. | 32 // get the appropriate pref service. |
33 virtual void InitDataReductionProxySettings(Profile* profile); | 33 virtual void InitDataReductionProxySettings(Profile* profile); |
34 | 34 |
| 35 // Using the chrome::VersionInfo version, returns the build and patch portion |
| 36 // of the string delimited by a period. If the chrome::VersionInfo version |
| 37 // isn't of the form xx.xx.xx.xx returns an empty string. |
| 38 static std::string GetBuildAndPatchNumber(); |
| 39 |
| 40 // Gets the client type for the data reduction proxy. |
| 41 static std::string GetClient(); |
| 42 |
35 private: | 43 private: |
36 // Registers the DataReductionProxyEnabled synthetic field trial with | 44 // Registers the DataReductionProxyEnabled synthetic field trial with |
37 // the group |data_reduction_proxy_enabled|. | 45 // the group |data_reduction_proxy_enabled|. |
38 void RegisterSyntheticFieldTrial(bool data_reduction_proxy_enabled); | 46 void RegisterSyntheticFieldTrial(bool data_reduction_proxy_enabled); |
39 | 47 |
40 DISALLOW_COPY_AND_ASSIGN(DataReductionProxyChromeSettings); | 48 DISALLOW_COPY_AND_ASSIGN(DataReductionProxyChromeSettings); |
41 }; | 49 }; |
42 | 50 |
43 #endif // CHROME_BROWSER_NET_SPDYPROXY_DATA_REDUCTION_PROXY_CHROME_SETTINGS_H_ | 51 #endif // CHROME_BROWSER_NET_SPDYPROXY_DATA_REDUCTION_PROXY_CHROME_SETTINGS_H_ |
OLD | NEW |