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

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

Issue 1017453008: Make GetAlternateProtocol return AlternativeService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile error. 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_network_transaction_unittest.cc ('k') | net/http/http_server_properties_impl.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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 // Require HTTP/1.1 on subsequent connections. Not persisted. 198 // Require HTTP/1.1 on subsequent connections. Not persisted.
199 virtual void SetHTTP11Required(const HostPortPair& server) = 0; 199 virtual void SetHTTP11Required(const HostPortPair& server) = 0;
200 200
201 // Modify SSLConfig to force HTTP/1.1. 201 // Modify SSLConfig to force HTTP/1.1.
202 static void ForceHTTP11(SSLConfig* ssl_config); 202 static void ForceHTTP11(SSLConfig* ssl_config);
203 203
204 // Modify SSLConfig to force HTTP/1.1 if necessary. 204 // Modify SSLConfig to force HTTP/1.1 if necessary.
205 virtual void MaybeForceHTTP11(const HostPortPair& server, 205 virtual void MaybeForceHTTP11(const HostPortPair& server,
206 SSLConfig* ssl_config) = 0; 206 SSLConfig* ssl_config) = 0;
207 207
208 // Returns the AlternateProtocol for |server| if it has probability equal to 208 // Returns the alternative service for |origin| if it has probability equal to
209 // or exceeding threshold, or else the forced AlternateProtocol if there is 209 // or exceeding threshold, or else the forced AlternateProtocol if there is
210 // one, or else one with UNINITIALIZED_ALTERNATE_PROTOCOL. 210 // one, or else one with UNINITIALIZED_ALTERNATE_PROTOCOL.
211 virtual AlternateProtocolInfo GetAlternateProtocol( 211 virtual AlternativeService GetAlternativeService(
212 const HostPortPair& server) = 0; 212 const HostPortPair& origin) = 0;
Ryan Hamilton 2015/03/17 19:45:42 Can you fix the other "server" -> "origin" renames
Bence 2015/03/17 20:00:42 Done.
213 213
214 // Sets the Alternate-Protocol for |server|. 214 // Sets the Alternate-Protocol for |server|.
215 virtual void SetAlternateProtocol(const HostPortPair& server, 215 virtual void SetAlternateProtocol(const HostPortPair& server,
216 uint16 alternate_port, 216 uint16 alternate_port,
217 AlternateProtocol alternate_protocol, 217 AlternateProtocol alternate_protocol,
218 double probability) = 0; 218 double probability) = 0;
219 219
220 // Sets the Alternate-Protocol for |server| to be BROKEN. 220 // Sets the Alternate-Protocol for |server| to be BROKEN.
221 virtual void SetBrokenAlternateProtocol(const HostPortPair& server) = 0; 221 virtual void SetBrokenAlternateProtocol(const HostPortPair& server) = 0;
222 222
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 283
284 virtual const ServerNetworkStatsMap& server_network_stats_map() const = 0; 284 virtual const ServerNetworkStatsMap& server_network_stats_map() const = 0;
285 285
286 private: 286 private:
287 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties); 287 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties);
288 }; 288 };
289 289
290 } // namespace net 290 } // namespace net
291 291
292 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_ 292 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_
OLDNEW
« no previous file with comments | « net/http/http_network_transaction_unittest.cc ('k') | net/http/http_server_properties_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698