| 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 bool SupportsRequestPriority(const url::SchemeHostPort& server) override; | 122 bool SupportsRequestPriority(const url::SchemeHostPort& server) override; |
| 123 bool GetSupportsSpdy(const url::SchemeHostPort& server) override; | 123 bool GetSupportsSpdy(const url::SchemeHostPort& server) override; |
| 124 void SetSupportsSpdy(const url::SchemeHostPort& server, | 124 void SetSupportsSpdy(const url::SchemeHostPort& server, |
| 125 bool support_spdy) override; | 125 bool support_spdy) override; |
| 126 bool RequiresHTTP11(const HostPortPair& server) override; | 126 bool RequiresHTTP11(const HostPortPair& server) override; |
| 127 void SetHTTP11Required(const HostPortPair& server) override; | 127 void SetHTTP11Required(const HostPortPair& server) override; |
| 128 void MaybeForceHTTP11(const HostPortPair& server, | 128 void MaybeForceHTTP11(const HostPortPair& server, |
| 129 SSLConfig* ssl_config) override; | 129 SSLConfig* ssl_config) override; |
| 130 AlternativeServiceInfoVector GetAlternativeServiceInfos( | 130 AlternativeServiceInfoVector GetAlternativeServiceInfos( |
| 131 const url::SchemeHostPort& origin) override; | 131 const url::SchemeHostPort& origin) override; |
| 132 bool SetAlternativeService(const url::SchemeHostPort& origin, | 132 bool SetHttp2AlternativeService(const url::SchemeHostPort& origin, |
| 133 const AlternativeService& alternative_service, | 133 const AlternativeService& alternative_service, |
| 134 base::Time expiration) override; | 134 base::Time expiration) override; |
| 135 bool SetQuicAlternativeService( |
| 136 const url::SchemeHostPort& origin, |
| 137 const AlternativeService& alternative_service, |
| 138 base::Time expiration, |
| 139 const QuicVersionVector& advertised_versions) override; |
| 135 bool SetAlternativeServices(const url::SchemeHostPort& origin, | 140 bool SetAlternativeServices(const url::SchemeHostPort& origin, |
| 136 const AlternativeServiceInfoVector& | 141 const AlternativeServiceInfoVector& |
| 137 alternative_service_info_vector) override; | 142 alternative_service_info_vector) override; |
| 138 void MarkAlternativeServiceBroken( | 143 void MarkAlternativeServiceBroken( |
| 139 const AlternativeService& alternative_service) override; | 144 const AlternativeService& alternative_service) override; |
| 140 void MarkAlternativeServiceRecentlyBroken( | 145 void MarkAlternativeServiceRecentlyBroken( |
| 141 const AlternativeService& alternative_service) override; | 146 const AlternativeService& alternative_service) override; |
| 142 bool IsAlternativeServiceBroken( | 147 bool IsAlternativeServiceBroken( |
| 143 const AlternativeService& alternative_service) const override; | 148 const AlternativeService& alternative_service) const override; |
| 144 bool WasAlternativeServiceRecentlyBroken( | 149 bool WasAlternativeServiceRecentlyBroken( |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 std::unique_ptr<AlternativeServiceMap> alternative_service_map, | 244 std::unique_ptr<AlternativeServiceMap> alternative_service_map, |
| 240 std::unique_ptr<IPAddress> last_quic_address, | 245 std::unique_ptr<IPAddress> last_quic_address, |
| 241 std::unique_ptr<ServerNetworkStatsMap> server_network_stats_map, | 246 std::unique_ptr<ServerNetworkStatsMap> server_network_stats_map, |
| 242 std::unique_ptr<QuicServerInfoMap> quic_server_info_map, | 247 std::unique_ptr<QuicServerInfoMap> quic_server_info_map, |
| 243 const base::Closure& completion); | 248 const base::Closure& completion); |
| 244 | 249 |
| 245 private: | 250 private: |
| 246 FRIEND_TEST_ALL_PREFIXES(HttpServerPropertiesManagerTest, | 251 FRIEND_TEST_ALL_PREFIXES(HttpServerPropertiesManagerTest, |
| 247 AddToAlternativeServiceMap); | 252 AddToAlternativeServiceMap); |
| 248 FRIEND_TEST_ALL_PREFIXES(HttpServerPropertiesManagerTest, | 253 FRIEND_TEST_ALL_PREFIXES(HttpServerPropertiesManagerTest, |
| 254 ReadAdvertisedVersionsFromPref); |
| 255 FRIEND_TEST_ALL_PREFIXES(HttpServerPropertiesManagerTest, |
| 249 DoNotLoadAltSvcForInsecureOrigins); | 256 DoNotLoadAltSvcForInsecureOrigins); |
| 250 FRIEND_TEST_ALL_PREFIXES(HttpServerPropertiesManagerTest, | 257 FRIEND_TEST_ALL_PREFIXES(HttpServerPropertiesManagerTest, |
| 251 DoNotLoadExpiredAlternativeService); | 258 DoNotLoadExpiredAlternativeService); |
| 252 void OnHttpServerPropertiesChanged(); | 259 void OnHttpServerPropertiesChanged(); |
| 253 | 260 |
| 254 bool AddServersData(const base::DictionaryValue& server_dict, | 261 bool AddServersData(const base::DictionaryValue& server_dict, |
| 255 SpdyServersMap* spdy_servers_map, | 262 SpdyServersMap* spdy_servers_map, |
| 256 AlternativeServiceMap* alternative_service_map, | 263 AlternativeServiceMap* alternative_service_map, |
| 257 ServerNetworkStatsMap* network_stats_map, | 264 ServerNetworkStatsMap* network_stats_map, |
| 258 int version); | 265 int version); |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 network_weak_ptr_factory_; | 330 network_weak_ptr_factory_; |
| 324 | 331 |
| 325 const NetLogWithSource net_log_; | 332 const NetLogWithSource net_log_; |
| 326 | 333 |
| 327 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesManager); | 334 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesManager); |
| 328 }; | 335 }; |
| 329 | 336 |
| 330 } // namespace net | 337 } // namespace net |
| 331 | 338 |
| 332 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_MANAGER_H_ | 339 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_MANAGER_H_ |
| OLD | NEW |