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

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: nits Created 4 years, 2 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') | no next file with comments »
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 {
tbansal1 2016/09/23 00:02:07 nit: this enum can also move to anonymous namespac
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
53 // Log a histogram to reflect |usage|. 64 // Log a histogram to reflect |usage|.
54 NET_EXPORT void HistogramAlternateProtocolUsage(AlternateProtocolUsage usage); 65 NET_EXPORT void HistogramAlternateProtocolUsage(AlternateProtocolUsage usage,
66 bool proxy_server_used);
55 67
56 enum BrokenAlternateProtocolLocation { 68 enum BrokenAlternateProtocolLocation {
57 BROKEN_ALTERNATE_PROTOCOL_LOCATION_HTTP_STREAM_FACTORY_IMPL_JOB = 0, 69 BROKEN_ALTERNATE_PROTOCOL_LOCATION_HTTP_STREAM_FACTORY_IMPL_JOB = 0,
58 BROKEN_ALTERNATE_PROTOCOL_LOCATION_QUIC_STREAM_FACTORY = 1, 70 BROKEN_ALTERNATE_PROTOCOL_LOCATION_QUIC_STREAM_FACTORY = 1,
59 BROKEN_ALTERNATE_PROTOCOL_LOCATION_HTTP_STREAM_FACTORY_IMPL_JOB_ALT = 2, 71 BROKEN_ALTERNATE_PROTOCOL_LOCATION_HTTP_STREAM_FACTORY_IMPL_JOB_ALT = 2,
60 BROKEN_ALTERNATE_PROTOCOL_LOCATION_HTTP_STREAM_FACTORY_IMPL_JOB_MAIN = 3, 72 BROKEN_ALTERNATE_PROTOCOL_LOCATION_HTTP_STREAM_FACTORY_IMPL_JOB_MAIN = 3,
61 BROKEN_ALTERNATE_PROTOCOL_LOCATION_MAX, 73 BROKEN_ALTERNATE_PROTOCOL_LOCATION_MAX,
62 }; 74 };
63 75
64 // Log a histogram to reflect |location|. 76 // Log a histogram to reflect |location|.
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 virtual void SetMaxServerConfigsStoredInProperties( 385 virtual void SetMaxServerConfigsStoredInProperties(
374 size_t max_server_configs_stored_in_properties) = 0; 386 size_t max_server_configs_stored_in_properties) = 0;
375 387
376 private: 388 private:
377 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties); 389 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties);
378 }; 390 };
379 391
380 } // namespace net 392 } // namespace net
381 393
382 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_ 394 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_
OLDNEW
« no previous file with comments | « no previous file | net/http/http_server_properties.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698