| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef NET_HTTP_HTTP_SERVER_PROPERTIES_H_ | 5 #ifndef NET_HTTP_HTTP_SERVER_PROPERTIES_H_ |
| 6 #define NET_HTTP_HTTP_SERVER_PROPERTIES_H_ | 6 #define NET_HTTP_HTTP_SERVER_PROPERTIES_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 // was available when the request was issued, but an Alternate-Protocol header | 44 // was available when the request was issued, but an Alternate-Protocol header |
| 45 // was present in the response. | 45 // was present in the response. |
| 46 ALTERNATE_PROTOCOL_USAGE_MAPPING_MISSING = 3, | 46 ALTERNATE_PROTOCOL_USAGE_MAPPING_MISSING = 3, |
| 47 // Alternate Protocol was not used because it was marked broken. | 47 // Alternate Protocol was not used because it was marked broken. |
| 48 ALTERNATE_PROTOCOL_USAGE_BROKEN = 4, | 48 ALTERNATE_PROTOCOL_USAGE_BROKEN = 4, |
| 49 // Maximum value for the enum. | 49 // Maximum value for the enum. |
| 50 ALTERNATE_PROTOCOL_USAGE_MAX, | 50 ALTERNATE_PROTOCOL_USAGE_MAX, |
| 51 }; | 51 }; |
| 52 | 52 |
| 53 // Log a histogram to reflect |usage|. | 53 // Log a histogram to reflect |usage|. |
| 54 NET_EXPORT void HistogramAlternateProtocolUsage(AlternateProtocolUsage usage); | 54 NET_EXPORT void HistogramAlternateProtocolUsage(AlternateProtocolUsage usage, |
| 55 bool proxy_server_used); |
| 55 | 56 |
| 56 enum BrokenAlternateProtocolLocation { | 57 enum BrokenAlternateProtocolLocation { |
| 57 BROKEN_ALTERNATE_PROTOCOL_LOCATION_HTTP_STREAM_FACTORY_IMPL_JOB = 0, | 58 BROKEN_ALTERNATE_PROTOCOL_LOCATION_HTTP_STREAM_FACTORY_IMPL_JOB = 0, |
| 58 BROKEN_ALTERNATE_PROTOCOL_LOCATION_QUIC_STREAM_FACTORY = 1, | 59 BROKEN_ALTERNATE_PROTOCOL_LOCATION_QUIC_STREAM_FACTORY = 1, |
| 59 BROKEN_ALTERNATE_PROTOCOL_LOCATION_HTTP_STREAM_FACTORY_IMPL_JOB_ALT = 2, | 60 BROKEN_ALTERNATE_PROTOCOL_LOCATION_HTTP_STREAM_FACTORY_IMPL_JOB_ALT = 2, |
| 60 BROKEN_ALTERNATE_PROTOCOL_LOCATION_HTTP_STREAM_FACTORY_IMPL_JOB_MAIN = 3, | 61 BROKEN_ALTERNATE_PROTOCOL_LOCATION_HTTP_STREAM_FACTORY_IMPL_JOB_MAIN = 3, |
| 61 BROKEN_ALTERNATE_PROTOCOL_LOCATION_MAX, | 62 BROKEN_ALTERNATE_PROTOCOL_LOCATION_MAX, |
| 62 }; | 63 }; |
| 63 | 64 |
| 64 // Log a histogram to reflect |location|. | 65 // Log a histogram to reflect |location|. |
| (...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 359 virtual void SetMaxServerConfigsStoredInProperties( | 360 virtual void SetMaxServerConfigsStoredInProperties( |
| 360 size_t max_server_configs_stored_in_properties) = 0; | 361 size_t max_server_configs_stored_in_properties) = 0; |
| 361 | 362 |
| 362 private: | 363 private: |
| 363 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties); | 364 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties); |
| 364 }; | 365 }; |
| 365 | 366 |
| 366 } // namespace net | 367 } // namespace net |
| 367 | 368 |
| 368 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_ | 369 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_ |
| OLD | NEW |