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_CHROMIUM_CLIENT_SESSION_H_ | 10 #ifndef NET_QUIC_QUIC_CHROMIUM_CLIENT_SESSION_H_ |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 // will be added to the stream requets queue and will | 137 // will be added to the stream requets queue and will |
138 // be completed asynchronously. | 138 // be completed asynchronously. |
139 // TODO(rch): remove |stream| from this and use setter on |request| | 139 // TODO(rch): remove |stream| from this and use setter on |request| |
140 // and fix in spdy too. | 140 // and fix in spdy too. |
141 int TryCreateStream(StreamRequest* request, | 141 int TryCreateStream(StreamRequest* request, |
142 QuicReliableClientStream** stream); | 142 QuicReliableClientStream** stream); |
143 | 143 |
144 // Cancels the pending stream creation request. | 144 // Cancels the pending stream creation request. |
145 void CancelRequest(StreamRequest* request); | 145 void CancelRequest(StreamRequest* request); |
146 | 146 |
| 147 // QuicSpdySession methods: |
| 148 void OnHeadersHeadOfLineBlocking(QuicTime::Delta delta) override; |
| 149 |
147 // QuicSession methods: | 150 // QuicSession methods: |
148 void OnStreamFrame(const QuicStreamFrame& frame) override; | 151 void OnStreamFrame(const QuicStreamFrame& frame) override; |
149 QuicReliableClientStream* CreateOutgoingDynamicStream() override; | 152 QuicReliableClientStream* CreateOutgoingDynamicStream() override; |
150 QuicCryptoClientStream* GetCryptoStream() override; | 153 QuicCryptoClientStream* GetCryptoStream() override; |
151 void CloseStream(QuicStreamId stream_id) override; | 154 void CloseStream(QuicStreamId stream_id) override; |
152 void SendRstStream(QuicStreamId id, | 155 void SendRstStream(QuicStreamId id, |
153 QuicRstStreamErrorCode error, | 156 QuicRstStreamErrorCode error, |
154 QuicStreamOffset bytes_written) override; | 157 QuicStreamOffset bytes_written) override; |
155 void OnCryptoHandshakeEvent(CryptoHandshakeEvent event) override; | 158 void OnCryptoHandshakeEvent(CryptoHandshakeEvent event) override; |
156 void OnCryptoHandshakeMessageSent( | 159 void OnCryptoHandshakeMessageSent( |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 bool going_away_; | 290 bool going_away_; |
288 QuicDisabledReason disabled_reason_; | 291 QuicDisabledReason disabled_reason_; |
289 base::WeakPtrFactory<QuicChromiumClientSession> weak_factory_; | 292 base::WeakPtrFactory<QuicChromiumClientSession> weak_factory_; |
290 | 293 |
291 DISALLOW_COPY_AND_ASSIGN(QuicChromiumClientSession); | 294 DISALLOW_COPY_AND_ASSIGN(QuicChromiumClientSession); |
292 }; | 295 }; |
293 | 296 |
294 } // namespace net | 297 } // namespace net |
295 | 298 |
296 #endif // NET_QUIC_QUIC_CHROMIUM_CLIENT_SESSION_H_ | 299 #endif // NET_QUIC_QUIC_CHROMIUM_CLIENT_SESSION_H_ |
OLD | NEW |