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

Side by Side Diff: net/quic/quic_client_session.h

Issue 944883003: QUIC - Cache the connection type and connection description. Make the (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix comments to Patch Set 5 Created 5 years, 10 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
« no previous file with comments | « net/quic/network_connection_unittest.cc ('k') | net/quic/quic_client_session.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // A client specific QuicSession subclass. This class owns the underlying 5 // A client specific QuicSession subclass. This class owns the underlying
6 // QuicConnection and QuicConnectionHelper objects. The connection stores 6 // QuicConnection and QuicConnectionHelper objects. The connection stores
7 // a non-owning pointer to the helper so this session needs to ensure that 7 // a non-owning pointer to the helper so this session needs to ensure that
8 // the helper outlives the connection. 8 // the helper outlives the connection.
9 9
10 #ifndef NET_QUIC_QUIC_CLIENT_SESSION_H_ 10 #ifndef NET_QUIC_QUIC_CLIENT_SESSION_H_
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 89
90 // Constructs a new session which will own |connection|, but not 90 // Constructs a new session which will own |connection|, but not
91 // |stream_factory|, which must outlive this session. 91 // |stream_factory|, which must outlive this session.
92 // TODO(rch): decouple the factory from the session via a Delegate interface. 92 // TODO(rch): decouple the factory from the session via a Delegate interface.
93 QuicClientSession(QuicConnection* connection, 93 QuicClientSession(QuicConnection* connection,
94 scoped_ptr<DatagramClientSocket> socket, 94 scoped_ptr<DatagramClientSocket> socket,
95 QuicStreamFactory* stream_factory, 95 QuicStreamFactory* stream_factory,
96 TransportSecurityState* transport_security_state, 96 TransportSecurityState* transport_security_state,
97 scoped_ptr<QuicServerInfo> server_info, 97 scoped_ptr<QuicServerInfo> server_info,
98 const QuicConfig& config, 98 const QuicConfig& config,
99 const char* const connection_description,
99 base::TaskRunner* task_runner, 100 base::TaskRunner* task_runner,
100 NetLog* net_log); 101 NetLog* net_log);
101 ~QuicClientSession() override; 102 ~QuicClientSession() override;
102 103
103 // Initialize session's connection to |server_id|. 104 // Initialize session's connection to |server_id|.
104 void InitializeSession( 105 void InitializeSession(
105 const QuicServerId& server_id, 106 const QuicServerId& server_id,
106 QuicCryptoClientConfig* config, 107 QuicCryptoClientConfig* config,
107 QuicCryptoClientStreamFactory* crypto_client_stream_factory); 108 QuicCryptoClientStreamFactory* crypto_client_stream_factory);
108 109
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 // on this session. Existing stream will continue to be processed. 247 // on this session. Existing stream will continue to be processed.
247 bool going_away_; 248 bool going_away_;
248 base::WeakPtrFactory<QuicClientSession> weak_factory_; 249 base::WeakPtrFactory<QuicClientSession> weak_factory_;
249 250
250 DISALLOW_COPY_AND_ASSIGN(QuicClientSession); 251 DISALLOW_COPY_AND_ASSIGN(QuicClientSession);
251 }; 252 };
252 253
253 } // namespace net 254 } // namespace net
254 255
255 #endif // NET_QUIC_QUIC_CLIENT_SESSION_H_ 256 #endif // NET_QUIC_QUIC_CLIENT_SESSION_H_
OLDNEW
« no previous file with comments | « net/quic/network_connection_unittest.cc ('k') | net/quic/quic_client_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698