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

Unified Diff: net/base/net_log_event_type_list.h

Issue 761903003: Update from https://crrev.com/306655 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « net/base/net_errors_win.cc ('k') | net/base/net_log_source_type_list.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/net_log_event_type_list.h
diff --git a/net/base/net_log_event_type_list.h b/net/base/net_log_event_type_list.h
index d6e61878acb09217731317d76ad7c5182d2eaf7c..ce303600417b939602cf3b0e928319333fca52c2 100644
--- a/net/base/net_log_event_type_list.h
+++ b/net/base/net_log_event_type_list.h
@@ -2418,3 +2418,64 @@ EVENT_TYPE(SDCH_DICTIONARY_FETCH)
// "net_error": <error created>
// }
EVENT_TYPE(SDCH_DICTIONARY_FETCH_IMPLIED_ERROR)
+
+// -----------------------------------------------------------------------------
+// Data Reduction Proxy events.
+// -----------------------------------------------------------------------------
+
+// This event is created when the data reduction proxy has been turned on or
+// off. It always contains the parameter:
+// {
+// "enabled": <true if the proxy is enabled>
+// }
+//
+// If it is enabled, it contains additional parameters:
+// {
+// "primary_restricted": <Whether the primary proxy is restricted or not>,
+// "fallback_restricted": <Whether the fallback proxy is restricted or not>,
+// "primary_origin": <The primary proxy origin address>,
+// "fallback_origin": <The fallback proxy origin address>,
+// "ssl_origin": <The SSL proxy origin address>,
+// }
+EVENT_TYPE(DATA_REDUCTION_PROXY_ENABLED)
+
+// The start/end of a canary request is sent to the data reduction proxy.
+//
+// The BEGIN phase contains the following parameters:
+// {
+// "url": <The URL of the canary endpoint>,
+// }
+//
+// The END phase contains the following parameters:
+// {
+// "net_error": <The net_error of the completion of the canary request>,
+// }
+EVENT_TYPE(DATA_REDUCTION_PROXY_CANARY_REQUEST)
+
+// This event is created when a response to the canary request has been
+// received with the following parameters:
+// {
+// "headers": <The list of header:value pairs>,
+// }
+EVENT_TYPE(DATA_REDUCTION_PROXY_CANARY_RESPONSE_RECEIVED)
+
+// This event is created when a bypass event takes place with the following
+// parameters:
+// {
+// "action": <For DRP proxy sourced bypasses in the chrome-proxy header,
+// the bypass type>,
+// "bypass_type": <For non-DRP proxy sourced bypasses, the bypass type>,
+// "url": <The origin URL of the remote endpoint which resulted in the
+// bypass>,
+// "bypass_duration_seconds": <The length of time to be in a bypass state>,
+// }
+EVENT_TYPE(DATA_REDUCTION_PROXY_BYPASS_REQUESTED)
+
+// This event is created when the data reduction proxy configuration changes
+// (i.e. a switch between primary and fallback) with the following parameters:
+// {
+// "proxy_server": <The URL of the proxy server no longer being used>,
+// "net_error": <The net_error encountered when using the proxy server; this
+// can be 0 if the proxy server is explicitly skipped>,
+// }
+EVENT_TYPE(DATA_REDUCTION_PROXY_FALLBACK)
« no previous file with comments | « net/base/net_errors_win.cc ('k') | net/base/net_log_source_type_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698