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

Unified Diff: net/http/http_server_properties.h

Issue 2359803003: Job Controller: clean up metrics logging about the job racing result (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « no previous file | net/http/http_server_properties.cc » ('j') | net/http/http_server_properties.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_server_properties.h
diff --git a/net/http/http_server_properties.h b/net/http/http_server_properties.h
index f0ffcc5d7770d09e7b924ea23bd3be5193242b78..f90df71173ae3cc687fd41d366e8e91c6fc470a5 100644
--- a/net/http/http_server_properties.h
+++ b/net/http/http_server_properties.h
@@ -50,8 +50,23 @@ enum AlternateProtocolUsage {
ALTERNATE_PROTOCOL_USAGE_MAX,
};
+enum AlternativeProxyUsage {
+ // Alternative Proxy was used without racing a normal connection.
+ ALTERNATIVE_PROXY_USAGE_NO_RACE = 0,
+ // Alternative Proxy was used by winning a race with a normal connection.
+ ALTERNATIVE_PROXY_USAGE_WON_RACE = 1,
+ // Alternative Proxy was not used by losing a race with a normal connection.
+ ALTERNATIVE_PROXY_USAGE_LOST_RACE = 2,
+ // Maximum value for the enum.
+ ALTERNATIVE_PROXY_USAGE_MAX,
+};
+
+AlternativeProxyUsage ConvertProtocolUsageToProxyUsage(
tbansal1 2016/09/22 17:53:02 Can this all can go in anonymous namespace in http
Zhongyi Shi 2016/09/22 23:56:53 Done.
+ AlternateProtocolUsage usage);
+
// Log a histogram to reflect |usage|.
-NET_EXPORT void HistogramAlternateProtocolUsage(AlternateProtocolUsage usage);
+NET_EXPORT void HistogramAlternateProtocolUsage(AlternateProtocolUsage usage,
+ bool proxy_server_used);
enum BrokenAlternateProtocolLocation {
BROKEN_ALTERNATE_PROTOCOL_LOCATION_HTTP_STREAM_FACTORY_IMPL_JOB = 0,
« no previous file with comments | « no previous file | net/http/http_server_properties.cc » ('j') | net/http/http_server_properties.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698