Chromium Code Reviews| 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/files/file_path.h" | |
|
jeremyim
2015/06/30 01:59:18
remove include, forward declare base::FilePath
Not at Google. Contact bengr
2015/07/01 17:13:48
Done.
| |
| 8 #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" |
| 9 #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" |
| 10 #include "components/keyed_service/core/keyed_service.h" | 11 #include "components/keyed_service/core/keyed_service.h" |
| 11 | 12 |
| 12 class PrefService; | 13 class PrefService; |
| 13 | 14 |
| 14 namespace base { | 15 namespace base { |
| 15 class SingleThreadTaskRunner; | 16 class SingleThreadTaskRunner; |
| 16 } | 17 } |
| 17 | 18 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 54 | 55 |
| 55 // Overrides KeyedService::Shutdown: | 56 // Overrides KeyedService::Shutdown: |
| 56 void Shutdown() override; | 57 void Shutdown() override; |
| 57 | 58 |
| 58 // Initialize the settings object with the given io_data, prefs services, | 59 // Initialize the settings object with the given io_data, prefs services, |
| 59 // request context getter, and task runner. | 60 // request context getter, and task runner. |
| 60 void InitDataReductionProxySettings( | 61 void InitDataReductionProxySettings( |
| 61 data_reduction_proxy::DataReductionProxyIOData* io_data, | 62 data_reduction_proxy::DataReductionProxyIOData* io_data, |
| 62 PrefService* profile_prefs, | 63 PrefService* profile_prefs, |
| 63 net::URLRequestContextGetter* request_context_getter, | 64 net::URLRequestContextGetter* request_context_getter, |
| 64 const scoped_refptr<base::SingleThreadTaskRunner>& ui_task_runner); | 65 const base::FilePath& profile_path, |
| 66 const scoped_refptr<base::SingleThreadTaskRunner>& ui_task_runner, | |
| 67 const scoped_refptr<base::SingleThreadTaskRunner>& db_task_runner); | |
| 65 | 68 |
| 66 // Gets the client type for the data reduction proxy. | 69 // Gets the client type for the data reduction proxy. |
| 67 static data_reduction_proxy::Client GetClient(); | 70 static data_reduction_proxy::Client GetClient(); |
| 68 | 71 |
| 69 // Public for testing. | 72 // Public for testing. |
| 70 void MigrateDataReductionProxyOffProxyPrefs(PrefService* prefs); | 73 void MigrateDataReductionProxyOffProxyPrefs(PrefService* prefs); |
| 71 | 74 |
| 72 private: | 75 private: |
| 73 // Helper method for migrating the Data Reduction Proxy away from using the | 76 // Helper method for migrating the Data Reduction Proxy away from using the |
| 74 // proxy pref. Returns the ProxyPrefMigrationResult value indicating the | 77 // proxy pref. Returns the ProxyPrefMigrationResult value indicating the |
| 75 // migration action taken. | 78 // migration action taken. |
| 76 ProxyPrefMigrationResult MigrateDataReductionProxyOffProxyPrefsHelper( | 79 ProxyPrefMigrationResult MigrateDataReductionProxyOffProxyPrefsHelper( |
| 77 PrefService* prefs); | 80 PrefService* prefs); |
| 78 | 81 |
| 79 DISALLOW_COPY_AND_ASSIGN(DataReductionProxyChromeSettings); | 82 DISALLOW_COPY_AND_ASSIGN(DataReductionProxyChromeSettings); |
| 80 }; | 83 }; |
| 81 | 84 |
| 82 #endif // CHROME_BROWSER_NET_SPDYPROXY_DATA_REDUCTION_PROXY_CHROME_SETTINGS_H_ | 85 #endif // CHROME_BROWSER_NET_SPDYPROXY_DATA_REDUCTION_PROXY_CHROME_SETTINGS_H_ |
| OLD | NEW |