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

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

Issue 2886273002: Change GetAlternativeServies to return alternative service infos. (Closed)
Patch Set: address comments in ps #3 Created 3 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
« 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 233
234 // Modify SSLConfig to force HTTP/1.1. 234 // Modify SSLConfig to force HTTP/1.1.
235 static void ForceHTTP11(SSLConfig* ssl_config); 235 static void ForceHTTP11(SSLConfig* ssl_config);
236 236
237 // Modify SSLConfig to force HTTP/1.1 if necessary. 237 // Modify SSLConfig to force HTTP/1.1 if necessary.
238 virtual void MaybeForceHTTP11(const HostPortPair& server, 238 virtual void MaybeForceHTTP11(const HostPortPair& server,
239 SSLConfig* ssl_config) = 0; 239 SSLConfig* ssl_config) = 0;
240 240
241 // Return all alternative services for |origin|, including broken ones. 241 // Return all alternative services for |origin|, including broken ones.
242 // Returned alternative services never have empty hostnames. 242 // Returned alternative services never have empty hostnames.
243 virtual AlternativeServiceVector GetAlternativeServices( 243 virtual AlternativeServiceInfoVector GetAlternativeServiceInfos(
244 const url::SchemeHostPort& origin) = 0; 244 const url::SchemeHostPort& origin) = 0;
245 245
246 // Set a single alternative service for |origin|. Previous alternative 246 // Set a single alternative service for |origin|. Previous alternative
247 // services for |origin| are discarded. 247 // services for |origin| are discarded.
248 // |alternative_service.host| may be empty. 248 // |alternative_service.host| may be empty.
249 // Return true if |alternative_service_map_| has changed significantly enough 249 // Return true if |alternative_service_map_| has changed significantly enough
250 // that it should be persisted to disk. 250 // that it should be persisted to disk.
251 virtual bool SetAlternativeService( 251 virtual bool SetAlternativeService(
252 const url::SchemeHostPort& origin, 252 const url::SchemeHostPort& origin,
253 const AlternativeService& alternative_service, 253 const AlternativeService& alternative_service,
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 // Returns whether HttpServerProperties is initialized. 337 // Returns whether HttpServerProperties is initialized.
338 virtual bool IsInitialized() const = 0; 338 virtual bool IsInitialized() const = 0;
339 339
340 private: 340 private:
341 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties); 341 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties);
342 }; 342 };
343 343
344 } // namespace net 344 } // namespace net
345 345
346 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_ 346 #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