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

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

Issue 706203003: Update from https://crrev.com/303153 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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 unified diff | Download patch
« no previous file with comments | « net/quic/crypto/quic_crypto_server_config.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 bool is_secure,
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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 // on this session. Existing stream will continue to be processed. 245 // on this session. Existing stream will continue to be processed.
245 bool going_away_; 246 bool going_away_;
246 base::WeakPtrFactory<QuicClientSession> weak_factory_; 247 base::WeakPtrFactory<QuicClientSession> weak_factory_;
247 248
248 DISALLOW_COPY_AND_ASSIGN(QuicClientSession); 249 DISALLOW_COPY_AND_ASSIGN(QuicClientSession);
249 }; 250 };
250 251
251 } // namespace net 252 } // namespace net
252 253
253 #endif // NET_QUIC_QUIC_CLIENT_SESSION_H_ 254 #endif // NET_QUIC_QUIC_CLIENT_SESSION_H_
OLDNEW
« no previous file with comments | « net/quic/crypto/quic_crypto_server_config.cc ('k') | net/quic/quic_client_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698