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 CHROME_BROWSER_NET_HTTP_SERVER_PROPERTIES_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_NET_HTTP_SERVER_PROPERTIES_MANAGER_H_ |
6 #define CHROME_BROWSER_NET_HTTP_SERVER_PROPERTIES_MANAGER_H_ | 6 #define CHROME_BROWSER_NET_HTTP_SERVER_PROPERTIES_MANAGER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 // Sets the Alternate-Protocol for |server|. | 108 // Sets the Alternate-Protocol for |server|. |
109 virtual void SetAlternateProtocol( | 109 virtual void SetAlternateProtocol( |
110 const net::HostPortPair& server, | 110 const net::HostPortPair& server, |
111 uint16 alternate_port, | 111 uint16 alternate_port, |
112 net::AlternateProtocol alternate_protocol) OVERRIDE; | 112 net::AlternateProtocol alternate_protocol) OVERRIDE; |
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( | 115 virtual void SetBrokenAlternateProtocol( |
116 const net::HostPortPair& server) OVERRIDE; | 116 const net::HostPortPair& server) OVERRIDE; |
117 | 117 |
| 118 // Clears the Alternate-Protocol for |server|. |
| 119 virtual void ClearAlternateProtocol(const net::HostPortPair& server) OVERRIDE; |
| 120 |
118 // Returns all Alternate-Protocol mappings. | 121 // Returns all Alternate-Protocol mappings. |
119 virtual const net::AlternateProtocolMap& | 122 virtual const net::AlternateProtocolMap& |
120 alternate_protocol_map() const OVERRIDE; | 123 alternate_protocol_map() const OVERRIDE; |
121 | 124 |
122 // Gets a reference to the SettingsMap stored for a host. | 125 // Gets a reference to the SettingsMap stored for a host. |
123 // If no settings are stored, returns an empty SettingsMap. | 126 // If no settings are stored, returns an empty SettingsMap. |
124 virtual const net::SettingsMap& GetSpdySettings( | 127 virtual const net::SettingsMap& GetSpdySettings( |
125 const net::HostPortPair& host_port_pair) const OVERRIDE; | 128 const net::HostPortPair& host_port_pair) const OVERRIDE; |
126 | 129 |
127 // Saves an individual SPDY setting for a host. Returns true if SPDY setting | 130 // Saves an individual SPDY setting for a host. Returns true if SPDY setting |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 io_prefs_update_timer_; | 250 io_prefs_update_timer_; |
248 | 251 |
249 scoped_ptr<net::HttpServerPropertiesImpl> http_server_properties_impl_; | 252 scoped_ptr<net::HttpServerPropertiesImpl> http_server_properties_impl_; |
250 | 253 |
251 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesManager); | 254 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesManager); |
252 }; | 255 }; |
253 | 256 |
254 } // namespace chrome_browser_net | 257 } // namespace chrome_browser_net |
255 | 258 |
256 #endif // CHROME_BROWSER_NET_HTTP_SERVER_PROPERTIES_MANAGER_H_ | 259 #endif // CHROME_BROWSER_NET_HTTP_SERVER_PROPERTIES_MANAGER_H_ |
OLD | NEW |