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

Unified Diff: components/data_reduction_proxy/core/common/data_reduction_proxy_event_creator.h

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_creator.h
diff --git a/components/data_reduction_proxy/core/common/data_reduction_proxy_event_creator.h b/components/data_reduction_proxy/core/common/data_reduction_proxy_event_creator.h
index cd37e83bca088ae21b3641a0a1c5c9d428fedad4..b85f0e2a76cf49b59b6722201ef1270067eb29d0 100644
--- a/components/data_reduction_proxy/core/common/data_reduction_proxy_event_creator.h
+++ b/components/data_reduction_proxy/core/common/data_reduction_proxy_event_creator.h
@@ -80,6 +80,18 @@ class DataReductionProxyEventCreator {
int http_response_code,
bool succeeded);
+ // Adds a DATA_REDUCTION_PROXY_CONFIG_REQUEST event to the event store
+ // when the config request has started.
+ void BeginConfigRequest(const net::BoundNetLog& net_log, const GURL& url);
+
+ // Adds a DATA_REDUCTION_PROXY_CONFIG_REQUEST event to the event store
+ // when the config request has ended.
+ void EndConfigRequest(const net::BoundNetLog& net_log,
+ int net_error,
+ int http_response_code,
+ int failure_count,
+ const base::TimeDelta& retry_delay);
+
private:
// Prepare and post enabling/disabling proxy events for the event store on the
// a net::NetLog.
@@ -106,6 +118,14 @@ class DataReductionProxyEventCreator {
DataReductionProxyEventStorageDelegate::SecureProxyCheckState state,
const net::NetLog::ParametersCallback& callback);
+ // Prepare and post a config request event for the event store on a
+ // BoundNetLog.
+ void PostBoundNetLogConfigRequestEvent(
+ const net::BoundNetLog& net_log,
+ net::NetLog::EventType type,
+ net::NetLog::EventPhase phase,
+ const net::NetLog::ParametersCallback& callback);
+
// Must outlive |this|. Used for posting calls to the UI thread.
DataReductionProxyEventStorageDelegate* storage_delegate_;

Powered by Google App Engine
This is Rietveld 408576698