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_H_ | 5 #ifndef NET_HTTP_HTTP_SERVER_PROPERTIES_H_ |
6 #define NET_HTTP_HTTP_SERVER_PROPERTIES_H_ | 6 #define NET_HTTP_HTTP_SERVER_PROPERTIES_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 | 213 |
214 // Sets the Alternate-Protocol for |server|. | 214 // Sets the Alternate-Protocol for |server|. |
215 virtual void SetAlternateProtocol(const HostPortPair& server, | 215 virtual void SetAlternateProtocol(const HostPortPair& server, |
216 uint16 alternate_port, | 216 uint16 alternate_port, |
217 AlternateProtocol alternate_protocol, | 217 AlternateProtocol alternate_protocol, |
218 double probability) = 0; | 218 double probability) = 0; |
219 | 219 |
220 // Sets the Alternate-Protocol for |server| to be BROKEN. | 220 // Sets the Alternate-Protocol for |server| to be BROKEN. |
221 virtual void SetBrokenAlternateProtocol(const HostPortPair& server) = 0; | 221 virtual void SetBrokenAlternateProtocol(const HostPortPair& server) = 0; |
222 | 222 |
| 223 // Marks |alternative_service| as recently broken. |
| 224 virtual void MarkAlternativeServiceRecentlyBroken( |
| 225 const AlternativeService& alternative_service) = 0; |
| 226 |
223 // Returns true iff |alternative_service| is currently broken. | 227 // Returns true iff |alternative_service| is currently broken. |
224 virtual bool IsAlternativeServiceBroken( | 228 virtual bool IsAlternativeServiceBroken( |
225 const AlternativeService& alternative_service) = 0; | 229 const AlternativeService& alternative_service) = 0; |
226 | 230 |
227 // Returns true if Alternate-Protocol for |server| was recently BROKEN. | 231 // Returns true if Alternate-Protocol for |server| was recently BROKEN. |
228 virtual bool WasAlternateProtocolRecentlyBroken( | 232 virtual bool WasAlternateProtocolRecentlyBroken( |
229 const HostPortPair& server) = 0; | 233 const HostPortPair& server) = 0; |
230 | 234 |
231 // Confirms that Alternate-Protocol for |server| is working. | 235 // Confirms that Alternate-Protocol for |server| is working. |
232 virtual void ConfirmAlternateProtocol(const HostPortPair& server) = 0; | 236 virtual void ConfirmAlternateProtocol(const HostPortPair& server) = 0; |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 | 283 |
280 virtual const ServerNetworkStatsMap& server_network_stats_map() const = 0; | 284 virtual const ServerNetworkStatsMap& server_network_stats_map() const = 0; |
281 | 285 |
282 private: | 286 private: |
283 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties); | 287 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties); |
284 }; | 288 }; |
285 | 289 |
286 } // namespace net | 290 } // namespace net |
287 | 291 |
288 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_ | 292 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_ |
OLD | NEW |