| 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 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 virtual bool SetQuicServerInfo(const QuicServerId& server_id, | 373 virtual bool SetQuicServerInfo(const QuicServerId& server_id, |
| 374 const std::string& server_info) = 0; | 374 const std::string& server_info) = 0; |
| 375 | 375 |
| 376 // Get QuicServerInfo (in std::string form) for the given |server_id|. | 376 // Get QuicServerInfo (in std::string form) for the given |server_id|. |
| 377 virtual const std::string* GetQuicServerInfo( | 377 virtual const std::string* GetQuicServerInfo( |
| 378 const QuicServerId& server_id) = 0; | 378 const QuicServerId& server_id) = 0; |
| 379 | 379 |
| 380 // Returns all persistent QuicServerInfo objects. | 380 // Returns all persistent QuicServerInfo objects. |
| 381 virtual const QuicServerInfoMap& quic_server_info_map() const = 0; | 381 virtual const QuicServerInfoMap& quic_server_info_map() const = 0; |
| 382 | 382 |
| 383 // Returns the number of server configs (QuicServerInfo objects) persisted. |
| 384 virtual size_t max_server_configs_stored_in_properties() const = 0; |
| 385 |
| 386 // Sets the number of server configs (QuicServerInfo objects) to be persisted. |
| 387 virtual void SetMaxServerConfigsStoredInProperties( |
| 388 size_t max_server_configs_stored_in_properties) = 0; |
| 389 |
| 383 private: | 390 private: |
| 384 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties); | 391 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties); |
| 385 }; | 392 }; |
| 386 | 393 |
| 387 } // namespace net | 394 } // namespace net |
| 388 | 395 |
| 389 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_ | 396 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_ |
| OLD | NEW |