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

Side by Side Diff: net/tools/quic/quic_client_session.h

Issue 734063004: Update from https://crrev.com/304418 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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.cc ('k') | net/tools/quic/quic_client_session.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 <string> 10 #include <string>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "net/quic/quic_client_session_base.h" 13 #include "net/quic/quic_client_session_base.h"
14 #include "net/quic/quic_crypto_client_stream.h" 14 #include "net/quic/quic_crypto_client_stream.h"
15 #include "net/quic/quic_protocol.h" 15 #include "net/quic/quic_protocol.h"
16 #include "net/tools/quic/quic_spdy_client_stream.h" 16 #include "net/tools/quic/quic_spdy_client_stream.h"
17 17
18 namespace net { 18 namespace net {
19 19
20 class QuicConnection; 20 class QuicConnection;
21 class QuicServerId; 21 class QuicServerId;
22 class ReliableQuicStream; 22 class ReliableQuicStream;
23 23
24 namespace tools { 24 namespace tools {
25 25
26 class QuicClientSession : public QuicClientSessionBase { 26 class QuicClientSession : public QuicClientSessionBase {
27 public: 27 public:
28 QuicClientSession(const QuicConfig& config, 28 QuicClientSession(const QuicConfig& config, QuicConnection* connection);
29 QuicConnection* connection,
30 bool is_secure);
31 ~QuicClientSession() override; 29 ~QuicClientSession() override;
32 30
33 void InitializeSession(const QuicServerId& server_id, 31 void InitializeSession(const QuicServerId& server_id,
34 QuicCryptoClientConfig* config); 32 QuicCryptoClientConfig* config);
35 33
36 // QuicSession methods: 34 // QuicSession methods:
37 QuicSpdyClientStream* CreateOutgoingDataStream() override; 35 QuicSpdyClientStream* CreateOutgoingDataStream() override;
38 QuicCryptoClientStream* GetCryptoStream() override; 36 QuicCryptoClientStream* GetCryptoStream() override;
39 37
40 // QuicClientSessionBase methods: 38 // QuicClientSessionBase methods:
(...skipping 17 matching lines...) Expand all
58 private: 56 private:
59 scoped_ptr<QuicCryptoClientStream> crypto_stream_; 57 scoped_ptr<QuicCryptoClientStream> crypto_stream_;
60 58
61 DISALLOW_COPY_AND_ASSIGN(QuicClientSession); 59 DISALLOW_COPY_AND_ASSIGN(QuicClientSession);
62 }; 60 };
63 61
64 } // namespace tools 62 } // namespace tools
65 } // namespace net 63 } // namespace net
66 64
67 #endif // NET_TOOLS_QUIC_QUIC_CLIENT_SESSION_H_ 65 #endif // NET_TOOLS_QUIC_QUIC_CLIENT_SESSION_H_
OLDNEW
« no previous file with comments | « net/tools/quic/quic_client.cc ('k') | net/tools/quic/quic_client_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698