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

Unified Diff: chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h

Issue 1221663009: Expose API to store and load data usage stats from UI task runner. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Breakdown
Patch Set: Sync to head Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h
diff --git a/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h b/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h
index 350992c245c25f576ce7e0473869523157841b19..10b5a1fa6a474e5587450bc4d90b08ec8123a2fd 100644
--- a/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h
+++ b/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h
@@ -12,11 +12,13 @@
class PrefService;
namespace base {
+class SequencedTaskRunner;
class SingleThreadTaskRunner;
}
namespace data_reduction_proxy {
class DataReductionProxyIOData;
+class DataStore;
}
namespace net {
@@ -56,12 +58,14 @@ class DataReductionProxyChromeSettings
void Shutdown() override;
// Initialize the settings object with the given io_data, prefs services,
- // request context getter, and task runner.
+ // request context getter, data store, ui task runner, and db task runner.
void InitDataReductionProxySettings(
data_reduction_proxy::DataReductionProxyIOData* io_data,
PrefService* profile_prefs,
net::URLRequestContextGetter* request_context_getter,
- const scoped_refptr<base::SingleThreadTaskRunner>& ui_task_runner);
+ scoped_ptr<data_reduction_proxy::DataStore> store,
+ const scoped_refptr<base::SingleThreadTaskRunner>& ui_task_runner,
+ const scoped_refptr<base::SequencedTaskRunner>& db_task_runner);
// Gets the client type for the data reduction proxy.
static data_reduction_proxy::Client GetClient();

Powered by Google App Engine
This is Rietveld 408576698