Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: net/quic/core/quic_spdy_session.h

Issue 2226643004: QuicSession no longer directly owns its QuicConnection. Not flag protected. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@129226757
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/quic/core/quic_session_test.cc ('k') | net/quic/test_tools/quic_test_utils.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « net/quic/core/quic_session_test.cc ('k') | net/quic/test_tools/quic_test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698