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

Unified Diff: net/quic/quic_client_session.h

Issue 11364068: Add a QuicHttpStream class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move GetPeerAddress from QuicReliableClientStream to ReliableQuicStream Created 8 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 side-by-side diff with in-line comments
Download patch
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);
};

Powered by Google App Engine
This is Rietveld 408576698