| 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 const url::SchemeHostPort& server) override; | 142 const url::SchemeHostPort& server) override; |
| 143 bool SetSpdySetting(const url::SchemeHostPort& server, | 143 bool SetSpdySetting(const url::SchemeHostPort& server, |
| 144 SpdySettingsIds id, | 144 SpdySettingsIds id, |
| 145 SpdySettingsFlags flags, | 145 SpdySettingsFlags flags, |
| 146 uint32_t value) override; | 146 uint32_t value) override; |
| 147 void ClearSpdySettings(const url::SchemeHostPort& server) override; | 147 void ClearSpdySettings(const url::SchemeHostPort& server) override; |
| 148 void ClearAllSpdySettings() override; | 148 void ClearAllSpdySettings() override; |
| 149 const SpdySettingsMap& spdy_settings_map() const override; | 149 const SpdySettingsMap& spdy_settings_map() const override; |
| 150 bool GetSupportsQuic(IPAddress* last_address) const override; | 150 bool GetSupportsQuic(IPAddress* last_address) const override; |
| 151 void SetSupportsQuic(bool used_quic, const IPAddress& last_address) override; | 151 void SetSupportsQuic(bool used_quic, const IPAddress& last_address) override; |
| 152 void SetServerNetworkStats(const HostPortPair& host_port_pair, | 152 void SetServerNetworkStats(const url::SchemeHostPort& server, |
| 153 ServerNetworkStats stats) override; | 153 ServerNetworkStats stats) override; |
| 154 const ServerNetworkStats* GetServerNetworkStats( | 154 const ServerNetworkStats* GetServerNetworkStats( |
| 155 const HostPortPair& host_port_pair) override; | 155 const url::SchemeHostPort& server) override; |
| 156 const ServerNetworkStatsMap& server_network_stats_map() const override; | 156 const ServerNetworkStatsMap& server_network_stats_map() const override; |
| 157 bool SetQuicServerInfo(const QuicServerId& server_id, | 157 bool SetQuicServerInfo(const QuicServerId& server_id, |
| 158 const std::string& server_info) override; | 158 const std::string& server_info) override; |
| 159 const std::string* GetQuicServerInfo(const QuicServerId& server_id) override; | 159 const std::string* GetQuicServerInfo(const QuicServerId& server_id) override; |
| 160 const QuicServerInfoMap& quic_server_info_map() const override; | 160 const QuicServerInfoMap& quic_server_info_map() const override; |
| 161 size_t max_server_configs_stored_in_properties() const override; | 161 size_t max_server_configs_stored_in_properties() const override; |
| 162 void SetMaxServerConfigsStoredInProperties( | 162 void SetMaxServerConfigsStoredInProperties( |
| 163 size_t max_server_configs_stored_in_properties) override; | 163 size_t max_server_configs_stored_in_properties) override; |
| 164 | 164 |
| 165 protected: | 165 protected: |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 bool ParseAlternativeServiceDict( | 262 bool ParseAlternativeServiceDict( |
| 263 const base::DictionaryValue& alternative_service_dict, | 263 const base::DictionaryValue& alternative_service_dict, |
| 264 const std::string& server_str, | 264 const std::string& server_str, |
| 265 AlternativeServiceInfo* alternative_service_info); | 265 AlternativeServiceInfo* alternative_service_info); |
| 266 bool AddToAlternativeServiceMap( | 266 bool AddToAlternativeServiceMap( |
| 267 const HostPortPair& server, | 267 const HostPortPair& server, |
| 268 const base::DictionaryValue& server_dict, | 268 const base::DictionaryValue& server_dict, |
| 269 AlternativeServiceMap* alternative_service_map); | 269 AlternativeServiceMap* alternative_service_map); |
| 270 bool ReadSupportsQuic(const base::DictionaryValue& server_dict, | 270 bool ReadSupportsQuic(const base::DictionaryValue& server_dict, |
| 271 IPAddress* last_quic_address); | 271 IPAddress* last_quic_address); |
| 272 bool AddToNetworkStatsMap(const HostPortPair& server, | 272 bool AddToNetworkStatsMap(const url::SchemeHostPort& server, |
| 273 const base::DictionaryValue& server_dict, | 273 const base::DictionaryValue& server_dict, |
| 274 ServerNetworkStatsMap* network_stats_map); | 274 ServerNetworkStatsMap* network_stats_map); |
| 275 bool AddToQuicServerInfoMap(const base::DictionaryValue& server_dict, | 275 bool AddToQuicServerInfoMap(const base::DictionaryValue& server_dict, |
| 276 QuicServerInfoMap* quic_server_info_map); | 276 QuicServerInfoMap* quic_server_info_map); |
| 277 | 277 |
| 278 void SaveSpdySettingsToServerPrefs(const SettingsMap* spdy_settings_map, | 278 void SaveSpdySettingsToServerPrefs(const SettingsMap* spdy_settings_map, |
| 279 base::DictionaryValue* server_pref_dict); | 279 base::DictionaryValue* server_pref_dict); |
| 280 void SaveAlternativeServiceToServerPrefs( | 280 void SaveAlternativeServiceToServerPrefs( |
| 281 const AlternativeServiceInfoVector* alternative_service_info_vector, | 281 const AlternativeServiceInfoVector* alternative_service_info_vector, |
| 282 base::DictionaryValue* server_pref_dict); | 282 base::DictionaryValue* server_pref_dict); |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 // Used to get |weak_ptr_| to self on the network thread. | 322 // Used to get |weak_ptr_| to self on the network thread. |
| 323 std::unique_ptr<base::WeakPtrFactory<HttpServerPropertiesManager>> | 323 std::unique_ptr<base::WeakPtrFactory<HttpServerPropertiesManager>> |
| 324 network_weak_ptr_factory_; | 324 network_weak_ptr_factory_; |
| 325 | 325 |
| 326 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesManager); | 326 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesManager); |
| 327 }; | 327 }; |
| 328 | 328 |
| 329 } // namespace net | 329 } // namespace net |
| 330 | 330 |
| 331 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_MANAGER_H_ | 331 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_MANAGER_H_ |
| OLD | NEW |