| 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 const HostPortPair& server, | 96 const HostPortPair& server, |
| 97 uint16 alternate_port, | 97 uint16 alternate_port, |
| 98 AlternateProtocol alternate_protocol) OVERRIDE; | 98 AlternateProtocol alternate_protocol) OVERRIDE; |
| 99 | 99 |
| 100 // Sets the Alternate-Protocol for |server| to be BROKEN. | 100 // Sets the Alternate-Protocol for |server| to be BROKEN. |
| 101 virtual void SetBrokenAlternateProtocol(const HostPortPair& server) OVERRIDE; | 101 virtual void SetBrokenAlternateProtocol(const HostPortPair& server) OVERRIDE; |
| 102 | 102 |
| 103 // Returns all Alternate-Protocol mappings. | 103 // Returns all Alternate-Protocol mappings. |
| 104 virtual const AlternateProtocolMap& alternate_protocol_map() const OVERRIDE; | 104 virtual const AlternateProtocolMap& alternate_protocol_map() const OVERRIDE; |
| 105 | 105 |
| 106 // Gets a reference to the SpdySettings stored for a host. | 106 // Gets a reference to the SettingsMap stored for a host. |
| 107 // If no settings are stored, returns an empty set of settings. | 107 // If no settings are stored, returns an empty SettingsMap. |
| 108 virtual const SpdySettings& GetSpdySettings( | 108 virtual const SettingsMap& GetSpdySettings( |
| 109 const HostPortPair& host_port_pair) const OVERRIDE; | 109 const HostPortPair& host_port_pair) const OVERRIDE; |
| 110 | 110 |
| 111 // Saves settings for a host. Returns true if SpdySettings are to be | 111 // Saves an individual SPDY setting for a host. Returns true if SPDY setting |
| 112 // persisted because |spdy_settings_map_| has been updated. | 112 // is to be persisted. |
| 113 virtual bool SetSpdySettings(const HostPortPair& host_port_pair, | 113 virtual bool SetSpdySetting(const HostPortPair& host_port_pair, |
| 114 const SpdySettings& settings) OVERRIDE; | 114 SpdySettingsIds id, |
| 115 SpdySettingsFlags flags, |
| 116 uint32 value) OVERRIDE; |
| 115 | 117 |
| 116 // Saves an individual setting for a host. Returns true if SpdySetting is to | 118 // Clears all entries in |spdy_settings_map_|. |
| 117 // be persisted because |spdy_settings_map_| has been updated. | |
| 118 virtual bool SetSpdySetting(const HostPortPair& host_port_pair, | |
| 119 const SpdySetting& setting) OVERRIDE; | |
| 120 | |
| 121 // Clears all spdy_settings. | |
| 122 virtual void ClearSpdySettings() OVERRIDE; | 119 virtual void ClearSpdySettings() OVERRIDE; |
| 123 | 120 |
| 124 // Returns all persistent SpdySettings. | 121 // Returns all persistent SPDY settings. |
| 125 virtual const SpdySettingsMap& spdy_settings_map() const OVERRIDE; | 122 virtual const SpdySettingsMap& spdy_settings_map() const OVERRIDE; |
| 126 | 123 |
| 127 virtual HttpPipelinedHostCapability GetPipelineCapability( | 124 virtual HttpPipelinedHostCapability GetPipelineCapability( |
| 128 const HostPortPair& origin) OVERRIDE; | 125 const HostPortPair& origin) OVERRIDE; |
| 129 | 126 |
| 130 virtual void SetPipelineCapability( | 127 virtual void SetPipelineCapability( |
| 131 const HostPortPair& origin, | 128 const HostPortPair& origin, |
| 132 HttpPipelinedHostCapability capability) OVERRIDE; | 129 HttpPipelinedHostCapability capability) OVERRIDE; |
| 133 | 130 |
| 134 virtual void ClearPipelineCapabilities() OVERRIDE; | 131 virtual void ClearPipelineCapabilities() OVERRIDE; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 146 AlternateProtocolMap alternate_protocol_map_; | 143 AlternateProtocolMap alternate_protocol_map_; |
| 147 SpdySettingsMap spdy_settings_map_; | 144 SpdySettingsMap spdy_settings_map_; |
| 148 scoped_ptr<CachedPipelineCapabilityMap> pipeline_capability_map_; | 145 scoped_ptr<CachedPipelineCapabilityMap> pipeline_capability_map_; |
| 149 | 146 |
| 150 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesImpl); | 147 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesImpl); |
| 151 }; | 148 }; |
| 152 | 149 |
| 153 } // namespace net | 150 } // namespace net |
| 154 | 151 |
| 155 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_IMPL_H_ | 152 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_IMPL_H_ |
| OLD | NEW |