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

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

Issue 987123002: Advertise HTTP/2 support. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 | « net/http/http_response_info.cc ('k') | 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 <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 BrokenAlternateProtocolLocation location); 56 BrokenAlternateProtocolLocation location);
57 57
58 enum AlternateProtocol { 58 enum AlternateProtocol {
59 DEPRECATED_NPN_SPDY_2 = 0, 59 DEPRECATED_NPN_SPDY_2 = 0,
60 ALTERNATE_PROTOCOL_MINIMUM_VALID_VERSION = DEPRECATED_NPN_SPDY_2, 60 ALTERNATE_PROTOCOL_MINIMUM_VALID_VERSION = DEPRECATED_NPN_SPDY_2,
61 NPN_SPDY_MINIMUM_VERSION = DEPRECATED_NPN_SPDY_2, 61 NPN_SPDY_MINIMUM_VERSION = DEPRECATED_NPN_SPDY_2,
62 NPN_SPDY_3, 62 NPN_SPDY_3,
63 NPN_SPDY_3_1, 63 NPN_SPDY_3_1,
64 NPN_SPDY_4_14, // HTTP/2 draft-14 64 NPN_SPDY_4_14, // HTTP/2 draft-14
65 NPN_SPDY_4_15, // HTTP/2 draft-15 65 NPN_SPDY_4_15, // HTTP/2 draft-15
66 NPN_SPDY_MAXIMUM_VERSION = NPN_SPDY_4_15, 66 NPN_SPDY_4, // HTTP/2
67 NPN_SPDY_MAXIMUM_VERSION = NPN_SPDY_4,
67 QUIC, 68 QUIC,
68 ALTERNATE_PROTOCOL_MAXIMUM_VALID_VERSION = QUIC, 69 ALTERNATE_PROTOCOL_MAXIMUM_VALID_VERSION = QUIC,
69 UNINITIALIZED_ALTERNATE_PROTOCOL, 70 UNINITIALIZED_ALTERNATE_PROTOCOL,
70 }; 71 };
71 72
72 // Simply returns whether |protocol| is between 73 // Simply returns whether |protocol| is between
73 // ALTERNATE_PROTOCOL_MINIMUM_VALID_VERSION and 74 // ALTERNATE_PROTOCOL_MINIMUM_VALID_VERSION and
74 // ALTERNATE_PROTOCOL_MAXIMUM_VALID_VERSION (inclusive). 75 // ALTERNATE_PROTOCOL_MAXIMUM_VALID_VERSION (inclusive).
75 NET_EXPORT bool IsAlternateProtocolValid(AlternateProtocol protocol); 76 NET_EXPORT bool IsAlternateProtocolValid(AlternateProtocol protocol);
76 77
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 261
261 virtual const ServerNetworkStatsMap& server_network_stats_map() const = 0; 262 virtual const ServerNetworkStatsMap& server_network_stats_map() const = 0;
262 263
263 private: 264 private:
264 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties); 265 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties);
265 }; 266 };
266 267
267 } // namespace net 268 } // namespace net
268 269
269 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_ 270 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_
OLDNEW
« no previous file with comments | « net/http/http_response_info.cc ('k') | net/http/http_server_properties.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698