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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | net/http/http_server_properties.cc » ('j') | net/http/http_server_properties.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 // Alternate Protocol was not used because no Alternate-Protocol information 43 // Alternate Protocol was not used because no Alternate-Protocol information
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 enum AlternativeProxyUsage {
54 // Alternative Proxy was used without racing a normal connection.
55 ALTERNATIVE_PROXY_USAGE_NO_RACE = 0,
56 // Alternative Proxy was used by winning a race with a normal connection.
57 ALTERNATIVE_PROXY_USAGE_WON_RACE = 1,
58 // Alternative Proxy was not used by losing a race with a normal connection.
59 ALTERNATIVE_PROXY_USAGE_LOST_RACE = 2,
60 // Maximum value for the enum.
61 ALTERNATIVE_PROXY_USAGE_MAX,
62 };
63
64 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.
65 AlternateProtocolUsage usage);
66
53 // Log a histogram to reflect |usage|. 67 // Log a histogram to reflect |usage|.
54 NET_EXPORT void HistogramAlternateProtocolUsage(AlternateProtocolUsage usage); 68 NET_EXPORT void HistogramAlternateProtocolUsage(AlternateProtocolUsage usage,
69 bool proxy_server_used);
55 70
56 enum BrokenAlternateProtocolLocation { 71 enum BrokenAlternateProtocolLocation {
57 BROKEN_ALTERNATE_PROTOCOL_LOCATION_HTTP_STREAM_FACTORY_IMPL_JOB = 0, 72 BROKEN_ALTERNATE_PROTOCOL_LOCATION_HTTP_STREAM_FACTORY_IMPL_JOB = 0,
58 BROKEN_ALTERNATE_PROTOCOL_LOCATION_QUIC_STREAM_FACTORY = 1, 73 BROKEN_ALTERNATE_PROTOCOL_LOCATION_QUIC_STREAM_FACTORY = 1,
59 BROKEN_ALTERNATE_PROTOCOL_LOCATION_HTTP_STREAM_FACTORY_IMPL_JOB_ALT = 2, 74 BROKEN_ALTERNATE_PROTOCOL_LOCATION_HTTP_STREAM_FACTORY_IMPL_JOB_ALT = 2,
60 BROKEN_ALTERNATE_PROTOCOL_LOCATION_HTTP_STREAM_FACTORY_IMPL_JOB_MAIN = 3, 75 BROKEN_ALTERNATE_PROTOCOL_LOCATION_HTTP_STREAM_FACTORY_IMPL_JOB_MAIN = 3,
61 BROKEN_ALTERNATE_PROTOCOL_LOCATION_MAX, 76 BROKEN_ALTERNATE_PROTOCOL_LOCATION_MAX,
62 }; 77 };
63 78
64 // Log a histogram to reflect |location|. 79 // Log a histogram to reflect |location|.
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 virtual void SetMaxServerConfigsStoredInProperties( 388 virtual void SetMaxServerConfigsStoredInProperties(
374 size_t max_server_configs_stored_in_properties) = 0; 389 size_t max_server_configs_stored_in_properties) = 0;
375 390
376 private: 391 private:
377 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties); 392 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties);
378 }; 393 };
379 394
380 } // namespace net 395 } // namespace net
381 396
382 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_ 397 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_
OLDNEW
« 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