| 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 | 137 |
| 138 // The interface for setting/retrieving the HTTP server properties. | 138 // The interface for setting/retrieving the HTTP server properties. |
| 139 // Currently, this class manages servers': | 139 // Currently, this class manages servers': |
| 140 // * SPDY support (based on NPN results) | 140 // * SPDY support (based on NPN results) |
| 141 // * Alternate-Protocol support | 141 // * Alternate-Protocol support |
| 142 // * Spdy Settings (like CWND ID field) | 142 // * Spdy Settings (like CWND ID field) |
| 143 class NET_EXPORT HttpServerProperties { | 143 class NET_EXPORT HttpServerProperties { |
| 144 public: | 144 public: |
| 145 struct NetworkStats { | 145 struct NetworkStats { |
| 146 base::TimeDelta srtt; | 146 base::TimeDelta srtt; |
| 147 uint64 bandwidth_estimate; | 147 QuicBandwidth bandwidth_estimate; |
| 148 }; | 148 }; |
| 149 | 149 |
| 150 HttpServerProperties() {} | 150 HttpServerProperties() {} |
| 151 virtual ~HttpServerProperties() {} | 151 virtual ~HttpServerProperties() {} |
| 152 | 152 |
| 153 // Gets a weak pointer for this object. | 153 // Gets a weak pointer for this object. |
| 154 virtual base::WeakPtr<HttpServerProperties> GetWeakPtr() = 0; | 154 virtual base::WeakPtr<HttpServerProperties> GetWeakPtr() = 0; |
| 155 | 155 |
| 156 // Deletes all data. | 156 // Deletes all data. |
| 157 virtual void Clear() = 0; | 157 virtual void Clear() = 0; |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 virtual const NetworkStats* GetServerNetworkStats( | 239 virtual const NetworkStats* GetServerNetworkStats( |
| 240 const HostPortPair& host_port_pair) const = 0; | 240 const HostPortPair& host_port_pair) const = 0; |
| 241 | 241 |
| 242 private: | 242 private: |
| 243 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties); | 243 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties); |
| 244 }; | 244 }; |
| 245 | 245 |
| 246 } // namespace net | 246 } // namespace net |
| 247 | 247 |
| 248 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_ | 248 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_ |
| OLD | NEW |