| OLD | NEW |
| 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_CHROMIUM_CLIENT_SESSION_H_ | 10 #ifndef NET_QUIC_QUIC_CHROMIUM_CLIENT_SESSION_H_ |
| (...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 // streams, because closing a stream may cause a new stream to be created. | 325 // streams, because closing a stream may cause a new stream to be created. |
| 326 void NotifyFactoryOfSessionGoingAway(); | 326 void NotifyFactoryOfSessionGoingAway(); |
| 327 | 327 |
| 328 // Posts a task to notify the factory that this session has been closed. | 328 // Posts a task to notify the factory that this session has been closed. |
| 329 void NotifyFactoryOfSessionClosedLater(); | 329 void NotifyFactoryOfSessionClosedLater(); |
| 330 | 330 |
| 331 // Notifies the factory that this session has been closed which will | 331 // Notifies the factory that this session has been closed which will |
| 332 // delete |this|. | 332 // delete |this|. |
| 333 void NotifyFactoryOfSessionClosed(); | 333 void NotifyFactoryOfSessionClosed(); |
| 334 | 334 |
| 335 void OnConnectTimeout(); | |
| 336 | |
| 337 QuicServerId server_id_; | 335 QuicServerId server_id_; |
| 338 bool require_confirmation_; | 336 bool require_confirmation_; |
| 339 std::unique_ptr<QuicCryptoClientStream> crypto_stream_; | 337 std::unique_ptr<QuicCryptoClientStream> crypto_stream_; |
| 340 QuicStreamFactory* stream_factory_; | 338 QuicStreamFactory* stream_factory_; |
| 341 std::vector<std::unique_ptr<DatagramClientSocket>> sockets_; | 339 std::vector<std::unique_ptr<DatagramClientSocket>> sockets_; |
| 342 TransportSecurityState* transport_security_state_; | 340 TransportSecurityState* transport_security_state_; |
| 343 std::unique_ptr<QuicServerInfo> server_info_; | 341 std::unique_ptr<QuicServerInfo> server_info_; |
| 344 std::unique_ptr<CertVerifyResult> cert_verify_result_; | 342 std::unique_ptr<CertVerifyResult> cert_verify_result_; |
| 345 std::unique_ptr<ct::CTVerifyResult> ct_verify_result_; | 343 std::unique_ptr<ct::CTVerifyResult> ct_verify_result_; |
| 346 std::string pinning_failure_log_; | 344 std::string pinning_failure_log_; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 370 int error_code_from_rewrite_; | 368 int error_code_from_rewrite_; |
| 371 bool use_error_code_from_rewrite_; | 369 bool use_error_code_from_rewrite_; |
| 372 base::WeakPtrFactory<QuicChromiumClientSession> weak_factory_; | 370 base::WeakPtrFactory<QuicChromiumClientSession> weak_factory_; |
| 373 | 371 |
| 374 DISALLOW_COPY_AND_ASSIGN(QuicChromiumClientSession); | 372 DISALLOW_COPY_AND_ASSIGN(QuicChromiumClientSession); |
| 375 }; | 373 }; |
| 376 | 374 |
| 377 } // namespace net | 375 } // namespace net |
| 378 | 376 |
| 379 #endif // NET_QUIC_QUIC_CHROMIUM_CLIENT_SESSION_H_ | 377 #endif // NET_QUIC_QUIC_CHROMIUM_CLIENT_SESSION_H_ |
| OLD | NEW |