Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(290)

Side by Side Diff: chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h

Issue 1173343009: LevelDB storage for data reduction proxy to store data usage stats. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/core/browser/data_reduction_proxy_requ est_options.h" 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_sett ings.h" 9 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_sett ings.h"
10 #include "components/keyed_service/core/keyed_service.h" 10 #include "components/keyed_service/core/keyed_service.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 54
55 // Overrides KeyedService::Shutdown: 55 // Overrides KeyedService::Shutdown:
56 void Shutdown() override; 56 void Shutdown() override;
57 57
58 // Initialize the settings object with the given io_data, prefs services, 58 // Initialize the settings object with the given io_data, prefs services,
59 // request context getter, and task runner. 59 // request context getter, and task runner.
60 void InitDataReductionProxySettings( 60 void InitDataReductionProxySettings(
61 data_reduction_proxy::DataReductionProxyIOData* io_data, 61 data_reduction_proxy::DataReductionProxyIOData* io_data,
62 PrefService* profile_prefs, 62 PrefService* profile_prefs,
63 net::URLRequestContextGetter* request_context_getter, 63 net::URLRequestContextGetter* request_context_getter,
64 const scoped_refptr<base::SingleThreadTaskRunner>& ui_task_runner); 64 const std::string& profile_path,
65 const scoped_refptr<base::SingleThreadTaskRunner>& ui_task_runner,
66 const scoped_refptr<base::SingleThreadTaskRunner>& db_task_runner);
65 67
66 // Gets the client type for the data reduction proxy. 68 // Gets the client type for the data reduction proxy.
67 static data_reduction_proxy::Client GetClient(); 69 static data_reduction_proxy::Client GetClient();
68 70
69 // Public for testing. 71 // Public for testing.
70 void MigrateDataReductionProxyOffProxyPrefs(PrefService* prefs); 72 void MigrateDataReductionProxyOffProxyPrefs(PrefService* prefs);
71 73
72 private: 74 private:
73 // Helper method for migrating the Data Reduction Proxy away from using the 75 // Helper method for migrating the Data Reduction Proxy away from using the
74 // proxy pref. Returns the ProxyPrefMigrationResult value indicating the 76 // proxy pref. Returns the ProxyPrefMigrationResult value indicating the
75 // migration action taken. 77 // migration action taken.
76 ProxyPrefMigrationResult MigrateDataReductionProxyOffProxyPrefsHelper( 78 ProxyPrefMigrationResult MigrateDataReductionProxyOffProxyPrefsHelper(
77 PrefService* prefs); 79 PrefService* prefs);
78 80
79 DISALLOW_COPY_AND_ASSIGN(DataReductionProxyChromeSettings); 81 DISALLOW_COPY_AND_ASSIGN(DataReductionProxyChromeSettings);
80 }; 82 };
81 83
82 #endif // CHROME_BROWSER_NET_SPDYPROXY_DATA_REDUCTION_PROXY_CHROME_SETTINGS_H_ 84 #endif // CHROME_BROWSER_NET_SPDYPROXY_DATA_REDUCTION_PROXY_CHROME_SETTINGS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698