OLD | NEW |
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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_SPDY_SESSION_H_ | 5 #ifndef NET_QUIC_QUIC_SPDY_SESSION_H_ |
6 #define NET_QUIC_QUIC_SPDY_SESSION_H_ | 6 #define NET_QUIC_QUIC_SPDY_SESSION_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 | 11 |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "net/quic/core/quic_header_list.h" | 13 #include "net/quic/core/quic_header_list.h" |
14 #include "net/quic/core/quic_headers_stream.h" | 14 #include "net/quic/core/quic_headers_stream.h" |
15 #include "net/quic/core/quic_session.h" | 15 #include "net/quic/core/quic_session.h" |
16 #include "net/quic/core/quic_spdy_stream.h" | 16 #include "net/quic/core/quic_spdy_stream.h" |
17 | 17 |
18 namespace net { | 18 namespace net { |
19 | 19 |
20 namespace test { | 20 namespace test { |
21 class QuicSpdySessionPeer; | 21 class QuicSpdySessionPeer; |
22 } // namespace test | 22 } // namespace test |
23 | 23 |
24 // A QUIC session with a headers stream. | 24 // A QUIC session with a headers stream. |
25 class NET_EXPORT_PRIVATE QuicSpdySession : public QuicSession { | 25 class NET_EXPORT_PRIVATE QuicSpdySession : public QuicSession { |
26 public: | 26 public: |
| 27 // Does not take ownership of |connection|. |
27 QuicSpdySession(QuicConnection* connection, const QuicConfig& config); | 28 QuicSpdySession(QuicConnection* connection, const QuicConfig& config); |
28 | 29 |
29 ~QuicSpdySession() override; | 30 ~QuicSpdySession() override; |
30 | 31 |
31 void Initialize() override; | 32 void Initialize() override; |
32 | 33 |
33 // Called by |headers_stream_| when headers have been received for a stream. | 34 // Called by |headers_stream_| when headers have been received for a stream. |
34 virtual void OnStreamHeaders(QuicStreamId stream_id, | 35 virtual void OnStreamHeaders(QuicStreamId stream_id, |
35 base::StringPiece headers_data); | 36 base::StringPiece headers_data); |
36 // Called by |headers_stream_| when headers with a priority have been | 37 // Called by |headers_stream_| when headers with a priority have been |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 // simulate forced HOL blocking between streams as happens in | 134 // simulate forced HOL blocking between streams as happens in |
134 // HTTP/2 over TCP. | 135 // HTTP/2 over TCP. |
135 bool force_hol_blocking_; | 136 bool force_hol_blocking_; |
136 | 137 |
137 DISALLOW_COPY_AND_ASSIGN(QuicSpdySession); | 138 DISALLOW_COPY_AND_ASSIGN(QuicSpdySession); |
138 }; | 139 }; |
139 | 140 |
140 } // namespace net | 141 } // namespace net |
141 | 142 |
142 #endif // NET_QUIC_QUIC_SPDY_SESSION_H_ | 143 #endif // NET_QUIC_QUIC_SPDY_SESSION_H_ |
OLD | NEW |