Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(185)

Side by Side Diff: net/http/http_server_properties_manager.h

Issue 1216703002: Implement multiple alternative services per origin. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 bool GetSupportsSpdy(const HostPortPair& server) override; 84 bool GetSupportsSpdy(const HostPortPair& server) override;
85 void SetSupportsSpdy(const HostPortPair& server, bool support_spdy) override; 85 void SetSupportsSpdy(const HostPortPair& server, bool support_spdy) override;
86 bool RequiresHTTP11(const HostPortPair& server) override; 86 bool RequiresHTTP11(const HostPortPair& server) override;
87 void SetHTTP11Required(const HostPortPair& server) override; 87 void SetHTTP11Required(const HostPortPair& server) override;
88 void MaybeForceHTTP11(const HostPortPair& server, 88 void MaybeForceHTTP11(const HostPortPair& server,
89 SSLConfig* ssl_config) override; 89 SSLConfig* ssl_config) override;
90 AlternativeService GetAlternativeService(const HostPortPair& origin) override; 90 AlternativeServiceVector GetAlternativeServices(
91 void SetAlternativeService(const HostPortPair& origin, 91 const HostPortPair& origin) override;
92 void AddAlternativeService(const HostPortPair& origin,
92 const AlternativeService& alternative_service, 93 const AlternativeService& alternative_service,
93 double alternative_probability) override; 94 double alternative_probability) override;
94 void MarkAlternativeServiceBroken( 95 void MarkAlternativeServiceBroken(
95 const AlternativeService& alternative_service) override; 96 const AlternativeService& alternative_service) override;
96 void MarkAlternativeServiceRecentlyBroken( 97 void MarkAlternativeServiceRecentlyBroken(
97 const AlternativeService& alternative_service) override; 98 const AlternativeService& alternative_service) override;
98 bool IsAlternativeServiceBroken( 99 bool IsAlternativeServiceBroken(
99 const AlternativeService& alternative_service) const override; 100 const AlternativeService& alternative_service) const override;
100 bool WasAlternativeServiceRecentlyBroken( 101 bool WasAlternativeServiceRecentlyBroken(
101 const AlternativeService& alternative_service) override; 102 const AlternativeService& alternative_service) override;
102 void ConfirmAlternativeService( 103 void ConfirmAlternativeService(
103 const AlternativeService& alternative_service) override; 104 const AlternativeService& alternative_service) override;
104 void ClearAlternativeService(const HostPortPair& origin) override; 105 void ClearAlternativeServices(const HostPortPair& origin) override;
105 const AlternativeServiceMap& alternative_service_map() const override; 106 const AlternativeServiceMap& alternative_service_map() const override;
106 scoped_ptr<base::Value> GetAlternativeServiceInfoAsValue() const override; 107 scoped_ptr<base::Value> GetAlternativeServiceInfoAsValue() const override;
107 void SetAlternativeServiceProbabilityThreshold(double threshold) override; 108 void SetAlternativeServiceProbabilityThreshold(double threshold) override;
108 const SettingsMap& GetSpdySettings( 109 const SettingsMap& GetSpdySettings(
109 const HostPortPair& host_port_pair) override; 110 const HostPortPair& host_port_pair) override;
110 bool SetSpdySetting(const HostPortPair& host_port_pair, 111 bool SetSpdySetting(const HostPortPair& host_port_pair,
111 SpdySettingsIds id, 112 SpdySettingsIds id,
112 SpdySettingsFlags flags, 113 SpdySettingsFlags flags,
113 uint32 value) override; 114 uint32 value) override;
114 void ClearSpdySettings(const HostPortPair& host_port_pair) override; 115 void ClearSpdySettings(const HostPortPair& host_port_pair) override;
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 const HostPortPair& server, 216 const HostPortPair& server,
216 const base::DictionaryValue& server_dict, 217 const base::DictionaryValue& server_dict,
217 AlternativeServiceMap* alternative_service_map); 218 AlternativeServiceMap* alternative_service_map);
218 bool AddToNetworkStatsMap(const HostPortPair& server, 219 bool AddToNetworkStatsMap(const HostPortPair& server,
219 const base::DictionaryValue& server_dict, 220 const base::DictionaryValue& server_dict,
220 ServerNetworkStatsMap* network_stats_map); 221 ServerNetworkStatsMap* network_stats_map);
221 222
222 void SaveSpdySettingsToServerPrefs(const SettingsMap* spdy_settings_map, 223 void SaveSpdySettingsToServerPrefs(const SettingsMap* spdy_settings_map,
223 base::DictionaryValue* server_pref_dict); 224 base::DictionaryValue* server_pref_dict);
224 void SaveAlternativeServiceToServerPrefs( 225 void SaveAlternativeServiceToServerPrefs(
225 const AlternativeServiceInfo* alternative_service_info, 226 const AlternativeServiceInfoVector* alternative_service_info_vector,
226 base::DictionaryValue* server_pref_dict); 227 base::DictionaryValue* server_pref_dict);
227 void SaveNetworkStatsToServerPrefs( 228 void SaveNetworkStatsToServerPrefs(
228 const ServerNetworkStats* server_network_stats, 229 const ServerNetworkStats* server_network_stats,
229 base::DictionaryValue* server_pref_dict); 230 base::DictionaryValue* server_pref_dict);
230 231
231 void SaveSupportsQuicToPrefs( 232 void SaveSupportsQuicToPrefs(
232 const IPAddressNumber* last_quic_address, 233 const IPAddressNumber* last_quic_address,
233 base::DictionaryValue* http_server_properties_dict); 234 base::DictionaryValue* http_server_properties_dict);
234 235
235 // ----------- 236 // -----------
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 // Used to get |weak_ptr_| to self on the network thread. 270 // Used to get |weak_ptr_| to self on the network thread.
270 scoped_ptr<base::WeakPtrFactory<HttpServerPropertiesManager> > 271 scoped_ptr<base::WeakPtrFactory<HttpServerPropertiesManager> >
271 network_weak_ptr_factory_; 272 network_weak_ptr_factory_;
272 273
273 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesManager); 274 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesManager);
274 }; 275 };
275 276
276 } // namespace net 277 } // namespace net
277 278
278 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_MANAGER_H_ 279 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698