| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 FRIEND_TEST_ALL_PREFIXES(HttpServerPropertiesManagerTest, | 248 FRIEND_TEST_ALL_PREFIXES(HttpServerPropertiesManagerTest, |
| 249 AddToAlternativeServiceMap); | 249 AddToAlternativeServiceMap); |
| 250 FRIEND_TEST_ALL_PREFIXES(HttpServerPropertiesManagerTest, | 250 FRIEND_TEST_ALL_PREFIXES(HttpServerPropertiesManagerTest, |
| 251 DoNotLoadExpiredAlternativeService); | 251 DoNotLoadExpiredAlternativeService); |
| 252 void OnHttpServerPropertiesChanged(); | 252 void OnHttpServerPropertiesChanged(); |
| 253 | 253 |
| 254 bool AddServersData(const base::DictionaryValue& server_dict, | 254 bool AddServersData(const base::DictionaryValue& server_dict, |
| 255 ServerList* spdy_servers, | 255 ServerList* spdy_servers, |
| 256 SpdySettingsMap* spdy_settings_map, | 256 SpdySettingsMap* spdy_settings_map, |
| 257 AlternativeServiceMap* alternative_service_map, | 257 AlternativeServiceMap* alternative_service_map, |
| 258 ServerNetworkStatsMap* network_stats_map); | 258 ServerNetworkStatsMap* network_stats_map, |
| 259 int version); |
| 259 void AddToSpdySettingsMap(const url::SchemeHostPort& server, | 260 void AddToSpdySettingsMap(const url::SchemeHostPort& server, |
| 260 const base::DictionaryValue& server_dict, | 261 const base::DictionaryValue& server_dict, |
| 261 SpdySettingsMap* spdy_settings_map); | 262 SpdySettingsMap* spdy_settings_map); |
| 262 bool ParseAlternativeServiceDict( | 263 bool ParseAlternativeServiceDict( |
| 263 const base::DictionaryValue& alternative_service_dict, | 264 const base::DictionaryValue& alternative_service_dict, |
| 264 const std::string& server_str, | 265 const std::string& server_str, |
| 265 AlternativeServiceInfo* alternative_service_info); | 266 AlternativeServiceInfo* alternative_service_info); |
| 266 bool AddToAlternativeServiceMap( | 267 bool AddToAlternativeServiceMap( |
| 267 const url::SchemeHostPort& server, | 268 const url::SchemeHostPort& server, |
| 268 const base::DictionaryValue& server_dict, | 269 const base::DictionaryValue& server_dict, |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 // Used to get |weak_ptr_| to self on the network thread. | 323 // Used to get |weak_ptr_| to self on the network thread. |
| 323 std::unique_ptr<base::WeakPtrFactory<HttpServerPropertiesManager>> | 324 std::unique_ptr<base::WeakPtrFactory<HttpServerPropertiesManager>> |
| 324 network_weak_ptr_factory_; | 325 network_weak_ptr_factory_; |
| 325 | 326 |
| 326 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesManager); | 327 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesManager); |
| 327 }; | 328 }; |
| 328 | 329 |
| 329 } // namespace net | 330 } // namespace net |
| 330 | 331 |
| 331 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_MANAGER_H_ | 332 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_MANAGER_H_ |
| OLD | NEW |