| 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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 virtual ~HttpServerProperties() {} | 230 virtual ~HttpServerProperties() {} |
| 231 | 231 |
| 232 // Gets a weak pointer for this object. | 232 // Gets a weak pointer for this object. |
| 233 virtual base::WeakPtr<HttpServerProperties> GetWeakPtr() = 0; | 233 virtual base::WeakPtr<HttpServerProperties> GetWeakPtr() = 0; |
| 234 | 234 |
| 235 // Deletes all data. | 235 // Deletes all data. |
| 236 virtual void Clear() = 0; | 236 virtual void Clear() = 0; |
| 237 | 237 |
| 238 // Returns true if |server| supports a network protocol which honors | 238 // Returns true if |server| supports a network protocol which honors |
| 239 // request prioritization. | 239 // request prioritization. |
| 240 virtual bool SupportsRequestPriority(const HostPortPair& server) = 0; | 240 virtual bool SupportsRequestPriority(const url::SchemeHostPort& server) = 0; |
| 241 | 241 |
| 242 // Returns the value set by SetSupportsSpdy(). If not set, returns false. | 242 // Returns the value set by SetSupportsSpdy(). If not set, returns false. |
| 243 virtual bool GetSupportsSpdy(const HostPortPair& server) = 0; | 243 virtual bool GetSupportsSpdy(const url::SchemeHostPort& server) = 0; |
| 244 | 244 |
| 245 // Add |server| into the persistent store. Should only be called from IO | 245 // Add |server| into the persistent store. Should only be called from IO |
| 246 // thread. | 246 // thread. |
| 247 virtual void SetSupportsSpdy(const HostPortPair& server, | 247 virtual void SetSupportsSpdy(const url::SchemeHostPort& server, |
| 248 bool support_spdy) = 0; | 248 bool support_spdy) = 0; |
| 249 | 249 |
| 250 // Returns true if |server| has required HTTP/1.1 via HTTP/2 error code. | 250 // Returns true if |server| has required HTTP/1.1 via HTTP/2 error code. |
| 251 virtual bool RequiresHTTP11(const HostPortPair& server) = 0; | 251 virtual bool RequiresHTTP11(const HostPortPair& server) = 0; |
| 252 | 252 |
| 253 // Require HTTP/1.1 on subsequent connections. Not persisted. | 253 // Require HTTP/1.1 on subsequent connections. Not persisted. |
| 254 virtual void SetHTTP11Required(const HostPortPair& server) = 0; | 254 virtual void SetHTTP11Required(const HostPortPair& server) = 0; |
| 255 | 255 |
| 256 // Modify SSLConfig to force HTTP/1.1. | 256 // Modify SSLConfig to force HTTP/1.1. |
| 257 static void ForceHTTP11(SSLConfig* ssl_config); | 257 static void ForceHTTP11(SSLConfig* ssl_config); |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 virtual void SetMaxServerConfigsStoredInProperties( | 372 virtual void SetMaxServerConfigsStoredInProperties( |
| 373 size_t max_server_configs_stored_in_properties) = 0; | 373 size_t max_server_configs_stored_in_properties) = 0; |
| 374 | 374 |
| 375 private: | 375 private: |
| 376 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties); | 376 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties); |
| 377 }; | 377 }; |
| 378 | 378 |
| 379 } // namespace net | 379 } // namespace net |
| 380 | 380 |
| 381 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_ | 381 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_ |
| OLD | NEW |