Chromium Code Reviews| Index: net/quic/quic_client_session.h |
| diff --git a/net/quic/quic_client_session.h b/net/quic/quic_client_session.h |
| index 08e6c65ca82aa543edcbb29d1ecfc5afc1de3c75..cfc743edadd3864258c753640675a7b913500277 100644 |
| --- a/net/quic/quic_client_session.h |
| +++ b/net/quic/quic_client_session.h |
| @@ -7,6 +7,8 @@ |
| #ifndef NET_QUIC_QUIC_CLIENT_SESSION_H_ |
| #define NET_QUIC_QUIC_CLIENT_SESSION_H_ |
| +#include "base/hash_tables.h" |
| +#include "net/base/completion_callback.h" |
| #include "net/quic/quic_crypto_client_stream.h" |
| #include "net/quic/quic_reliable_client_stream.h" |
| #include "net/quic/quic_session.h" |
| @@ -22,9 +24,11 @@ class NET_EXPORT_PRIVATE QuicClientSession : public QuicSession { |
| // QuicSession methods: |
| virtual QuicReliableClientStream* CreateOutgoingReliableStream() OVERRIDE; |
| virtual QuicCryptoClientStream* GetCryptoStream() OVERRIDE; |
| + virtual void CloseStream(QuicStreamId stream_id) OVERRIDE; |
| + virtual void OnCryptoHandshakeComplete(QuicErrorCode error) OVERRIDE; |
| // Perform a crypto handshake with the server. |
| - void CryptoConnect(); |
| + int CryptoConnect(const CompletionCallback& callback); |
| protected: |
| // QuicSession methods: |
| @@ -32,7 +36,11 @@ class NET_EXPORT_PRIVATE QuicClientSession : public QuicSession { |
| QuicStreamId id) OVERRIDE; |
| private: |
| + typedef base::hash_map<QuicStreamId, ReliableQuicStream*> StreamMap; |
| QuicCryptoClientStream crypto_stream_; |
|
willchan no longer on Chromium
2012/11/23 03:17:43
Is this a magic stream?
Ryan Hamilton
2012/11/23 04:19:53
Yes, stream 1 is the "crypto" stream. We run a sp
|
| + StreamMap streams_; |
| + |
| + CompletionCallback callback_; |
| DISALLOW_COPY_AND_ASSIGN(QuicClientSession); |
| }; |