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

Side by Side Diff: net/http/http_server_properties_impl.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 unified diff | Download patch
« no previous file with comments | « net/http/http_server_properties.h ('k') | net/http/http_server_properties_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_IMPL_H_ 5 #ifndef NET_HTTP_HTTP_SERVER_PROPERTIES_IMPL_H_
6 #define NET_HTTP_HTTP_SERVER_PROPERTIES_IMPL_H_ 6 #define NET_HTTP_HTTP_SERVER_PROPERTIES_IMPL_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...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 bool SetAlternativeService(const HostPortPair& origin,
92 const AlternativeService& alternative_service, 93 const AlternativeService& alternative_service,
93 double alternative_probability) override; 94 double alternative_probability) override;
95 bool SetAlternativeServices(const HostPortPair& origin,
96 const AlternativeServiceInfoVector&
97 alternative_service_info_vector) override;
94 void MarkAlternativeServiceBroken( 98 void MarkAlternativeServiceBroken(
95 const AlternativeService& alternative_service) override; 99 const AlternativeService& alternative_service) override;
96 void MarkAlternativeServiceRecentlyBroken( 100 void MarkAlternativeServiceRecentlyBroken(
97 const AlternativeService& alternative_service) override; 101 const AlternativeService& alternative_service) override;
98 bool IsAlternativeServiceBroken( 102 bool IsAlternativeServiceBroken(
99 const AlternativeService& alternative_service) const override; 103 const AlternativeService& alternative_service) const override;
100 bool WasAlternativeServiceRecentlyBroken( 104 bool WasAlternativeServiceRecentlyBroken(
101 const AlternativeService& alternative_service) override; 105 const AlternativeService& alternative_service) override;
102 void ConfirmAlternativeService( 106 void ConfirmAlternativeService(
103 const AlternativeService& alternative_service) override; 107 const AlternativeService& alternative_service) override;
104 void ClearAlternativeService(const HostPortPair& origin) override; 108 void ClearAlternativeServices(const HostPortPair& origin) override;
105 const AlternativeServiceMap& alternative_service_map() const override; 109 const AlternativeServiceMap& alternative_service_map() const override;
106 scoped_ptr<base::Value> GetAlternativeServiceInfoAsValue() const override; 110 scoped_ptr<base::Value> GetAlternativeServiceInfoAsValue() const override;
107 void SetAlternativeServiceProbabilityThreshold(double threshold) override; 111 void SetAlternativeServiceProbabilityThreshold(double threshold) override;
108 const SettingsMap& GetSpdySettings( 112 const SettingsMap& GetSpdySettings(
109 const HostPortPair& host_port_pair) override; 113 const HostPortPair& host_port_pair) override;
110 bool SetSpdySetting(const HostPortPair& host_port_pair, 114 bool SetSpdySetting(const HostPortPair& host_port_pair,
111 SpdySettingsIds id, 115 SpdySettingsIds id,
112 SpdySettingsFlags flags, 116 SpdySettingsFlags flags,
113 uint32 value) override; 117 uint32 value) override;
114 void ClearSpdySettings(const HostPortPair& host_port_pair) override; 118 void ClearSpdySettings(const HostPortPair& host_port_pair) override;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 double alternative_service_probability_threshold_; 178 double alternative_service_probability_threshold_;
175 179
176 base::WeakPtrFactory<HttpServerPropertiesImpl> weak_ptr_factory_; 180 base::WeakPtrFactory<HttpServerPropertiesImpl> weak_ptr_factory_;
177 181
178 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesImpl); 182 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesImpl);
179 }; 183 };
180 184
181 } // namespace net 185 } // namespace net
182 186
183 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_IMPL_H_ 187 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_IMPL_H_
OLDNEW
« no previous file with comments | « net/http/http_server_properties.h ('k') | net/http/http_server_properties_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698