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

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: sync 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
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