Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_NET_SPDYPROXY_DATA_REDUCTION_PROXY_CHROME_SETTINGS_H_ | |
| 6 #define CHROME_BROWSER_NET_SPDYPROXY_DATA_REDUCTION_PROXY_CHROME_SETTINGS_H_ | |
| 7 | |
| 8 #include "components/data_reduction_proxy/browser/data_reduction_proxy_settings. h" | |
| 9 #include "components/keyed_service/core/keyed_service.h" | |
| 10 | |
| 11 namespace data_reduction_proxy { | |
| 12 class DataReductionProxyParams; | |
| 13 } | |
| 14 | |
| 15 class Profile; | |
| 16 | |
| 17 // Data reduction proxy settings class suitable for use with a Chrome browser. | |
| 18 // It is keyed to a browser context. | |
| 19 class DataReductionProxyChromeSettings | |
| 20 : public data_reduction_proxy::DataReductionProxySettings, | |
| 21 public KeyedService { | |
| 22 public: | |
| 23 // Constructs a settings object with the given configuration parameters. | |
| 24 // Construction and destruction must happen on the UI thread. | |
| 25 explicit DataReductionProxyChromeSettings( | |
| 26 data_reduction_proxy::DataReductionProxyParams* params); | |
| 27 | |
| 28 // Destructs the settings object. | |
| 29 virtual ~DataReductionProxyChromeSettings(); | |
| 30 | |
| 31 // Initialize the settings object with the given profile, which it uses to | |
| 32 // get the appropriate pref service. | |
| 33 virtual void InitDataReductionProxySettings(Profile* profile); | |
|
willchan no longer on Chromium
2014/07/28 15:45:22
Why is this virtual? Is it overridden somewhere (I
bengr
2014/07/28 20:29:04
Done.
| |
| 34 | |
| 35 private: | |
| 36 DISALLOW_COPY_AND_ASSIGN(DataReductionProxyChromeSettings); | |
| 37 }; | |
| 38 | |
| 39 #endif // CHROME_BROWSER_NET_SPDYPROXY_DATA_REDUCTION_PROXY_CHROME_SETTINGS_H_ | |
| OLD | NEW |