| 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 // A client specific QuicSession subclass. This class owns the underlying | 5 // A client specific QuicSession subclass. This class owns the underlying |
| 6 // QuicConnection and QuicConnectionHelper objects. The connection stores | 6 // QuicConnection and QuicConnectionHelper objects. The connection stores |
| 7 // a non-owning pointer to the helper so this session needs to ensure that | 7 // a non-owning pointer to the helper so this session needs to ensure that |
| 8 // the helper outlives the connection. | 8 // the helper outlives the connection. |
| 9 | 9 |
| 10 #ifndef NET_QUIC_QUIC_CLIENT_SESSION_H_ | 10 #ifndef NET_QUIC_QUIC_CLIENT_SESSION_H_ |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 // be completed asynchronously. | 130 // be completed asynchronously. |
| 131 // TODO(rch): remove |stream| from this and use setter on |request| | 131 // TODO(rch): remove |stream| from this and use setter on |request| |
| 132 // and fix in spdy too. | 132 // and fix in spdy too. |
| 133 int TryCreateStream(StreamRequest* request, | 133 int TryCreateStream(StreamRequest* request, |
| 134 QuicReliableClientStream** stream); | 134 QuicReliableClientStream** stream); |
| 135 | 135 |
| 136 // Cancels the pending stream creation request. | 136 // Cancels the pending stream creation request. |
| 137 void CancelRequest(StreamRequest* request); | 137 void CancelRequest(StreamRequest* request); |
| 138 | 138 |
| 139 // QuicSession methods: | 139 // QuicSession methods: |
| 140 void OnStreamFrames(const std::vector<QuicStreamFrame>& frames) override; | 140 void OnStreamFrame(const QuicStreamFrame& frame) override; |
| 141 QuicReliableClientStream* CreateOutgoingDynamicStream() override; | 141 QuicReliableClientStream* CreateOutgoingDynamicStream() override; |
| 142 QuicCryptoClientStream* GetCryptoStream() override; | 142 QuicCryptoClientStream* GetCryptoStream() override; |
| 143 void CloseStream(QuicStreamId stream_id) override; | 143 void CloseStream(QuicStreamId stream_id) override; |
| 144 void SendRstStream(QuicStreamId id, | 144 void SendRstStream(QuicStreamId id, |
| 145 QuicRstStreamErrorCode error, | 145 QuicRstStreamErrorCode error, |
| 146 QuicStreamOffset bytes_written) override; | 146 QuicStreamOffset bytes_written) override; |
| 147 void OnCryptoHandshakeEvent(CryptoHandshakeEvent event) override; | 147 void OnCryptoHandshakeEvent(CryptoHandshakeEvent event) override; |
| 148 void OnCryptoHandshakeMessageSent( | 148 void OnCryptoHandshakeMessageSent( |
| 149 const CryptoHandshakeMessage& message) override; | 149 const CryptoHandshakeMessage& message) override; |
| 150 void OnCryptoHandshakeMessageReceived( | 150 void OnCryptoHandshakeMessageReceived( |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 bool going_away_; | 277 bool going_away_; |
| 278 QuicDisabledReason disabled_reason_; | 278 QuicDisabledReason disabled_reason_; |
| 279 base::WeakPtrFactory<QuicClientSession> weak_factory_; | 279 base::WeakPtrFactory<QuicClientSession> weak_factory_; |
| 280 | 280 |
| 281 DISALLOW_COPY_AND_ASSIGN(QuicClientSession); | 281 DISALLOW_COPY_AND_ASSIGN(QuicClientSession); |
| 282 }; | 282 }; |
| 283 | 283 |
| 284 } // namespace net | 284 } // namespace net |
| 285 | 285 |
| 286 #endif // NET_QUIC_QUIC_CLIENT_SESSION_H_ | 286 #endif // NET_QUIC_QUIC_CLIENT_SESSION_H_ |
| OLD | NEW |