OLD | NEW |
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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 const AlternativeService& alternative_service) override; | 96 const AlternativeService& alternative_service) override; |
97 bool IsAlternativeServiceBroken( | 97 bool IsAlternativeServiceBroken( |
98 const AlternativeService& alternative_service) const override; | 98 const AlternativeService& alternative_service) const override; |
99 bool WasAlternativeServiceRecentlyBroken( | 99 bool WasAlternativeServiceRecentlyBroken( |
100 const AlternativeService& alternative_service) override; | 100 const AlternativeService& alternative_service) override; |
101 void ConfirmAlternativeService( | 101 void ConfirmAlternativeService( |
102 const AlternativeService& alternative_service) override; | 102 const AlternativeService& alternative_service) override; |
103 void ClearAlternativeService(const HostPortPair& origin) override; | 103 void ClearAlternativeService(const HostPortPair& origin) override; |
104 const AlternativeServiceMap& alternative_service_map() const override; | 104 const AlternativeServiceMap& alternative_service_map() const override; |
105 base::Value* GetAlternativeServiceInfoAsValue() const override; | 105 base::Value* GetAlternativeServiceInfoAsValue() const override; |
106 void SetAlternateProtocolProbabilityThreshold(double threshold) override; | 106 void SetAlternativeServiceProbabilityThreshold(double threshold) override; |
107 const SettingsMap& GetSpdySettings( | 107 const SettingsMap& GetSpdySettings( |
108 const HostPortPair& host_port_pair) override; | 108 const HostPortPair& host_port_pair) override; |
109 bool SetSpdySetting(const HostPortPair& host_port_pair, | 109 bool SetSpdySetting(const HostPortPair& host_port_pair, |
110 SpdySettingsIds id, | 110 SpdySettingsIds id, |
111 SpdySettingsFlags flags, | 111 SpdySettingsFlags flags, |
112 uint32 value) override; | 112 uint32 value) override; |
113 void ClearSpdySettings(const HostPortPair& host_port_pair) override; | 113 void ClearSpdySettings(const HostPortPair& host_port_pair) override; |
114 void ClearAllSpdySettings() override; | 114 void ClearAllSpdySettings() override; |
115 const SpdySettingsMap& spdy_settings_map() const override; | 115 const SpdySettingsMap& spdy_settings_map() const override; |
116 bool GetSupportsQuic(IPAddressNumber* last_address) const override; | 116 bool GetSupportsQuic(IPAddressNumber* last_address) const override; |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 SpdySettingsMap spdy_settings_map_; | 163 SpdySettingsMap spdy_settings_map_; |
164 ServerNetworkStatsMap server_network_stats_map_; | 164 ServerNetworkStatsMap server_network_stats_map_; |
165 // Contains a map of servers which could share the same alternate protocol. | 165 // Contains a map of servers which could share the same alternate protocol. |
166 // Map from a Canonical host/port (host is some postfix of host names) to an | 166 // Map from a Canonical host/port (host is some postfix of host names) to an |
167 // actual origin, which has a plausible alternate protocol mapping. | 167 // actual origin, which has a plausible alternate protocol mapping. |
168 CanonicalHostMap canonical_host_to_origin_map_; | 168 CanonicalHostMap canonical_host_to_origin_map_; |
169 // Contains list of suffixes (for exmaple ".c.youtube.com", | 169 // Contains list of suffixes (for exmaple ".c.youtube.com", |
170 // ".googlevideo.com", ".googleusercontent.com") of canonical hostnames. | 170 // ".googlevideo.com", ".googleusercontent.com") of canonical hostnames. |
171 CanonicalSufficList canonical_suffixes_; | 171 CanonicalSufficList canonical_suffixes_; |
172 | 172 |
173 double alternate_protocol_probability_threshold_; | 173 double alternative_service_probability_threshold_; |
174 | 174 |
175 base::WeakPtrFactory<HttpServerPropertiesImpl> weak_ptr_factory_; | 175 base::WeakPtrFactory<HttpServerPropertiesImpl> weak_ptr_factory_; |
176 | 176 |
177 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesImpl); | 177 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesImpl); |
178 }; | 178 }; |
179 | 179 |
180 } // namespace net | 180 } // namespace net |
181 | 181 |
182 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_IMPL_H_ | 182 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_IMPL_H_ |
OLD | NEW |