| 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 AlternateProtocolInfo GetAlternateProtocol( |
| 90 const HostPortPair& server) override; | 90 const HostPortPair& server) override; |
| 91 void SetAlternateProtocol(const HostPortPair& server, | 91 void SetAlternateProtocol(const HostPortPair& server, |
| 92 uint16 alternate_port, | 92 uint16 alternate_port, |
| 93 AlternateProtocol alternate_protocol, | 93 AlternateProtocol alternate_protocol, |
| 94 double alternate_probability) override; | 94 double alternate_probability) override; |
| 95 void SetBrokenAlternateProtocol(const HostPortPair& server) override; | 95 void SetBrokenAlternateProtocol(const HostPortPair& server) override; |
| 96 bool IsAlternativeServiceBroken( |
| 97 const AlternativeService& alternative_service) override; |
| 96 bool WasAlternateProtocolRecentlyBroken(const HostPortPair& server) override; | 98 bool WasAlternateProtocolRecentlyBroken(const HostPortPair& server) override; |
| 97 void ConfirmAlternateProtocol(const HostPortPair& server) override; | 99 void ConfirmAlternateProtocol(const HostPortPair& server) override; |
| 98 void ClearAlternateProtocol(const HostPortPair& server) override; | 100 void ClearAlternateProtocol(const HostPortPair& server) override; |
| 99 const AlternateProtocolMap& alternate_protocol_map() const override; | 101 const AlternateProtocolMap& alternate_protocol_map() const override; |
| 100 void SetAlternateProtocolProbabilityThreshold(double threshold) override; | 102 void SetAlternateProtocolProbabilityThreshold(double threshold) override; |
| 101 const SettingsMap& GetSpdySettings( | 103 const SettingsMap& GetSpdySettings( |
| 102 const HostPortPair& host_port_pair) override; | 104 const HostPortPair& host_port_pair) override; |
| 103 bool SetSpdySetting(const HostPortPair& host_port_pair, | 105 bool SetSpdySetting(const HostPortPair& host_port_pair, |
| 104 SpdySettingsIds id, | 106 SpdySettingsIds id, |
| 105 SpdySettingsFlags flags, | 107 SpdySettingsFlags flags, |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 bool AddToAlternateProtocolMap(const HostPortPair& server, | 190 bool AddToAlternateProtocolMap(const HostPortPair& server, |
| 189 const base::DictionaryValue& server_dict, | 191 const base::DictionaryValue& server_dict, |
| 190 AlternateProtocolMap* alternate_protocol_map); | 192 AlternateProtocolMap* alternate_protocol_map); |
| 191 bool AddToNetworkStatsMap(const HostPortPair& server, | 193 bool AddToNetworkStatsMap(const HostPortPair& server, |
| 192 const base::DictionaryValue& server_dict, | 194 const base::DictionaryValue& server_dict, |
| 193 ServerNetworkStatsMap* network_stats_map); | 195 ServerNetworkStatsMap* network_stats_map); |
| 194 | 196 |
| 195 void SaveSpdySettingsToServerPrefs(const SettingsMap* spdy_settings_map, | 197 void SaveSpdySettingsToServerPrefs(const SettingsMap* spdy_settings_map, |
| 196 base::DictionaryValue* server_pref_dict); | 198 base::DictionaryValue* server_pref_dict); |
| 197 void SaveAlternateProtocolToServerPrefs( | 199 void SaveAlternateProtocolToServerPrefs( |
| 200 const HostPortPair& origin, |
| 198 const AlternateProtocolInfo* port_alternate_protocol, | 201 const AlternateProtocolInfo* port_alternate_protocol, |
| 199 base::DictionaryValue* server_pref_dict); | 202 base::DictionaryValue* server_pref_dict); |
| 200 void SaveNetworkStatsToServerPrefs( | 203 void SaveNetworkStatsToServerPrefs( |
| 201 const ServerNetworkStats* server_network_stats, | 204 const ServerNetworkStats* server_network_stats, |
| 202 base::DictionaryValue* server_pref_dict); | 205 base::DictionaryValue* server_pref_dict); |
| 203 | 206 |
| 204 void SaveSupportsQuicToPrefs( | 207 void SaveSupportsQuicToPrefs( |
| 205 const IPAddressNumber* last_quic_address, | 208 const IPAddressNumber* last_quic_address, |
| 206 base::DictionaryValue* http_server_properties_dict); | 209 base::DictionaryValue* http_server_properties_dict); |
| 207 | 210 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 // Used to get |weak_ptr_| to self on the network thread. | 245 // Used to get |weak_ptr_| to self on the network thread. |
| 243 scoped_ptr<base::WeakPtrFactory<HttpServerPropertiesManager> > | 246 scoped_ptr<base::WeakPtrFactory<HttpServerPropertiesManager> > |
| 244 network_weak_ptr_factory_; | 247 network_weak_ptr_factory_; |
| 245 | 248 |
| 246 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesManager); | 249 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesManager); |
| 247 }; | 250 }; |
| 248 | 251 |
| 249 } // namespace net | 252 } // namespace net |
| 250 | 253 |
| 251 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_MANAGER_H_ | 254 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_MANAGER_H_ |
| OLD | NEW |