| 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_QUIC_QUIC_STREAM_FACTORY_H_ | 5 #ifndef NET_QUIC_QUIC_STREAM_FACTORY_H_ |
| 6 #define NET_QUIC_QUIC_STREAM_FACTORY_H_ | 6 #define NET_QUIC_QUIC_STREAM_FACTORY_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 QuicClientSession** session); | 241 QuicClientSession** session); |
| 242 void ActivateSession(const QuicServerId& key, | 242 void ActivateSession(const QuicServerId& key, |
| 243 QuicClientSession* session); | 243 QuicClientSession* session); |
| 244 | 244 |
| 245 // Returns |srtt| in micro seconds from ServerNetworkStats. Returns 0 if there | 245 // Returns |srtt| in micro seconds from ServerNetworkStats. Returns 0 if there |
| 246 // is no |http_server_properties_| or if |http_server_properties_| doesn't | 246 // is no |http_server_properties_| or if |http_server_properties_| doesn't |
| 247 // have ServerNetworkStats for the given |server_id|. | 247 // have ServerNetworkStats for the given |server_id|. |
| 248 int64 GetServerNetworkStatsSmoothedRttInMicroseconds( | 248 int64 GetServerNetworkStatsSmoothedRttInMicroseconds( |
| 249 const QuicServerId& server_id) const; | 249 const QuicServerId& server_id) const; |
| 250 | 250 |
| 251 // Helped methods. | 251 // Helper methods. |
| 252 bool WasAlternateProtocolRecentlyBroken(const QuicServerId& server_id) const; | 252 bool WasQuicRecentlyBroken(const QuicServerId& server_id) const; |
| 253 bool CryptoConfigCacheIsEmpty(const QuicServerId& server_id); | 253 bool CryptoConfigCacheIsEmpty(const QuicServerId& server_id); |
| 254 | 254 |
| 255 // Initializes the cached state associated with |server_id| in | 255 // Initializes the cached state associated with |server_id| in |
| 256 // |crypto_config_| with the information in |server_info|. | 256 // |crypto_config_| with the information in |server_info|. |
| 257 void InitializeCachedStateInCryptoConfig( | 257 void InitializeCachedStateInCryptoConfig( |
| 258 const QuicServerId& server_id, | 258 const QuicServerId& server_id, |
| 259 const scoped_ptr<QuicServerInfo>& server_info); | 259 const scoped_ptr<QuicServerInfo>& server_info); |
| 260 | 260 |
| 261 void ProcessGoingAwaySession(QuicClientSession* session, | 261 void ProcessGoingAwaySession(QuicClientSession* session, |
| 262 const QuicServerId& server_id, | 262 const QuicServerId& server_id, |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 348 base::TaskRunner* task_runner_; | 348 base::TaskRunner* task_runner_; |
| 349 | 349 |
| 350 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; | 350 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; |
| 351 | 351 |
| 352 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); | 352 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); |
| 353 }; | 353 }; |
| 354 | 354 |
| 355 } // namespace net | 355 } // namespace net |
| 356 | 356 |
| 357 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ | 357 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ |
| OLD | NEW |