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

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

Issue 874603004: Remove HasAlternateProtocol(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minor. Created 5 years, 10 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
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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 // Require HTTP/1.1 on subsequent connections. Not persisted. 183 // Require HTTP/1.1 on subsequent connections. Not persisted.
184 virtual void SetHTTP11Required(const HostPortPair& server) = 0; 184 virtual void SetHTTP11Required(const HostPortPair& server) = 0;
185 185
186 // Modify SSLConfig to force HTTP/1.1. 186 // Modify SSLConfig to force HTTP/1.1.
187 static void ForceHTTP11(SSLConfig* ssl_config); 187 static void ForceHTTP11(SSLConfig* ssl_config);
188 188
189 // Modify SSLConfig to force HTTP/1.1 if necessary. 189 // Modify SSLConfig to force HTTP/1.1 if necessary.
190 virtual void MaybeForceHTTP11(const HostPortPair& server, 190 virtual void MaybeForceHTTP11(const HostPortPair& server,
191 SSLConfig* ssl_config) = 0; 191 SSLConfig* ssl_config) = 0;
192 192
193 // Returns true if |server| has an Alternate-Protocol header. 193 // Returns the AlternateProtocol for |server| if it has probability equal to
194 virtual bool HasAlternateProtocol(const HostPortPair& server) = 0; 194 // or exceeding threshold, or else the forced AlternateProtocol if there is
195 195 // one, or else one with UNINITIALIZED_ALTERNATE_PROTOCOL.
196 // Returns the Alternate-Protocol and port for |server|.
197 // HasAlternateProtocol(server) must be true.
198 virtual AlternateProtocolInfo GetAlternateProtocol( 196 virtual AlternateProtocolInfo GetAlternateProtocol(
199 const HostPortPair& server) = 0; 197 const HostPortPair& server) = 0;
200 198
201 // Sets the Alternate-Protocol for |server|. 199 // Sets the Alternate-Protocol for |server|.
202 virtual void SetAlternateProtocol(const HostPortPair& server, 200 virtual void SetAlternateProtocol(const HostPortPair& server,
203 uint16 alternate_port, 201 uint16 alternate_port,
204 AlternateProtocol alternate_protocol, 202 AlternateProtocol alternate_protocol,
205 double probability) = 0; 203 double probability) = 0;
206 204
207 // Sets the Alternate-Protocol for |server| to be BROKEN. 205 // Sets the Alternate-Protocol for |server| to be BROKEN.
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 265
268 virtual const ServerNetworkStatsMap& server_network_stats_map() const = 0; 266 virtual const ServerNetworkStatsMap& server_network_stats_map() const = 0;
269 267
270 private: 268 private:
271 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties); 269 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties);
272 }; 270 };
273 271
274 } // namespace net 272 } // namespace net
275 273
276 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_ 274 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698