| 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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 typedef base::MRUCache<url::SchemeHostPort, AlternativeServiceInfoVector> | 203 typedef base::MRUCache<url::SchemeHostPort, AlternativeServiceInfoVector> |
| 204 AlternativeServiceMap; | 204 AlternativeServiceMap; |
| 205 // Pairs of broken alternative services and when their brokenness expires. |
| 206 typedef std::list<std::pair<AlternativeService, base::TimeTicks>> |
| 207 BrokenAlternativeServiceList; |
| 205 // Map to the number of times each alternative service has been marked broken. | 208 // Map to the number of times each alternative service has been marked broken. |
| 206 typedef base::MRUCache<AlternativeService, int> | 209 typedef base::MRUCache<AlternativeService, int> |
| 207 RecentlyBrokenAlternativeServices; | 210 RecentlyBrokenAlternativeServices; |
| 208 typedef base::MRUCache<url::SchemeHostPort, ServerNetworkStats> | 211 typedef base::MRUCache<url::SchemeHostPort, ServerNetworkStats> |
| 209 ServerNetworkStatsMap; | 212 ServerNetworkStatsMap; |
| 210 typedef base::MRUCache<QuicServerId, std::string> QuicServerInfoMap; | 213 typedef base::MRUCache<QuicServerId, std::string> QuicServerInfoMap; |
| 211 | 214 |
| 212 // Persist 5 QUIC Servers. This is mainly used by cronet. | 215 // Persist 5 QUIC Servers. This is mainly used by cronet. |
| 213 const int kMaxQuicServersToPersist = 5; | 216 const int kMaxQuicServersToPersist = 5; |
| 214 | 217 |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 // Returns whether HttpServerProperties is initialized. | 361 // Returns whether HttpServerProperties is initialized. |
| 359 virtual bool IsInitialized() const = 0; | 362 virtual bool IsInitialized() const = 0; |
| 360 | 363 |
| 361 private: | 364 private: |
| 362 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties); | 365 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties); |
| 363 }; | 366 }; |
| 364 | 367 |
| 365 } // namespace net | 368 } // namespace net |
| 366 | 369 |
| 367 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_ | 370 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_ |
| OLD | NEW |