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

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

Issue 330333006: Land Recent QUIC Changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix linus_tsan error - reverted the change to ConnectionMigrationClientPortChanged unitttest Created 6 years, 6 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
« 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 // not |stream_factory|, which must outlive this session. 91 // not |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 scoped_ptr<QuicDefaultPacketWriter> writer, 95 scoped_ptr<QuicDefaultPacketWriter> writer,
96 QuicStreamFactory* stream_factory, 96 QuicStreamFactory* stream_factory,
97 QuicCryptoClientStreamFactory* crypto_client_stream_factory, 97 QuicCryptoClientStreamFactory* crypto_client_stream_factory,
98 scoped_ptr<QuicServerInfo> server_info, 98 scoped_ptr<QuicServerInfo> server_info,
99 const QuicServerId& server_id, 99 const QuicServerId& server_id,
100 const QuicConfig& config, 100 const QuicConfig& config,
101 uint32 max_flow_control_receive_window_bytes,
102 QuicCryptoClientConfig* crypto_config, 101 QuicCryptoClientConfig* crypto_config,
103 base::TaskRunner* task_runner, 102 base::TaskRunner* task_runner,
104 NetLog* net_log); 103 NetLog* net_log);
105
106 virtual ~QuicClientSession(); 104 virtual ~QuicClientSession();
107 105
108 void AddObserver(Observer* observer); 106 void AddObserver(Observer* observer);
109 void RemoveObserver(Observer* observer); 107 void RemoveObserver(Observer* observer);
110 108
111 // Attempts to create a new stream. If the stream can be 109 // Attempts to create a new stream. If the stream can be
112 // created immediately, returns OK. If the open stream limit 110 // created immediately, returns OK. If the open stream limit
113 // has been reached, returns ERR_IO_PENDING, and |request| 111 // has been reached, returns ERR_IO_PENDING, and |request|
114 // will be added to the stream requets queue and will 112 // will be added to the stream requets queue and will
115 // be completed asynchronously. 113 // be completed asynchronously.
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 // on this session. Existing stream will continue to be processed. 242 // on this session. Existing stream will continue to be processed.
245 bool going_away_; 243 bool going_away_;
246 base::WeakPtrFactory<QuicClientSession> weak_factory_; 244 base::WeakPtrFactory<QuicClientSession> weak_factory_;
247 245
248 DISALLOW_COPY_AND_ASSIGN(QuicClientSession); 246 DISALLOW_COPY_AND_ASSIGN(QuicClientSession);
249 }; 247 };
250 248
251 } // namespace net 249 } // namespace net
252 250
253 #endif // NET_QUIC_QUIC_CLIENT_SESSION_H_ 251 #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