| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 net::AlternateProtocol alternate_protocol) OVERRIDE; | 100 net::AlternateProtocol alternate_protocol) OVERRIDE; |
| 101 | 101 |
| 102 // Sets the Alternate-Protocol for |server| to be BROKEN. | 102 // Sets the Alternate-Protocol for |server| to be BROKEN. |
| 103 virtual void SetBrokenAlternateProtocol( | 103 virtual void SetBrokenAlternateProtocol( |
| 104 const net::HostPortPair& server) OVERRIDE; | 104 const net::HostPortPair& server) OVERRIDE; |
| 105 | 105 |
| 106 // Returns all Alternate-Protocol mappings. | 106 // Returns all Alternate-Protocol mappings. |
| 107 virtual const net::AlternateProtocolMap& | 107 virtual const net::AlternateProtocolMap& |
| 108 alternate_protocol_map() const OVERRIDE; | 108 alternate_protocol_map() const OVERRIDE; |
| 109 | 109 |
| 110 // Gets a reference to the SpdySettings stored for a host. | 110 // Gets a reference to the SettingsMap stored for a host. |
| 111 // If no settings are stored, returns an empty set of settings. | 111 // If no settings are stored, returns an empty SettingsMap. |
| 112 virtual const net::SpdySettings& GetSpdySettings( | 112 virtual const net::SettingsMap& GetSpdySettings( |
| 113 const net::HostPortPair& host_port_pair) const OVERRIDE; | 113 const net::HostPortPair& host_port_pair) const OVERRIDE; |
| 114 | 114 |
| 115 // Saves settings for a host. Returns true if SpdySettings are persisted. | 115 // Saves an individual SPDY setting for a host. Returns true if SPDY setting |
| 116 virtual bool SetSpdySettings( | 116 // is to be persisted. |
| 117 const net::HostPortPair& host_port_pair, | 117 virtual bool SetSpdySetting(const net::HostPortPair& host_port_pair, |
| 118 const net::SpdySettings& settings) OVERRIDE; | 118 net::SpdySettingsIds id, |
| 119 net::SpdySettingsFlags flags, |
| 120 uint32 value) OVERRIDE; |
| 119 | 121 |
| 120 // Saves an individual setting for a host. Returns true if SpdySetting is | 122 // Clears all SPDY settings. |
| 121 // persisted. | |
| 122 virtual bool SetSpdySetting( | |
| 123 const net::HostPortPair& host_port_pair, | |
| 124 const net::SpdySetting& setting) OVERRIDE; | |
| 125 | |
| 126 // Clears all spdy_settings. | |
| 127 virtual void ClearSpdySettings() OVERRIDE; | 123 virtual void ClearSpdySettings() OVERRIDE; |
| 128 | 124 |
| 129 // Returns all SpdySettings mappings. | 125 // Returns all SPDY persistent settings. |
| 130 virtual const net::SpdySettingsMap& spdy_settings_map() const OVERRIDE; | 126 virtual const net::SpdySettingsMap& spdy_settings_map() const OVERRIDE; |
| 131 | 127 |
| 132 virtual net::HttpPipelinedHostCapability GetPipelineCapability( | 128 virtual net::HttpPipelinedHostCapability GetPipelineCapability( |
| 133 const net::HostPortPair& origin) OVERRIDE; | 129 const net::HostPortPair& origin) OVERRIDE; |
| 134 | 130 |
| 135 virtual void SetPipelineCapability( | 131 virtual void SetPipelineCapability( |
| 136 const net::HostPortPair& origin, | 132 const net::HostPortPair& origin, |
| 137 net::HttpPipelinedHostCapability capability) OVERRIDE; | 133 net::HttpPipelinedHostCapability capability) OVERRIDE; |
| 138 | 134 |
| 139 virtual void ClearPipelineCapabilities() OVERRIDE; | 135 virtual void ClearPipelineCapabilities() OVERRIDE; |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 io_prefs_update_timer_; | 220 io_prefs_update_timer_; |
| 225 | 221 |
| 226 scoped_ptr<net::HttpServerPropertiesImpl> http_server_properties_impl_; | 222 scoped_ptr<net::HttpServerPropertiesImpl> http_server_properties_impl_; |
| 227 | 223 |
| 228 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesManager); | 224 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesManager); |
| 229 }; | 225 }; |
| 230 | 226 |
| 231 } // namespace chrome_browser_net | 227 } // namespace chrome_browser_net |
| 232 | 228 |
| 233 #endif // CHROME_BROWSER_NET_HTTP_SERVER_PROPERTIES_MANAGER_H_ | 229 #endif // CHROME_BROWSER_NET_HTTP_SERVER_PROPERTIES_MANAGER_H_ |
| OLD | NEW |