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

Unified 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: Nit. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/http/http_server_properties_impl_unittest.cc ('k') | net/http/http_server_properties_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_server_properties_manager.h
diff --git a/net/http/http_server_properties_manager.h b/net/http/http_server_properties_manager.h
index a7f0d01ccb4d6f0e517d646112bbcc86b02d9231..3b8f155d6e4c969a854dba16b92153f59ac53a7e 100644
--- a/net/http/http_server_properties_manager.h
+++ b/net/http/http_server_properties_manager.h
@@ -87,10 +87,14 @@ class NET_EXPORT HttpServerPropertiesManager : public HttpServerProperties {
void SetHTTP11Required(const HostPortPair& server) override;
void MaybeForceHTTP11(const HostPortPair& server,
SSLConfig* ssl_config) override;
- AlternativeService GetAlternativeService(const HostPortPair& origin) override;
- void SetAlternativeService(const HostPortPair& origin,
+ AlternativeServiceVector GetAlternativeServices(
+ const HostPortPair& origin) override;
+ bool SetAlternativeService(const HostPortPair& origin,
const AlternativeService& alternative_service,
double alternative_probability) override;
+ bool SetAlternativeServices(const HostPortPair& origin,
+ const AlternativeServiceInfoVector&
+ alternative_service_info_vector) override;
void MarkAlternativeServiceBroken(
const AlternativeService& alternative_service) override;
void MarkAlternativeServiceRecentlyBroken(
@@ -101,7 +105,7 @@ class NET_EXPORT HttpServerPropertiesManager : public HttpServerProperties {
const AlternativeService& alternative_service) override;
void ConfirmAlternativeService(
const AlternativeService& alternative_service) override;
- void ClearAlternativeService(const HostPortPair& origin) override;
+ void ClearAlternativeServices(const HostPortPair& origin) override;
const AlternativeServiceMap& alternative_service_map() const override;
scoped_ptr<base::Value> GetAlternativeServiceInfoAsValue() const override;
void SetAlternativeServiceProbabilityThreshold(double threshold) override;
@@ -128,7 +132,7 @@ class NET_EXPORT HttpServerPropertiesManager : public HttpServerProperties {
enum Location {
SUPPORTS_SPDY = 0,
HTTP_11_REQUIRED = 1,
- SET_ALTERNATIVE_SERVICE = 2,
+ SET_ALTERNATIVE_SERVICES = 2,
MARK_ALTERNATIVE_SERVICE_BROKEN = 3,
MARK_ALTERNATIVE_SERVICE_RECENTLY_BROKEN = 4,
CONFIRM_ALTERNATIVE_SERVICE = 5,
@@ -222,7 +226,7 @@ class NET_EXPORT HttpServerPropertiesManager : public HttpServerProperties {
void SaveSpdySettingsToServerPrefs(const SettingsMap* spdy_settings_map,
base::DictionaryValue* server_pref_dict);
void SaveAlternativeServiceToServerPrefs(
- const AlternativeServiceInfo* alternative_service_info,
+ const AlternativeServiceInfoVector* alternative_service_info_vector,
base::DictionaryValue* server_pref_dict);
void SaveNetworkStatsToServerPrefs(
const ServerNetworkStats* server_network_stats,
« no previous file with comments | « net/http/http_server_properties_impl_unittest.cc ('k') | net/http/http_server_properties_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698