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

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

Issue 1105443003: Add net_log events for the Data Reduction Proxy config service client. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: bengr CR comments Created 5 years, 8 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 cf25df9380210406fbcc62f0f38d0f7c5da332fc..374489e75d608dba4c0e829c1da306f740c7a9ba 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
@@ -70,24 +70,29 @@ void DataReductionProxyService::UpdateContentLengths(
}
}
-void DataReductionProxyService::AddEnabledEvent(scoped_ptr<base::Value> entry,
+void DataReductionProxyService::AddEvent(scoped_ptr<base::Value> event) {
+ DCHECK(CalledOnValidThread());
+ event_store_->AddEvent(event.Pass());
+}
+
+void DataReductionProxyService::AddEnabledEvent(scoped_ptr<base::Value> event,
bool enabled) {
DCHECK(CalledOnValidThread());
- event_store_->AddEnabledEvent(entry.Pass(), enabled);
+ event_store_->AddEnabledEvent(event.Pass(), enabled);
}
void DataReductionProxyService::AddEventAndSecureProxyCheckState(
- scoped_ptr<base::Value> entry,
+ scoped_ptr<base::Value> event,
SecureProxyCheckState state) {
DCHECK(CalledOnValidThread());
- event_store_->AddEventAndSecureProxyCheckState(entry.Pass(), state);
+ event_store_->AddEventAndSecureProxyCheckState(event.Pass(), state);
}
void DataReductionProxyService::AddAndSetLastBypassEvent(
- scoped_ptr<base::Value> entry,
+ scoped_ptr<base::Value> event,
int64 expiration_ticks) {
DCHECK(CalledOnValidThread());
- event_store_->AddAndSetLastBypassEvent(entry.Pass(), expiration_ticks);
+ event_store_->AddAndSetLastBypassEvent(event.Pass(), expiration_ticks);
}
void DataReductionProxyService::SetUnreachable(bool unreachable) {

Powered by Google App Engine
This is Rietveld 408576698