| 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 // Called by a session when it becomes idle. | 118 // Called by a session when it becomes idle. |
| 119 void OnIdleSession(QuicClientSession* session); | 119 void OnIdleSession(QuicClientSession* session); |
| 120 | 120 |
| 121 // Called by a session when it is going away and no more streams should be | 121 // Called by a session when it is going away and no more streams should be |
| 122 // created on it. | 122 // created on it. |
| 123 void OnSessionGoingAway(QuicClientSession* session); | 123 void OnSessionGoingAway(QuicClientSession* session); |
| 124 | 124 |
| 125 // Called by a session after it shuts down. | 125 // Called by a session after it shuts down. |
| 126 void OnSessionClosed(QuicClientSession* session); | 126 void OnSessionClosed(QuicClientSession* session); |
| 127 | 127 |
| 128 // Called by a session whose connection has timed out. |
| 129 void OnSessionConnectTimeout(QuicClientSession* session); |
| 130 |
| 128 // Cancels a pending request. | 131 // Cancels a pending request. |
| 129 void CancelRequest(QuicStreamRequest* request); | 132 void CancelRequest(QuicStreamRequest* request); |
| 130 | 133 |
| 131 // Closes all current sessions. | 134 // Closes all current sessions. |
| 132 void CloseAllSessions(int error); | 135 void CloseAllSessions(int error); |
| 133 | 136 |
| 134 base::Value* QuicStreamFactoryInfoToValue() const; | 137 base::Value* QuicStreamFactoryInfoToValue() const; |
| 135 | 138 |
| 136 // Delete all cached state objects in |crypto_config_|. | 139 // Delete all cached state objects in |crypto_config_|. |
| 137 void ClearCachedStatesInCryptoConfig(); | 140 void ClearCachedStatesInCryptoConfig(); |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 uint64 port_seed_; | 285 uint64 port_seed_; |
| 283 | 286 |
| 284 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; | 287 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; |
| 285 | 288 |
| 286 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); | 289 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); |
| 287 }; | 290 }; |
| 288 | 291 |
| 289 } // namespace net | 292 } // namespace net |
| 290 | 293 |
| 291 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ | 294 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ |
| OLD | NEW |