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

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

Issue 511543006: QUIC - use HostPortPair instead of scoped_ptr<HostPortPair>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed wtc's comments Created 6 years, 3 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 | « no previous file | 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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 215
216 // Posts a task to notify the factory that this session has been closed. 216 // Posts a task to notify the factory that this session has been closed.
217 void NotifyFactoryOfSessionClosedLater(); 217 void NotifyFactoryOfSessionClosedLater();
218 218
219 // Notifies the factory that this session has been closed which will 219 // Notifies the factory that this session has been closed which will
220 // delete |this|. 220 // delete |this|.
221 void NotifyFactoryOfSessionClosed(); 221 void NotifyFactoryOfSessionClosed();
222 222
223 void OnConnectTimeout(); 223 void OnConnectTimeout();
224 224
225 scoped_ptr<HostPortPair> server_host_port_; 225 HostPortPair server_host_port_;
226 bool require_confirmation_; 226 bool require_confirmation_;
227 scoped_ptr<QuicCryptoClientStream> crypto_stream_; 227 scoped_ptr<QuicCryptoClientStream> crypto_stream_;
228 QuicStreamFactory* stream_factory_; 228 QuicStreamFactory* stream_factory_;
229 scoped_ptr<DatagramClientSocket> socket_; 229 scoped_ptr<DatagramClientSocket> socket_;
230 scoped_refptr<IOBufferWithSize> read_buffer_; 230 scoped_refptr<IOBufferWithSize> read_buffer_;
231 TransportSecurityState* transport_security_state_; 231 TransportSecurityState* transport_security_state_;
232 scoped_ptr<QuicServerInfo> server_info_; 232 scoped_ptr<QuicServerInfo> server_info_;
233 scoped_ptr<CertVerifyResult> cert_verify_result_; 233 scoped_ptr<CertVerifyResult> cert_verify_result_;
234 std::string pinning_failure_log_; 234 std::string pinning_failure_log_;
235 ObserverSet observers_; 235 ObserverSet observers_;
(...skipping 11 matching lines...) Expand all
247 // on this session. Existing stream will continue to be processed. 247 // on this session. Existing stream will continue to be processed.
248 bool going_away_; 248 bool going_away_;
249 base::WeakPtrFactory<QuicClientSession> weak_factory_; 249 base::WeakPtrFactory<QuicClientSession> weak_factory_;
250 250
251 DISALLOW_COPY_AND_ASSIGN(QuicClientSession); 251 DISALLOW_COPY_AND_ASSIGN(QuicClientSession);
252 }; 252 };
253 253
254 } // namespace net 254 } // namespace net
255 255
256 #endif // NET_QUIC_QUIC_CLIENT_SESSION_H_ 256 #endif // NET_QUIC_QUIC_CLIENT_SESSION_H_
OLDNEW
« 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