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

Side by Side Diff: net/http/http_server_properties.h

Issue 245663003: Do not mark alternate-protocol broken unless the main job succeeds. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix warning Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | net/http/http_stream_factory_impl_job.h » ('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 <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 24 matching lines...) Expand all
35 // Maximum value for the enum. 35 // Maximum value for the enum.
36 ALTERNATE_PROTOCOL_USAGE_MAX, 36 ALTERNATE_PROTOCOL_USAGE_MAX,
37 }; 37 };
38 38
39 // Log a histogram to reflect |usage|. 39 // Log a histogram to reflect |usage|.
40 NET_EXPORT void HistogramAlternateProtocolUsage(AlternateProtocolUsage usage); 40 NET_EXPORT void HistogramAlternateProtocolUsage(AlternateProtocolUsage usage);
41 41
42 enum BrokenAlternateProtocolLocation { 42 enum BrokenAlternateProtocolLocation {
43 BROKEN_ALTERNATE_PROTOCOL_LOCATION_HTTP_STREAM_FACTORY_IMPL_JOB = 0, 43 BROKEN_ALTERNATE_PROTOCOL_LOCATION_HTTP_STREAM_FACTORY_IMPL_JOB = 0,
44 BROKEN_ALTERNATE_PROTOCOL_LOCATION_QUIC_STREAM_FACTORY = 1, 44 BROKEN_ALTERNATE_PROTOCOL_LOCATION_QUIC_STREAM_FACTORY = 1,
45 BROKEN_ALTERNATE_PROTOCOL_LOCATION_HTTP_STREAM_FACTORY_IMPL_JOB_ALT = 2,
46 BROKEN_ALTERNATE_PROTOCOL_LOCATION_HTTP_STREAM_FACTORY_IMPL_JOB_MAIN = 3,
45 BROKEN_ALTERNATE_PROTOCOL_LOCATION_MAX, 47 BROKEN_ALTERNATE_PROTOCOL_LOCATION_MAX,
46 }; 48 };
47 49
48 // Log a histogram to reflect |location|. 50 // Log a histogram to reflect |location|.
49 NET_EXPORT void HistogramBrokenAlternateProtocolLocation( 51 NET_EXPORT void HistogramBrokenAlternateProtocolLocation(
50 BrokenAlternateProtocolLocation location); 52 BrokenAlternateProtocolLocation location);
51 53
52 enum AlternateProtocol { 54 enum AlternateProtocol {
53 DEPRECATED_NPN_SPDY_2 = 0, 55 DEPRECATED_NPN_SPDY_2 = 0,
54 ALTERNATE_PROTOCOL_MINIMUM_VALID_VERSION = DEPRECATED_NPN_SPDY_2, 56 ALTERNATE_PROTOCOL_MINIMUM_VALID_VERSION = DEPRECATED_NPN_SPDY_2,
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 197
196 virtual PipelineCapabilityMap GetPipelineCapabilityMap() const = 0; 198 virtual PipelineCapabilityMap GetPipelineCapabilityMap() const = 0;
197 199
198 private: 200 private:
199 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties); 201 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties);
200 }; 202 };
201 203
202 } // namespace net 204 } // namespace net
203 205
204 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_ 206 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_
OLDNEW
« no previous file with comments | « no previous file | net/http/http_stream_factory_impl_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698