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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 | 138 |
139 virtual PipelineCapabilityMap GetPipelineCapabilityMap() const OVERRIDE; | 139 virtual PipelineCapabilityMap GetPipelineCapabilityMap() const OVERRIDE; |
140 | 140 |
141 private: | 141 private: |
142 typedef base::MRUCache< | 142 typedef base::MRUCache< |
143 HostPortPair, HttpPipelinedHostCapability> CachedPipelineCapabilityMap; | 143 HostPortPair, HttpPipelinedHostCapability> CachedPipelineCapabilityMap; |
144 // |spdy_servers_table_| has flattened representation of servers (host/port | 144 // |spdy_servers_table_| has flattened representation of servers (host/port |
145 // pair) that either support or not support SPDY protocol. | 145 // pair) that either support or not support SPDY protocol. |
146 typedef base::hash_map<std::string, bool> SpdyServerHostPortTable; | 146 typedef base::hash_map<std::string, bool> SpdyServerHostPortTable; |
147 | 147 |
148 base::WeakPtrFactory<HttpServerPropertiesImpl> weak_ptr_factory_; | |
149 | |
150 SpdyServerHostPortTable spdy_servers_table_; | 148 SpdyServerHostPortTable spdy_servers_table_; |
151 | 149 |
152 AlternateProtocolMap alternate_protocol_map_; | 150 AlternateProtocolMap alternate_protocol_map_; |
153 SpdySettingsMap spdy_settings_map_; | 151 SpdySettingsMap spdy_settings_map_; |
154 scoped_ptr<CachedPipelineCapabilityMap> pipeline_capability_map_; | 152 scoped_ptr<CachedPipelineCapabilityMap> pipeline_capability_map_; |
155 | 153 |
| 154 base::WeakPtrFactory<HttpServerPropertiesImpl> weak_ptr_factory_; |
| 155 |
156 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesImpl); | 156 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesImpl); |
157 }; | 157 }; |
158 | 158 |
159 } // namespace net | 159 } // namespace net |
160 | 160 |
161 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_IMPL_H_ | 161 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_IMPL_H_ |
OLD | NEW |