| 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 | |
| 227 // Returns true iff |alternative_service| is currently broken. | 223 // Returns true iff |alternative_service| is currently broken. |
| 228 virtual bool IsAlternativeServiceBroken( | 224 virtual bool IsAlternativeServiceBroken( |
| 229 const AlternativeService& alternative_service) = 0; | 225 const AlternativeService& alternative_service) = 0; |
| 230 | 226 |
| 231 // Returns true if Alternate-Protocol for |server| was recently BROKEN. | 227 // Returns true if Alternate-Protocol for |server| was recently BROKEN. |
| 232 virtual bool WasAlternateProtocolRecentlyBroken( | 228 virtual bool WasAlternateProtocolRecentlyBroken( |
| 233 const HostPortPair& server) = 0; | 229 const HostPortPair& server) = 0; |
| 234 | 230 |
| 235 // Confirms that Alternate-Protocol for |server| is working. | 231 // Confirms that Alternate-Protocol for |server| is working. |
| 236 virtual void ConfirmAlternateProtocol(const HostPortPair& server) = 0; | 232 virtual void ConfirmAlternateProtocol(const HostPortPair& server) = 0; |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 | 279 |
| 284 virtual const ServerNetworkStatsMap& server_network_stats_map() const = 0; | 280 virtual const ServerNetworkStatsMap& server_network_stats_map() const = 0; |
| 285 | 281 |
| 286 private: | 282 private: |
| 287 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties); | 283 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties); |
| 288 }; | 284 }; |
| 289 | 285 |
| 290 } // namespace net | 286 } // namespace net |
| 291 | 287 |
| 292 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_ | 288 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_ |
| OLD | NEW |