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_IMPL_H_ | 5 #ifndef NET_HTTP_HTTP_SERVER_PROPERTIES_IMPL_H_ |
6 #define NET_HTTP_HTTP_SERVER_PROPERTIES_IMPL_H_ | 6 #define NET_HTTP_HTTP_SERVER_PROPERTIES_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 | 96 |
97 // Sets the Alternate-Protocol for |server|. | 97 // Sets the Alternate-Protocol for |server|. |
98 virtual void SetAlternateProtocol( | 98 virtual void SetAlternateProtocol( |
99 const HostPortPair& server, | 99 const HostPortPair& server, |
100 uint16 alternate_port, | 100 uint16 alternate_port, |
101 AlternateProtocol alternate_protocol) OVERRIDE; | 101 AlternateProtocol alternate_protocol) OVERRIDE; |
102 | 102 |
103 // Sets the Alternate-Protocol for |server| to be BROKEN. | 103 // Sets the Alternate-Protocol for |server| to be BROKEN. |
104 virtual void SetBrokenAlternateProtocol(const HostPortPair& server) OVERRIDE; | 104 virtual void SetBrokenAlternateProtocol(const HostPortPair& server) OVERRIDE; |
105 | 105 |
| 106 // Clears the Alternate-Protocol for |server|. |
| 107 virtual void ClearAlternateProtocol(const HostPortPair& server) OVERRIDE; |
| 108 |
106 // Returns all Alternate-Protocol mappings. | 109 // Returns all Alternate-Protocol mappings. |
107 virtual const AlternateProtocolMap& alternate_protocol_map() const OVERRIDE; | 110 virtual const AlternateProtocolMap& alternate_protocol_map() const OVERRIDE; |
108 | 111 |
109 // Gets a reference to the SettingsMap stored for a host. | 112 // Gets a reference to the SettingsMap stored for a host. |
110 // If no settings are stored, returns an empty SettingsMap. | 113 // If no settings are stored, returns an empty SettingsMap. |
111 virtual const SettingsMap& GetSpdySettings( | 114 virtual const SettingsMap& GetSpdySettings( |
112 const HostPortPair& host_port_pair) const OVERRIDE; | 115 const HostPortPair& host_port_pair) const OVERRIDE; |
113 | 116 |
114 // Saves an individual SPDY setting for a host. Returns true if SPDY setting | 117 // Saves an individual SPDY setting for a host. Returns true if SPDY setting |
115 // is to be persisted. | 118 // is to be persisted. |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 CanonicalSufficList canoncial_suffixes_; | 175 CanonicalSufficList canoncial_suffixes_; |
173 | 176 |
174 base::WeakPtrFactory<HttpServerPropertiesImpl> weak_ptr_factory_; | 177 base::WeakPtrFactory<HttpServerPropertiesImpl> weak_ptr_factory_; |
175 | 178 |
176 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesImpl); | 179 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesImpl); |
177 }; | 180 }; |
178 | 181 |
179 } // namespace net | 182 } // namespace net |
180 | 183 |
181 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_IMPL_H_ | 184 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_IMPL_H_ |
OLD | NEW |