| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |