| 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 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 typedef base::MRUCache<url::SchemeHostPort, AlternativeServiceInfoVector> | 207 typedef base::MRUCache<url::SchemeHostPort, AlternativeServiceInfoVector> |
| 208 AlternativeServiceMap; | 208 AlternativeServiceMap; |
| 209 typedef base::MRUCache<url::SchemeHostPort, SettingsMap> SpdySettingsMap; | 209 typedef base::MRUCache<url::SchemeHostPort, SettingsMap> SpdySettingsMap; |
| 210 typedef base::MRUCache<url::SchemeHostPort, ServerNetworkStats> | 210 typedef base::MRUCache<url::SchemeHostPort, ServerNetworkStats> |
| 211 ServerNetworkStatsMap; | 211 ServerNetworkStatsMap; |
| 212 typedef base::MRUCache<QuicServerId, std::string> QuicServerInfoMap; | 212 typedef base::MRUCache<QuicServerId, std::string> QuicServerInfoMap; |
| 213 | 213 |
| 214 // Persist 5 QUIC Servers. This is mainly used by cronet. | 214 // Persist 5 QUIC Servers. This is mainly used by cronet. |
| 215 const int kMaxQuicServersToPersist = 5; | 215 const int kMaxQuicServersToPersist = 5; |
| 216 | 216 |
| 217 extern const char kAlternateProtocolHeader[]; | |
| 218 extern const char kAlternativeServiceHeader[]; | 217 extern const char kAlternativeServiceHeader[]; |
| 219 | 218 |
| 220 // The interface for setting/retrieving the HTTP server properties. | 219 // The interface for setting/retrieving the HTTP server properties. |
| 221 // Currently, this class manages servers': | 220 // Currently, this class manages servers': |
| 222 // * SPDY support (based on NPN results). | 221 // * SPDY support (based on NPN results). |
| 223 // * alternative service support. | 222 // * alternative service support. |
| 224 // * SPDY Settings (like CWND ID field). | 223 // * SPDY Settings (like CWND ID field). |
| 225 // * QUIC data (like ServerNetworkStats and QuicServerInfo). | 224 // * QUIC data (like ServerNetworkStats and QuicServerInfo). |
| 226 // | 225 // |
| 227 // Embedders must ensure that HttpServerProperites is completely initialized | 226 // Embedders must ensure that HttpServerProperites is completely initialized |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 375 virtual void SetMaxServerConfigsStoredInProperties( | 374 virtual void SetMaxServerConfigsStoredInProperties( |
| 376 size_t max_server_configs_stored_in_properties) = 0; | 375 size_t max_server_configs_stored_in_properties) = 0; |
| 377 | 376 |
| 378 private: | 377 private: |
| 379 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties); | 378 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties); |
| 380 }; | 379 }; |
| 381 | 380 |
| 382 } // namespace net | 381 } // namespace net |
| 383 | 382 |
| 384 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_ | 383 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_ |
| OLD | NEW |