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

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

Issue 192583004: QUIC - use QuicSessionKey tuple (host, port, is_https) instead of server_hostname (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use : instead of / as host, port separator Created 6 years, 9 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 unified diff | Download patch | Annotate | Revision Log
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 #include "net/tools/quic/quic_client_session.h" 5 #include "net/tools/quic/quic_client_session.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "net/quic/crypto/crypto_protocol.h" 8 #include "net/quic/crypto/crypto_protocol.h"
9 #include "net/tools/quic/quic_spdy_client_stream.h" 9 #include "net/tools/quic/quic_spdy_client_stream.h"
10 10
11 using std::string; 11 using std::string;
12 12
13 namespace net { 13 namespace net {
14 namespace tools { 14 namespace tools {
15 15
16 QuicClientSession::QuicClientSession( 16 QuicClientSession::QuicClientSession(
17 const string& server_hostname, 17 const string& server_hostname,
18 const QuicConfig& config, 18 const QuicConfig& config,
19 QuicConnection* connection, 19 QuicConnection* connection,
20 QuicCryptoClientConfig* crypto_config) 20 QuicCryptoClientConfig* crypto_config)
21 : QuicSession(connection, config), 21 : QuicSession(connection, config),
22 crypto_stream_(server_hostname, this, crypto_config) { 22 // Defaulting server_port to 9999.
ramant (doing other things) 2014/03/10 20:31:46 We are not passing port for QuiClientSession and t
ramant (doing other things) 2014/03/11 00:48:50 Using the port from connection.
23 crypto_stream_(server_hostname, 9999, this, crypto_config) {
23 } 24 }
24 25
25 QuicClientSession::~QuicClientSession() { 26 QuicClientSession::~QuicClientSession() {
26 } 27 }
27 28
28 QuicSpdyClientStream* QuicClientSession::CreateOutgoingDataStream() { 29 QuicSpdyClientStream* QuicClientSession::CreateOutgoingDataStream() {
29 if (!crypto_stream_.encryption_established()) { 30 if (!crypto_stream_.encryption_established()) {
30 DVLOG(1) << "Encryption not active so no outgoing stream created."; 31 DVLOG(1) << "Encryption not active so no outgoing stream created.";
31 return NULL; 32 return NULL;
32 } 33 }
(...skipping 26 matching lines...) Expand all
59 } 60 }
60 61
61 QuicDataStream* QuicClientSession::CreateIncomingDataStream( 62 QuicDataStream* QuicClientSession::CreateIncomingDataStream(
62 QuicStreamId id) { 63 QuicStreamId id) {
63 DLOG(ERROR) << "Server push not supported"; 64 DLOG(ERROR) << "Server push not supported";
64 return NULL; 65 return NULL;
65 } 66 }
66 67
67 } // namespace tools 68 } // namespace tools
68 } // namespace net 69 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698