OLD | NEW |
1 // Copyright (c) 2011 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> |
11 | 11 |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 // Gets a reference to the SpdySettings stored for a host. | 106 // Gets a reference to the SpdySettings 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 set of settings. |
108 virtual const spdy::SpdySettings& GetSpdySettings( | 108 virtual const spdy::SpdySettings& 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 settings for a host. Returns true if SpdySettings are to be |
112 // persisted because |spdy_settings_map_| has been updated. | 112 // persisted because |spdy_settings_map_| has been updated. |
113 virtual bool SetSpdySettings(const HostPortPair& host_port_pair, | 113 virtual bool SetSpdySettings(const HostPortPair& host_port_pair, |
114 const spdy::SpdySettings& settings) OVERRIDE; | 114 const spdy::SpdySettings& settings) OVERRIDE; |
115 | 115 |
| 116 // Saves an individual setting for a host. Returns true if SpdySetting is to |
| 117 // be persisted because |spdy_settings_map_| has been updated. |
| 118 virtual bool SetSpdySetting(const HostPortPair& host_port_pair, |
| 119 const spdy::SpdySetting& setting) OVERRIDE; |
| 120 |
116 // Clears all spdy_settings. | 121 // Clears all spdy_settings. |
117 virtual void ClearSpdySettings() OVERRIDE; | 122 virtual void ClearSpdySettings() OVERRIDE; |
118 | 123 |
119 // Returns all persistent SpdySettings. | 124 // Returns all persistent SpdySettings. |
120 virtual const SpdySettingsMap& spdy_settings_map() const OVERRIDE; | 125 virtual const SpdySettingsMap& spdy_settings_map() const OVERRIDE; |
121 | 126 |
122 virtual HttpPipelinedHostCapability GetPipelineCapability( | 127 virtual HttpPipelinedHostCapability GetPipelineCapability( |
123 const HostPortPair& origin) OVERRIDE; | 128 const HostPortPair& origin) OVERRIDE; |
124 | 129 |
125 virtual void SetPipelineCapability( | 130 virtual void SetPipelineCapability( |
(...skipping 15 matching lines...) Expand all Loading... |
141 AlternateProtocolMap alternate_protocol_map_; | 146 AlternateProtocolMap alternate_protocol_map_; |
142 SpdySettingsMap spdy_settings_map_; | 147 SpdySettingsMap spdy_settings_map_; |
143 scoped_ptr<CachedPipelineCapabilityMap> pipeline_capability_map_; | 148 scoped_ptr<CachedPipelineCapabilityMap> pipeline_capability_map_; |
144 | 149 |
145 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesImpl); | 150 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesImpl); |
146 }; | 151 }; |
147 | 152 |
148 } // namespace net | 153 } // namespace net |
149 | 154 |
150 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_IMPL_H_ | 155 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_IMPL_H_ |
OLD | NEW |