| 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 // ---------------------------------- | 79 // ---------------------------------- |
| 80 | 80 |
| 81 base::WeakPtr<HttpServerProperties> GetWeakPtr() override; | 81 base::WeakPtr<HttpServerProperties> GetWeakPtr() override; |
| 82 void Clear() override; | 82 void Clear() override; |
| 83 bool SupportsRequestPriority(const HostPortPair& server) override; | 83 bool SupportsRequestPriority(const HostPortPair& server) override; |
| 84 void SetSupportsSpdy(const HostPortPair& server, bool support_spdy) override; | 84 void SetSupportsSpdy(const HostPortPair& server, bool support_spdy) override; |
| 85 bool RequiresHTTP11(const HostPortPair& server) override; | 85 bool RequiresHTTP11(const HostPortPair& server) override; |
| 86 void SetHTTP11Required(const HostPortPair& server) override; | 86 void SetHTTP11Required(const HostPortPair& server) override; |
| 87 void MaybeForceHTTP11(const HostPortPair& server, | 87 void MaybeForceHTTP11(const HostPortPair& server, |
| 88 SSLConfig* ssl_config) override; | 88 SSLConfig* ssl_config) override; |
| 89 AlternateProtocolInfo GetAlternateProtocol( | 89 AlternateProtocols GetAlternateProtocols(const HostPortPair& server) override; |
| 90 const HostPortPair& server) override; | 90 void AddAlternateProtocol(const HostPortPair& server, |
| 91 void SetAlternateProtocol(const HostPortPair& server, | |
| 92 uint16 alternate_port, | 91 uint16 alternate_port, |
| 93 AlternateProtocol alternate_protocol, | 92 AlternateProtocol alternate_protocol, |
| 94 double alternate_probability) override; | 93 double alternate_probability) override; |
| 95 void SetBrokenAlternateProtocol(const HostPortPair& server) override; | 94 void SetBrokenAlternateProtocol( |
| 96 bool WasAlternateProtocolRecentlyBroken(const HostPortPair& server) override; | 95 const HostPortPair& server, |
| 97 void ConfirmAlternateProtocol(const HostPortPair& server) override; | 96 const AlternateProtocolInfo& broken_alternate_protocol) override; |
| 98 void ClearAlternateProtocol(const HostPortPair& server) override; | 97 bool WasAlternateProtocolRecentlyBroken( |
| 98 const HostPortPair& server, |
| 99 const AlternateProtocolInfo& alternate_protocol) const override; |
| 100 void ConfirmAlternateProtocol( |
| 101 const HostPortPair& server, |
| 102 const AlternateProtocolInfo& alternate_protocol) override; |
| 103 void ClearAlternateProtocols(const HostPortPair& server) override; |
| 104 void ClearNonBrokenAlternateProtocols(const HostPortPair& server) override; |
| 105 void RemoveAlternateProtocol( |
| 106 const HostPortPair& server, |
| 107 const AlternateProtocolInfo& alternate_protocol) override; |
| 99 const AlternateProtocolMap& alternate_protocol_map() const override; | 108 const AlternateProtocolMap& alternate_protocol_map() const override; |
| 100 void SetAlternateProtocolProbabilityThreshold(double threshold) override; | 109 void SetAlternateProtocolProbabilityThreshold(double threshold) override; |
| 101 const SettingsMap& GetSpdySettings( | 110 const SettingsMap& GetSpdySettings( |
| 102 const HostPortPair& host_port_pair) override; | 111 const HostPortPair& host_port_pair) override; |
| 103 bool SetSpdySetting(const HostPortPair& host_port_pair, | 112 bool SetSpdySetting(const HostPortPair& host_port_pair, |
| 104 SpdySettingsIds id, | 113 SpdySettingsIds id, |
| 105 SpdySettingsFlags flags, | 114 SpdySettingsFlags flags, |
| 106 uint32 value) override; | 115 uint32 value) override; |
| 107 void ClearSpdySettings(const HostPortPair& host_port_pair) override; | 116 void ClearSpdySettings(const HostPortPair& host_port_pair) override; |
| 108 void ClearAllSpdySettings() override; | 117 void ClearAllSpdySettings() override; |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 bool AddToAlternateProtocolMap(const HostPortPair& server, | 197 bool AddToAlternateProtocolMap(const HostPortPair& server, |
| 189 const base::DictionaryValue& server_dict, | 198 const base::DictionaryValue& server_dict, |
| 190 AlternateProtocolMap* alternate_protocol_map); | 199 AlternateProtocolMap* alternate_protocol_map); |
| 191 bool AddToNetworkStatsMap(const HostPortPair& server, | 200 bool AddToNetworkStatsMap(const HostPortPair& server, |
| 192 const base::DictionaryValue& server_dict, | 201 const base::DictionaryValue& server_dict, |
| 193 ServerNetworkStatsMap* network_stats_map); | 202 ServerNetworkStatsMap* network_stats_map); |
| 194 | 203 |
| 195 void SaveSpdySettingsToServerPrefs(const SettingsMap* spdy_settings_map, | 204 void SaveSpdySettingsToServerPrefs(const SettingsMap* spdy_settings_map, |
| 196 base::DictionaryValue* server_pref_dict); | 205 base::DictionaryValue* server_pref_dict); |
| 197 void SaveAlternateProtocolToServerPrefs( | 206 void SaveAlternateProtocolToServerPrefs( |
| 198 const AlternateProtocolInfo* port_alternate_protocol, | 207 const AlternateProtocols* port_alternate_protocol, |
| 199 base::DictionaryValue* server_pref_dict); | 208 base::DictionaryValue* server_pref_dict, |
| 209 const HostPortPair& server); |
| 200 void SaveNetworkStatsToServerPrefs( | 210 void SaveNetworkStatsToServerPrefs( |
| 201 const ServerNetworkStats* server_network_stats, | 211 const ServerNetworkStats* server_network_stats, |
| 202 base::DictionaryValue* server_pref_dict); | 212 base::DictionaryValue* server_pref_dict); |
| 203 | 213 |
| 204 void SaveSupportsQuicToPrefs( | 214 void SaveSupportsQuicToPrefs( |
| 205 const IPAddressNumber* last_quic_address, | 215 const IPAddressNumber* last_quic_address, |
| 206 base::DictionaryValue* http_server_properties_dict); | 216 base::DictionaryValue* http_server_properties_dict); |
| 207 | 217 |
| 208 // ----------- | 218 // ----------- |
| 209 // Pref thread | 219 // Pref thread |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 // Used to get |weak_ptr_| to self on the network thread. | 252 // Used to get |weak_ptr_| to self on the network thread. |
| 243 scoped_ptr<base::WeakPtrFactory<HttpServerPropertiesManager> > | 253 scoped_ptr<base::WeakPtrFactory<HttpServerPropertiesManager> > |
| 244 network_weak_ptr_factory_; | 254 network_weak_ptr_factory_; |
| 245 | 255 |
| 246 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesManager); | 256 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesManager); |
| 247 }; | 257 }; |
| 248 | 258 |
| 249 } // namespace net | 259 } // namespace net |
| 250 | 260 |
| 251 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_MANAGER_H_ | 261 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_MANAGER_H_ |
| OLD | NEW |