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

Side by Side Diff: net/tools/quic/quic_client_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/tools/quic/quic_client_base.h ('k') | net/tools/quic/quic_dispatcher_test.cc » ('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) 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. 5 // A client specific QuicSession subclass.
6 6
7 #ifndef NET_TOOLS_QUIC_QUIC_CLIENT_SESSION_H_ 7 #ifndef NET_TOOLS_QUIC_QUIC_CLIENT_SESSION_H_
8 #define NET_TOOLS_QUIC_QUIC_CLIENT_SESSION_H_ 8 #define NET_TOOLS_QUIC_QUIC_CLIENT_SESSION_H_
9 9
10 #include <memory> 10 #include <memory>
11 #include <string> 11 #include <string>
12 12
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "net/quic/core/quic_client_session_base.h" 14 #include "net/quic/core/quic_client_session_base.h"
15 #include "net/quic/core/quic_crypto_client_stream.h" 15 #include "net/quic/core/quic_crypto_client_stream.h"
16 #include "net/quic/core/quic_protocol.h" 16 #include "net/quic/core/quic_protocol.h"
17 #include "net/tools/quic/quic_spdy_client_stream.h" 17 #include "net/tools/quic/quic_spdy_client_stream.h"
18 18
19 namespace net { 19 namespace net {
20 20
21 class QuicConnection; 21 class QuicConnection;
22 class QuicServerId; 22 class QuicServerId;
23 class ReliableQuicStream; 23 class ReliableQuicStream;
24 24
25 class QuicClientSession : public QuicClientSessionBase { 25 class QuicClientSession : public QuicClientSessionBase {
26 public: 26 public:
27 // Caller retains ownership of |promised_by_url|. 27 // Takes ownership of |connection|. Caller retains ownership of
28 // |promised_by_url|.
28 QuicClientSession(const QuicConfig& config, 29 QuicClientSession(const QuicConfig& config,
29 QuicConnection* connection, 30 QuicConnection* connection,
30 const QuicServerId& server_id, 31 const QuicServerId& server_id,
31 QuicCryptoClientConfig* crypto_config, 32 QuicCryptoClientConfig* crypto_config,
32 QuicClientPushPromiseIndex* push_promise_index); 33 QuicClientPushPromiseIndex* push_promise_index);
33 ~QuicClientSession() override; 34 ~QuicClientSession() override;
34 // Set up the QuicClientSession. Must be called prior to use. 35 // Set up the QuicClientSession. Must be called prior to use.
35 void Initialize() override; 36 void Initialize() override;
36 37
37 // QuicSession methods: 38 // QuicSession methods:
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 // If this is set to false, the client will ignore server GOAWAYs and allow 90 // If this is set to false, the client will ignore server GOAWAYs and allow
90 // the creation of streams regardless of the high chance they will fail. 91 // the creation of streams regardless of the high chance they will fail.
91 bool respect_goaway_; 92 bool respect_goaway_;
92 93
93 DISALLOW_COPY_AND_ASSIGN(QuicClientSession); 94 DISALLOW_COPY_AND_ASSIGN(QuicClientSession);
94 }; 95 };
95 96
96 } // namespace net 97 } // namespace net
97 98
98 #endif // NET_TOOLS_QUIC_QUIC_CLIENT_SESSION_H_ 99 #endif // NET_TOOLS_QUIC_QUIC_CLIENT_SESSION_H_
OLDNEW
« no previous file with comments | « net/tools/quic/quic_client_base.h ('k') | net/tools/quic/quic_dispatcher_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698