OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_MANAGER_H_ | 5 #ifndef NET_HTTP_HTTP_SERVER_PROPERTIES_MANAGER_H_ |
6 #define NET_HTTP_HTTP_SERVER_PROPERTIES_MANAGER_H_ | 6 #define NET_HTTP_HTTP_SERVER_PROPERTIES_MANAGER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 const base::Closure& completion); | 175 const base::Closure& completion); |
176 | 176 |
177 private: | 177 private: |
178 void OnHttpServerPropertiesChanged(); | 178 void OnHttpServerPropertiesChanged(); |
179 | 179 |
180 bool ReadSupportsQuic(const base::DictionaryValue& server_dict, | 180 bool ReadSupportsQuic(const base::DictionaryValue& server_dict, |
181 IPAddressNumber* last_quic_address); | 181 IPAddressNumber* last_quic_address); |
182 void AddToSpdySettingsMap(const HostPortPair& server, | 182 void AddToSpdySettingsMap(const HostPortPair& server, |
183 const base::DictionaryValue& server_dict, | 183 const base::DictionaryValue& server_dict, |
184 SpdySettingsMap* spdy_settings_map); | 184 SpdySettingsMap* spdy_settings_map); |
| 185 AlternateProtocolInfo ParseAlternateProtocolDict( |
| 186 const base::DictionaryValue& alternate_protocol_dict, |
| 187 const std::string& server_str); |
185 bool AddToAlternateProtocolMap(const HostPortPair& server, | 188 bool AddToAlternateProtocolMap(const HostPortPair& server, |
186 const base::DictionaryValue& server_dict, | 189 const base::DictionaryValue& server_dict, |
187 AlternateProtocolMap* alternate_protocol_map); | 190 AlternateProtocolMap* alternate_protocol_map); |
188 bool AddToNetworkStatsMap(const HostPortPair& server, | 191 bool AddToNetworkStatsMap(const HostPortPair& server, |
189 const base::DictionaryValue& server_dict, | 192 const base::DictionaryValue& server_dict, |
190 ServerNetworkStatsMap* network_stats_map); | 193 ServerNetworkStatsMap* network_stats_map); |
191 | 194 |
192 void SaveSpdySettingsToServerPrefs(const SettingsMap* spdy_settings_map, | 195 void SaveSpdySettingsToServerPrefs(const SettingsMap* spdy_settings_map, |
193 base::DictionaryValue* server_pref_dict); | 196 base::DictionaryValue* server_pref_dict); |
194 void SaveAlternateProtocolToServerPrefs( | 197 void SaveAlternateProtocolToServerPrefs( |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 // Used to get |weak_ptr_| to self on the network thread. | 242 // Used to get |weak_ptr_| to self on the network thread. |
240 scoped_ptr<base::WeakPtrFactory<HttpServerPropertiesManager> > | 243 scoped_ptr<base::WeakPtrFactory<HttpServerPropertiesManager> > |
241 network_weak_ptr_factory_; | 244 network_weak_ptr_factory_; |
242 | 245 |
243 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesManager); | 246 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesManager); |
244 }; | 247 }; |
245 | 248 |
246 } // namespace net | 249 } // namespace net |
247 | 250 |
248 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_MANAGER_H_ | 251 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_MANAGER_H_ |
OLD | NEW |