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

Unified Diff: components/data_reduction_proxy/core/common/data_reduction_proxy_event_store.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/common/data_reduction_proxy_event_store.cc
diff --git a/components/data_reduction_proxy/core/common/data_reduction_proxy_event_store.cc b/components/data_reduction_proxy/core/common/data_reduction_proxy_event_store.cc
index b0734b61204a0c0dc7c94aa437a6036bb7da2851..3fefcc469c3d1542e17315beea4cce58968faaad 100644
--- a/components/data_reduction_proxy/core/common/data_reduction_proxy_event_store.cc
+++ b/components/data_reduction_proxy/core/common/data_reduction_proxy_event_store.cc
@@ -101,43 +101,43 @@ base::Value* DataReductionProxyEventStore::GetSummaryValue() const {
return data_reduction_proxy_values.release();
}
-void DataReductionProxyEventStore::AddEvent(scoped_ptr<base::Value> entry) {
+void DataReductionProxyEventStore::AddEvent(scoped_ptr<base::Value> event) {
if (stored_events_.size() == kMaxEventsToStore) {
base::Value* head = stored_events_.front();
stored_events_.pop_front();
delete head;
}
- stored_events_.push_back(entry.release());
+ stored_events_.push_back(event.release());
}
void DataReductionProxyEventStore::AddEnabledEvent(
- scoped_ptr<base::Value> entry,
+ scoped_ptr<base::Value> event,
bool enabled) {
DCHECK(thread_checker_.CalledOnValidThread());
enabled_ = enabled;
if (enabled)
- current_configuration_.reset(entry->DeepCopy());
+ current_configuration_.reset(event->DeepCopy());
else
current_configuration_.reset();
- AddEvent(entry.Pass());
+ AddEvent(event.Pass());
}
void DataReductionProxyEventStore::AddEventAndSecureProxyCheckState(
- scoped_ptr<base::Value> entry,
+ scoped_ptr<base::Value> event,
SecureProxyCheckState state) {
DCHECK(thread_checker_.CalledOnValidThread());
secure_proxy_check_state_ = state;
- AddEvent(entry.Pass());
+ AddEvent(event.Pass());
}
void DataReductionProxyEventStore::AddAndSetLastBypassEvent(
- scoped_ptr<base::Value> entry,
+ scoped_ptr<base::Value> event,
int64 expiration_ticks) {
DCHECK(thread_checker_.CalledOnValidThread());
- last_bypass_event_.reset(entry->DeepCopy());
+ last_bypass_event_.reset(event->DeepCopy());
expiration_ticks_ = expiration_ticks;
- AddEvent(entry.Pass());
+ AddEvent(event.Pass());
}
} // namespace data_reduction_proxy
« no previous file with comments | « components/data_reduction_proxy/core/common/data_reduction_proxy_event_store.h ('k') | net/log/net_log_event_type_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698