| 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 QuicServerId server_id_; | 325 QuicServerId server_id_; |
| 326 bool require_confirmation_; | 326 bool require_confirmation_; |
| 327 std::unique_ptr<QuicCryptoClientStream> crypto_stream_; | 327 std::unique_ptr<QuicCryptoClientStream> crypto_stream_; |
| 328 QuicStreamFactory* stream_factory_; | 328 QuicStreamFactory* stream_factory_; |
| 329 std::vector<std::unique_ptr<DatagramClientSocket>> sockets_; | 329 std::vector<std::unique_ptr<DatagramClientSocket>> sockets_; |
| 330 TransportSecurityState* transport_security_state_; | 330 TransportSecurityState* transport_security_state_; |
| 331 std::unique_ptr<QuicServerInfo> server_info_; | 331 std::unique_ptr<QuicServerInfo> server_info_; |
| 332 std::unique_ptr<CertVerifyResult> cert_verify_result_; | 332 std::unique_ptr<CertVerifyResult> cert_verify_result_; |
| 333 std::unique_ptr<ct::CTVerifyResult> ct_verify_result_; | 333 std::unique_ptr<ct::CTVerifyResult> ct_verify_result_; |
| 334 std::string pinning_failure_log_; | 334 std::string pinning_failure_log_; |
| 335 bool pkp_bypassed_; |
| 335 ObserverSet observers_; | 336 ObserverSet observers_; |
| 336 StreamRequestQueue stream_requests_; | 337 StreamRequestQueue stream_requests_; |
| 337 CompletionCallback callback_; | 338 CompletionCallback callback_; |
| 338 size_t num_total_streams_; | 339 size_t num_total_streams_; |
| 339 base::TaskRunner* task_runner_; | 340 base::TaskRunner* task_runner_; |
| 340 BoundNetLog net_log_; | 341 BoundNetLog net_log_; |
| 341 std::vector<std::unique_ptr<QuicChromiumPacketReader>> packet_readers_; | 342 std::vector<std::unique_ptr<QuicChromiumPacketReader>> packet_readers_; |
| 342 base::TimeTicks dns_resolution_end_time_; | 343 base::TimeTicks dns_resolution_end_time_; |
| 343 base::TimeTicks handshake_start_; // Time the handshake was started. | 344 base::TimeTicks handshake_start_; // Time the handshake was started. |
| 344 std::unique_ptr<QuicConnectionLogger> logger_; | 345 std::unique_ptr<QuicConnectionLogger> logger_; |
| 345 // True when the session is going away, and streams may no longer be created | 346 // True when the session is going away, and streams may no longer be created |
| 346 // on this session. Existing stream will continue to be processed. | 347 // on this session. Existing stream will continue to be processed. |
| 347 bool going_away_; | 348 bool going_away_; |
| 348 // True when the session receives a go away from server due to port migration. | 349 // True when the session receives a go away from server due to port migration. |
| 349 bool port_migration_detected_; | 350 bool port_migration_detected_; |
| 350 QuicDisabledReason disabled_reason_; | 351 QuicDisabledReason disabled_reason_; |
| 351 TokenBindingSignatureMap token_binding_signatures_; | 352 TokenBindingSignatureMap token_binding_signatures_; |
| 352 // UMA histogram counters for streams pushed to this session. | 353 // UMA histogram counters for streams pushed to this session. |
| 353 int streams_pushed_count_; | 354 int streams_pushed_count_; |
| 354 int streams_pushed_and_claimed_count_; | 355 int streams_pushed_and_claimed_count_; |
| 355 base::WeakPtrFactory<QuicChromiumClientSession> weak_factory_; | 356 base::WeakPtrFactory<QuicChromiumClientSession> weak_factory_; |
| 356 | 357 |
| 357 DISALLOW_COPY_AND_ASSIGN(QuicChromiumClientSession); | 358 DISALLOW_COPY_AND_ASSIGN(QuicChromiumClientSession); |
| 358 }; | 359 }; |
| 359 | 360 |
| 360 } // namespace net | 361 } // namespace net |
| 361 | 362 |
| 362 #endif // NET_QUIC_QUIC_CHROMIUM_CLIENT_SESSION_H_ | 363 #endif // NET_QUIC_QUIC_CHROMIUM_CLIENT_SESSION_H_ |
| OLD | NEW |