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

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

Issue 1699653002: Remove support for Alt-Svc/Alternate Protocol Probability (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix BIDI Created 4 years, 9 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.cc ('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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 bool GetSupportsSpdy(const HostPortPair& server) override; 83 bool GetSupportsSpdy(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 AlternativeServiceVector GetAlternativeServices( 89 AlternativeServiceVector GetAlternativeServices(
90 const HostPortPair& origin) override; 90 const HostPortPair& origin) override;
91 bool SetAlternativeService(const HostPortPair& origin, 91 bool SetAlternativeService(const HostPortPair& origin,
92 const AlternativeService& alternative_service, 92 const AlternativeService& alternative_service,
93 double alternative_probability,
94 base::Time expiration) override; 93 base::Time expiration) override;
95 bool SetAlternativeServices(const HostPortPair& origin, 94 bool SetAlternativeServices(const HostPortPair& origin,
96 const AlternativeServiceInfoVector& 95 const AlternativeServiceInfoVector&
97 alternative_service_info_vector) override; 96 alternative_service_info_vector) override;
98 void MarkAlternativeServiceBroken( 97 void MarkAlternativeServiceBroken(
99 const AlternativeService& alternative_service) override; 98 const AlternativeService& alternative_service) override;
100 void MarkAlternativeServiceRecentlyBroken( 99 void MarkAlternativeServiceRecentlyBroken(
101 const AlternativeService& alternative_service) override; 100 const AlternativeService& alternative_service) override;
102 bool IsAlternativeServiceBroken( 101 bool IsAlternativeServiceBroken(
103 const AlternativeService& alternative_service) const override; 102 const AlternativeService& alternative_service) const override;
104 bool WasAlternativeServiceRecentlyBroken( 103 bool WasAlternativeServiceRecentlyBroken(
105 const AlternativeService& alternative_service) override; 104 const AlternativeService& alternative_service) override;
106 void ConfirmAlternativeService( 105 void ConfirmAlternativeService(
107 const AlternativeService& alternative_service) override; 106 const AlternativeService& alternative_service) override;
108 void ClearAlternativeServices(const HostPortPair& origin) override; 107 void ClearAlternativeServices(const HostPortPair& origin) override;
109 const AlternativeServiceMap& alternative_service_map() const override; 108 const AlternativeServiceMap& alternative_service_map() const override;
110 scoped_ptr<base::Value> GetAlternativeServiceInfoAsValue() const override; 109 scoped_ptr<base::Value> GetAlternativeServiceInfoAsValue() const override;
111 void SetAlternativeServiceProbabilityThreshold(double threshold) override;
112 const SettingsMap& GetSpdySettings( 110 const SettingsMap& GetSpdySettings(
113 const HostPortPair& host_port_pair) override; 111 const HostPortPair& host_port_pair) override;
114 bool SetSpdySetting(const HostPortPair& host_port_pair, 112 bool SetSpdySetting(const HostPortPair& host_port_pair,
115 SpdySettingsIds id, 113 SpdySettingsIds id,
116 SpdySettingsFlags flags, 114 SpdySettingsFlags flags,
117 uint32_t value) override; 115 uint32_t value) override;
118 void ClearSpdySettings(const HostPortPair& host_port_pair) override; 116 void ClearSpdySettings(const HostPortPair& host_port_pair) override;
119 void ClearAllSpdySettings() override; 117 void ClearAllSpdySettings() override;
120 const SpdySettingsMap& spdy_settings_map() const override; 118 const SpdySettingsMap& spdy_settings_map() const override;
121 bool GetSupportsQuic(IPAddress* last_address) const override; 119 bool GetSupportsQuic(IPAddress* last_address) const override;
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 SpdySettingsMap spdy_settings_map_; 175 SpdySettingsMap spdy_settings_map_;
178 ServerNetworkStatsMap server_network_stats_map_; 176 ServerNetworkStatsMap server_network_stats_map_;
179 // Contains a map of servers which could share the same alternate protocol. 177 // Contains a map of servers which could share the same alternate protocol.
180 // Map from a Canonical host/port (host is some postfix of host names) to an 178 // Map from a Canonical host/port (host is some postfix of host names) to an
181 // actual origin, which has a plausible alternate protocol mapping. 179 // actual origin, which has a plausible alternate protocol mapping.
182 CanonicalHostMap canonical_host_to_origin_map_; 180 CanonicalHostMap canonical_host_to_origin_map_;
183 // Contains list of suffixes (for exmaple ".c.youtube.com", 181 // Contains list of suffixes (for exmaple ".c.youtube.com",
184 // ".googlevideo.com", ".googleusercontent.com") of canonical hostnames. 182 // ".googlevideo.com", ".googleusercontent.com") of canonical hostnames.
185 CanonicalSufficList canonical_suffixes_; 183 CanonicalSufficList canonical_suffixes_;
186 184
187 double alternative_service_probability_threshold_;
188
189 QuicServerInfoMap quic_server_info_map_; 185 QuicServerInfoMap quic_server_info_map_;
190 size_t max_server_configs_stored_in_properties_; 186 size_t max_server_configs_stored_in_properties_;
191 187
192 base::WeakPtrFactory<HttpServerPropertiesImpl> weak_ptr_factory_; 188 base::WeakPtrFactory<HttpServerPropertiesImpl> weak_ptr_factory_;
193 189
194 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesImpl); 190 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesImpl);
195 }; 191 };
196 192
197 } // namespace net 193 } // namespace net
198 194
199 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_IMPL_H_ 195 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_IMPL_H_
OLDNEW
« no previous file with comments | « net/http/http_server_properties.cc ('k') | net/http/http_server_properties_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698