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

Unified Diff: net/quic/quic_client_session.h

Issue 481103003: QUIC - Construct crypto_stream_ in QuicClientSession::InitializeSession (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase TOT Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/quic/quic_client_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_client_session.h
diff --git a/net/quic/quic_client_session.h b/net/quic/quic_client_session.h
index 41dff649f451c4ff8cc29291553906e980152924..7a4ef790141812f8d1d6b9087e5fbbf988f54b30 100644
--- a/net/quic/quic_client_session.h
+++ b/net/quic/quic_client_session.h
@@ -87,22 +87,25 @@ class NET_EXPORT_PRIVATE QuicClientSession : public QuicClientSessionBase {
DISALLOW_COPY_AND_ASSIGN(StreamRequest);
};
- // Constructs a new session connected to |server_id| which will own
- // |connection|, but not |stream_factory|, which must outlive this session.
+ // Constructs a new session which will own |connection|, but not
+ // |stream_factory|, which must outlive this session.
// TODO(rch): decouple the factory from the session via a Delegate interface.
QuicClientSession(QuicConnection* connection,
scoped_ptr<DatagramClientSocket> socket,
QuicStreamFactory* stream_factory,
- QuicCryptoClientStreamFactory* crypto_client_stream_factory,
TransportSecurityState* transport_security_state,
scoped_ptr<QuicServerInfo> server_info,
- const QuicServerId& server_id,
const QuicConfig& config,
- QuicCryptoClientConfig* crypto_config,
base::TaskRunner* task_runner,
NetLog* net_log);
virtual ~QuicClientSession();
+ // Initialize session's connection to |server_id|.
+ void InitializeSession(
+ const QuicServerId& server_id,
+ QuicCryptoClientConfig* config,
+ QuicCryptoClientStreamFactory* crypto_client_stream_factory);
+
void AddObserver(Observer* observer);
void RemoveObserver(Observer* observer);
@@ -219,7 +222,7 @@ class NET_EXPORT_PRIVATE QuicClientSession : public QuicClientSessionBase {
void OnConnectTimeout();
- const HostPortPair server_host_port_;
+ scoped_ptr<HostPortPair> server_host_port_;
wtc 2014/08/26 18:35:42 It seems that this doesn't need to be a pointer. W
ramant (doing other things) 2014/08/27 22:06:46 Fixed it in CL: https://codereview.chromium.org/51
bool require_confirmation_;
scoped_ptr<QuicCryptoClientStream> crypto_stream_;
QuicStreamFactory* stream_factory_;
« no previous file with comments | « no previous file | net/quic/quic_client_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698