| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 // Called by a session when it becomes idle. | 246 // Called by a session when it becomes idle. |
| 247 void OnIdleSession(QuicChromiumClientSession* session); | 247 void OnIdleSession(QuicChromiumClientSession* session); |
| 248 | 248 |
| 249 // Called by a session when it is going away and no more streams should be | 249 // Called by a session when it is going away and no more streams should be |
| 250 // created on it. | 250 // created on it. |
| 251 void OnSessionGoingAway(QuicChromiumClientSession* session); | 251 void OnSessionGoingAway(QuicChromiumClientSession* session); |
| 252 | 252 |
| 253 // Called by a session after it shuts down. | 253 // Called by a session after it shuts down. |
| 254 void OnSessionClosed(QuicChromiumClientSession* session); | 254 void OnSessionClosed(QuicChromiumClientSession* session); |
| 255 | 255 |
| 256 // Called by a session whose connection has timed out. | |
| 257 void OnSessionConnectTimeout(QuicChromiumClientSession* session); | |
| 258 | |
| 259 // Cancels a pending request. | 256 // Cancels a pending request. |
| 260 void CancelRequest(QuicStreamRequest* request); | 257 void CancelRequest(QuicStreamRequest* request); |
| 261 | 258 |
| 262 // Closes all current sessions with specified network and QUIC error codes. | 259 // Closes all current sessions with specified network and QUIC error codes. |
| 263 void CloseAllSessions(int error, QuicErrorCode quic_error); | 260 void CloseAllSessions(int error, QuicErrorCode quic_error); |
| 264 | 261 |
| 265 std::unique_ptr<base::Value> QuicStreamFactoryInfoToValue() const; | 262 std::unique_ptr<base::Value> QuicStreamFactoryInfoToValue() const; |
| 266 | 263 |
| 267 // Delete cached state objects in |crypto_config_|. If |origin_filter| is not | 264 // Delete cached state objects in |crypto_config_|. If |origin_filter| is not |
| 268 // null, only objects on matching origins will be deleted. | 265 // null, only objects on matching origins will be deleted. |
| (...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 650 const scoped_refptr<SSLConfigService> ssl_config_service_; | 647 const scoped_refptr<SSLConfigService> ssl_config_service_; |
| 651 | 648 |
| 652 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; | 649 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; |
| 653 | 650 |
| 654 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); | 651 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); |
| 655 }; | 652 }; |
| 656 | 653 |
| 657 } // namespace net | 654 } // namespace net |
| 658 | 655 |
| 659 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ | 656 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ |
| OLD | NEW |