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

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_service.cc

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 side-by-side diff with in-line comments
Download patch
Index: components/data_reduction_proxy/core/browser/data_reduction_proxy_service.cc
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_service.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_service.cc
index 5778286373df44f1b24a607c447dafcfa1e48df2..3672112969bef33f8256b98f13e0e947bd10ef9b 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_service.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_service.cc
@@ -12,6 +12,7 @@
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_service_observer.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.h"
+#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_store.h"
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_event_store.h"
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_params.h"
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_pref_names.h"
@@ -69,14 +70,17 @@ void DataReductionProxyService::Shutdown() {
void DataReductionProxyService::EnableCompressionStatisticsLogging(
PrefService* prefs,
- scoped_refptr<base::SequencedTaskRunner> ui_task_runner,
+ scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner,
+ scoped_refptr<base::SingleThreadTaskRunner> db_task_runner,
const base::TimeDelta& commit_delay) {
DCHECK(CalledOnValidThread());
DCHECK(!compression_stats_);
DCHECK(!prefs_);
prefs_ = prefs;
+ scoped_refptr<DataReductionProxyStore> store(
+ new DummyDataReductionProxyStore());
compression_stats_.reset(new DataReductionProxyCompressionStats(
- prefs_, ui_task_runner, commit_delay));
+ prefs_, ui_task_runner, db_task_runner, store, commit_delay));
}
void DataReductionProxyService::UpdateContentLengths(

Powered by Google App Engine
This is Rietveld 408576698