| 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 <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 const HostPortPair& server) const = 0; | 107 const HostPortPair& server) const = 0; |
| 108 | 108 |
| 109 // Sets the Alternate-Protocol for |server|. | 109 // Sets the Alternate-Protocol for |server|. |
| 110 virtual void SetAlternateProtocol(const HostPortPair& server, | 110 virtual void SetAlternateProtocol(const HostPortPair& server, |
| 111 uint16 alternate_port, | 111 uint16 alternate_port, |
| 112 AlternateProtocol alternate_protocol) = 0; | 112 AlternateProtocol alternate_protocol) = 0; |
| 113 | 113 |
| 114 // Sets the Alternate-Protocol for |server| to be BROKEN. | 114 // Sets the Alternate-Protocol for |server| to be BROKEN. |
| 115 virtual void SetBrokenAlternateProtocol(const HostPortPair& server) = 0; | 115 virtual void SetBrokenAlternateProtocol(const HostPortPair& server) = 0; |
| 116 | 116 |
| 117 // Clears the Alternate-Protocol for |server|. |
| 118 virtual void ClearAlternateProtocol(const HostPortPair& server) = 0; |
| 119 |
| 117 // Returns all Alternate-Protocol mappings. | 120 // Returns all Alternate-Protocol mappings. |
| 118 virtual const AlternateProtocolMap& alternate_protocol_map() const = 0; | 121 virtual const AlternateProtocolMap& alternate_protocol_map() const = 0; |
| 119 | 122 |
| 120 // Gets a reference to the SettingsMap stored for a host. | 123 // Gets a reference to the SettingsMap stored for a host. |
| 121 // If no settings are stored, returns an empty SettingsMap. | 124 // If no settings are stored, returns an empty SettingsMap. |
| 122 virtual const SettingsMap& GetSpdySettings( | 125 virtual const SettingsMap& GetSpdySettings( |
| 123 const HostPortPair& host_port_pair) const = 0; | 126 const HostPortPair& host_port_pair) const = 0; |
| 124 | 127 |
| 125 // Saves an individual SPDY setting for a host. Returns true if SPDY setting | 128 // Saves an individual SPDY setting for a host. Returns true if SPDY setting |
| 126 // is to be persisted. | 129 // is to be persisted. |
| (...skipping 28 matching lines...) Expand all Loading... |
| 155 | 158 |
| 156 virtual PipelineCapabilityMap GetPipelineCapabilityMap() const = 0; | 159 virtual PipelineCapabilityMap GetPipelineCapabilityMap() const = 0; |
| 157 | 160 |
| 158 private: | 161 private: |
| 159 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties); | 162 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties); |
| 160 }; | 163 }; |
| 161 | 164 |
| 162 } // namespace net | 165 } // namespace net |
| 163 | 166 |
| 164 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_ | 167 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_ |
| OLD | NEW |