Chromium Code Reviews| 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, |