Chromium Code Reviews| 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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 230 | 230 |
| 231 private: | 231 private: |
| 232 typedef std::vector<std::string> ServerList; | 232 typedef std::vector<std::string> ServerList; |
| 233 | 233 |
| 234 FRIEND_TEST_ALL_PREFIXES(HttpServerPropertiesManagerTest, | 234 FRIEND_TEST_ALL_PREFIXES(HttpServerPropertiesManagerTest, |
| 235 AddToAlternativeServiceMap); | 235 AddToAlternativeServiceMap); |
| 236 FRIEND_TEST_ALL_PREFIXES(HttpServerPropertiesManagerTest, | 236 FRIEND_TEST_ALL_PREFIXES(HttpServerPropertiesManagerTest, |
| 237 DoNotLoadAltSvcForInsecureOrigins); | 237 DoNotLoadAltSvcForInsecureOrigins); |
| 238 FRIEND_TEST_ALL_PREFIXES(HttpServerPropertiesManagerTest, | 238 FRIEND_TEST_ALL_PREFIXES(HttpServerPropertiesManagerTest, |
| 239 DoNotLoadExpiredAlternativeService); | 239 DoNotLoadExpiredAlternativeService); |
| 240 friend class HttpServerPropertiesManagerPeer; | |
|
Ryan Hamilton
2016/12/12 05:30:20
Is this still needed?
Zhongyi Shi
2016/12/12 21:14:46
Done. Sorry for leaving this around.
| |
| 240 void OnHttpServerPropertiesChanged(); | 241 void OnHttpServerPropertiesChanged(); |
| 241 | 242 |
| 242 bool AddServersData(const base::DictionaryValue& server_dict, | 243 bool AddServersData(const base::DictionaryValue& server_dict, |
| 243 ServerList* spdy_servers, | 244 ServerList* spdy_servers, |
| 244 AlternativeServiceMap* alternative_service_map, | 245 AlternativeServiceMap* alternative_service_map, |
| 245 ServerNetworkStatsMap* network_stats_map, | 246 ServerNetworkStatsMap* network_stats_map, |
| 246 int version); | 247 int version); |
| 247 bool ParseAlternativeServiceDict( | 248 bool ParseAlternativeServiceDict( |
| 248 const base::DictionaryValue& alternative_service_dict, | 249 const base::DictionaryValue& alternative_service_dict, |
| 249 const std::string& server_str, | 250 const std::string& server_str, |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 305 // Used to get |weak_ptr_| to self on the network thread. | 306 // Used to get |weak_ptr_| to self on the network thread. |
| 306 std::unique_ptr<base::WeakPtrFactory<HttpServerPropertiesManager>> | 307 std::unique_ptr<base::WeakPtrFactory<HttpServerPropertiesManager>> |
| 307 network_weak_ptr_factory_; | 308 network_weak_ptr_factory_; |
| 308 | 309 |
| 309 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesManager); | 310 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesManager); |
| 310 }; | 311 }; |
| 311 | 312 |
| 312 } // namespace net | 313 } // namespace net |
| 313 | 314 |
| 314 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_MANAGER_H_ | 315 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_MANAGER_H_ |
| OLD | NEW |