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..fd7be05d0fa3676ad640d7195b710b96d732db54 100644 |
| --- a/net/http/http_server_properties.h |
| +++ b/net/http/http_server_properties.h |
| @@ -50,8 +50,20 @@ enum AlternateProtocolUsage { |
| ALTERNATE_PROTOCOL_USAGE_MAX, |
| }; |
| +enum AlternativeProxyUsage { |
|
tbansal1
2016/09/23 00:02:07
nit: this enum can also move to anonymous namespac
|
| + // 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, |
| +}; |
| + |
| // 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, |