| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 bool operator!=(const ServerNetworkStats& other) const { | 193 bool operator!=(const ServerNetworkStats& other) const { |
| 194 return !this->operator==(other); | 194 return !this->operator==(other); |
| 195 } | 195 } |
| 196 | 196 |
| 197 base::TimeDelta srtt; | 197 base::TimeDelta srtt; |
| 198 QuicBandwidth bandwidth_estimate; | 198 QuicBandwidth bandwidth_estimate; |
| 199 }; | 199 }; |
| 200 | 200 |
| 201 typedef std::vector<AlternativeService> AlternativeServiceVector; | 201 typedef std::vector<AlternativeService> AlternativeServiceVector; |
| 202 typedef std::vector<AlternativeServiceInfo> AlternativeServiceInfoVector; | 202 typedef std::vector<AlternativeServiceInfo> AlternativeServiceInfoVector; |
| 203 // Flattened representation of servers (scheme, host, port) that either support |
| 204 // or not support SPDY protocol. |
| 205 typedef base::MRUCache<std::string, bool> SpdyServersMap; |
| 203 typedef base::MRUCache<url::SchemeHostPort, AlternativeServiceInfoVector> | 206 typedef base::MRUCache<url::SchemeHostPort, AlternativeServiceInfoVector> |
| 204 AlternativeServiceMap; | 207 AlternativeServiceMap; |
| 205 // Pairs of broken alternative services and when their brokenness expires. | 208 // Pairs of broken alternative services and when their brokenness expires. |
| 206 typedef std::list<std::pair<AlternativeService, base::TimeTicks>> | 209 typedef std::list<std::pair<AlternativeService, base::TimeTicks>> |
| 207 BrokenAlternativeServiceList; | 210 BrokenAlternativeServiceList; |
| 208 // Map to the number of times each alternative service has been marked broken. | 211 // Map to the number of times each alternative service has been marked broken. |
| 209 typedef base::MRUCache<AlternativeService, int> | 212 typedef base::MRUCache<AlternativeService, int> |
| 210 RecentlyBrokenAlternativeServices; | 213 RecentlyBrokenAlternativeServices; |
| 211 typedef base::MRUCache<url::SchemeHostPort, ServerNetworkStats> | 214 typedef base::MRUCache<url::SchemeHostPort, ServerNetworkStats> |
| 212 ServerNetworkStatsMap; | 215 ServerNetworkStatsMap; |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 // Returns whether HttpServerProperties is initialized. | 364 // Returns whether HttpServerProperties is initialized. |
| 362 virtual bool IsInitialized() const = 0; | 365 virtual bool IsInitialized() const = 0; |
| 363 | 366 |
| 364 private: | 367 private: |
| 365 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties); | 368 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties); |
| 366 }; | 369 }; |
| 367 | 370 |
| 368 } // namespace net | 371 } // namespace net |
| 369 | 372 |
| 370 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_ | 373 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_ |
| OLD | NEW |