Chromium Code Reviews| 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. | 5 // A client specific QuicSession subclass. |
| 6 | 6 |
| 7 #ifndef NET_TOOLS_QUIC_QUIC_SIMPLE_CLIENT_SESSION_H_ | 7 #ifndef NET_TOOLS_QUIC_QUIC_SIMPLE_CLIENT_SESSION_H_ |
| 8 #define NET_TOOLS_QUIC_QUIC_SIMPLE_CLIENT_SESSION_H_ | 8 #define NET_TOOLS_QUIC_QUIC_SIMPLE_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/base/net_export.h" | |
| 13 #include "net/quic/quic_client_session_base.h" | 14 #include "net/quic/quic_client_session_base.h" |
| 14 #include "net/quic/quic_crypto_client_stream.h" | 15 #include "net/quic/quic_crypto_client_stream.h" |
| 15 #include "net/quic/quic_protocol.h" | 16 #include "net/quic/quic_protocol.h" |
| 16 #include "net/tools/quic/quic_simple_client_stream.h" | 17 #include "net/tools/quic/quic_simple_client_stream.h" |
| 17 | 18 |
| 18 namespace net { | 19 namespace net { |
| 19 | 20 |
| 20 class QuicConnection; | 21 class QuicConnection; |
| 21 class QuicServerId; | 22 class QuicServerId; |
| 22 class ReliableQuicStream; | 23 class ReliableQuicStream; |
| 23 | 24 |
| 24 namespace tools { | 25 namespace tools { |
| 25 | 26 |
| 26 class QuicSimpleClientSession : public QuicClientSessionBase { | 27 class QuicSimpleClientSession |
| 28 : public QuicClientSessionBase { | |
|
Nico
2015/03/21 03:59:53
?
Ryan Hamilton
2015/03/21 04:11:40
*facepalm* Same thing. Fixed.
| |
| 27 public: | 29 public: |
| 28 QuicSimpleClientSession(const QuicConfig& config, QuicConnection* connection); | 30 QuicSimpleClientSession(const QuicConfig& config, QuicConnection* connection); |
| 29 ~QuicSimpleClientSession() override; | 31 ~QuicSimpleClientSession() override; |
| 30 | 32 |
| 31 void InitializeSession(const QuicServerId& server_id, | 33 void InitializeSession(const QuicServerId& server_id, |
| 32 QuicCryptoClientConfig* config); | 34 QuicCryptoClientConfig* config); |
| 33 | 35 |
| 34 // QuicSession methods: | 36 // QuicSession methods: |
| 35 QuicSimpleClientStream* CreateOutgoingDataStream() override; | 37 QuicSimpleClientStream* CreateOutgoingDataStream() override; |
| 36 QuicCryptoClientStream* GetCryptoStream() override; | 38 QuicCryptoClientStream* GetCryptoStream() override; |
| (...skipping 26 matching lines...) Expand all Loading... | |
| 63 // the creation of streams regardless of the high chance they will fail. | 65 // the creation of streams regardless of the high chance they will fail. |
| 64 bool respect_goaway_; | 66 bool respect_goaway_; |
| 65 | 67 |
| 66 DISALLOW_COPY_AND_ASSIGN(QuicSimpleClientSession); | 68 DISALLOW_COPY_AND_ASSIGN(QuicSimpleClientSession); |
| 67 }; | 69 }; |
| 68 | 70 |
| 69 } // namespace tools | 71 } // namespace tools |
| 70 } // namespace net | 72 } // namespace net |
| 71 | 73 |
| 72 #endif // NET_TOOLS_QUIC_QUIC_SIMPLE_CLIENT_SESSION_H_ | 74 #endif // NET_TOOLS_QUIC_QUIC_SIMPLE_CLIENT_SESSION_H_ |
| OLD | NEW |