| 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_ |
| 11 #define NET_QUIC_QUIC_CHROMIUM_CLIENT_SESSION_H_ | 11 #define NET_QUIC_QUIC_CHROMIUM_CLIENT_SESSION_H_ |
| 12 | 12 |
| 13 #include <string> | 13 #include <string> |
| 14 | 14 |
| 15 #include "base/basictypes.h" | 15 #include "base/basictypes.h" |
| 16 #include "base/containers/hash_tables.h" | 16 #include "base/containers/hash_tables.h" |
| 17 #include "base/memory/scoped_ptr.h" | 17 #include "base/memory/scoped_ptr.h" |
| 18 #include "base/time/time.h" | 18 #include "base/time/time.h" |
| 19 #include "net/base/completion_callback.h" | 19 #include "net/base/completion_callback.h" |
| 20 #include "net/base/socket_performance_watcher.h" | 20 #include "net/base/socket_performance_watcher.h" |
| 21 #include "net/cert/ct_verify_result.h" |
| 21 #include "net/proxy/proxy_server.h" | 22 #include "net/proxy/proxy_server.h" |
| 22 #include "net/quic/quic_client_session_base.h" | 23 #include "net/quic/quic_client_session_base.h" |
| 23 #include "net/quic/quic_connection_logger.h" | 24 #include "net/quic/quic_connection_logger.h" |
| 24 #include "net/quic/quic_crypto_client_stream.h" | 25 #include "net/quic/quic_crypto_client_stream.h" |
| 25 #include "net/quic/quic_packet_reader.h" | 26 #include "net/quic/quic_packet_reader.h" |
| 26 #include "net/quic/quic_protocol.h" | 27 #include "net/quic/quic_protocol.h" |
| 27 #include "net/quic/quic_reliable_client_stream.h" | 28 #include "net/quic/quic_reliable_client_stream.h" |
| 28 #include "net/quic/quic_time.h" | 29 #include "net/quic/quic_time.h" |
| 29 | 30 |
| 30 namespace net { | 31 namespace net { |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 void OnConnectTimeout(); | 268 void OnConnectTimeout(); |
| 268 | 269 |
| 269 QuicServerId server_id_; | 270 QuicServerId server_id_; |
| 270 bool require_confirmation_; | 271 bool require_confirmation_; |
| 271 scoped_ptr<QuicCryptoClientStream> crypto_stream_; | 272 scoped_ptr<QuicCryptoClientStream> crypto_stream_; |
| 272 QuicStreamFactory* stream_factory_; | 273 QuicStreamFactory* stream_factory_; |
| 273 scoped_ptr<DatagramClientSocket> socket_; | 274 scoped_ptr<DatagramClientSocket> socket_; |
| 274 TransportSecurityState* transport_security_state_; | 275 TransportSecurityState* transport_security_state_; |
| 275 scoped_ptr<QuicServerInfo> server_info_; | 276 scoped_ptr<QuicServerInfo> server_info_; |
| 276 scoped_ptr<CertVerifyResult> cert_verify_result_; | 277 scoped_ptr<CertVerifyResult> cert_verify_result_; |
| 278 scoped_ptr<ct::CTVerifyResult> ct_verify_result_; |
| 277 std::string pinning_failure_log_; | 279 std::string pinning_failure_log_; |
| 278 ObserverSet observers_; | 280 ObserverSet observers_; |
| 279 StreamRequestQueue stream_requests_; | 281 StreamRequestQueue stream_requests_; |
| 280 CompletionCallback callback_; | 282 CompletionCallback callback_; |
| 281 size_t num_total_streams_; | 283 size_t num_total_streams_; |
| 282 base::TaskRunner* task_runner_; | 284 base::TaskRunner* task_runner_; |
| 283 BoundNetLog net_log_; | 285 BoundNetLog net_log_; |
| 284 QuicPacketReader packet_reader_; | 286 QuicPacketReader packet_reader_; |
| 285 base::TimeTicks dns_resolution_end_time_; | 287 base::TimeTicks dns_resolution_end_time_; |
| 286 base::TimeTicks handshake_start_; // Time the handshake was started. | 288 base::TimeTicks handshake_start_; // Time the handshake was started. |
| 287 scoped_ptr<QuicConnectionLogger> logger_; | 289 scoped_ptr<QuicConnectionLogger> logger_; |
| 288 // True when the session is going away, and streams may no longer be created | 290 // True when the session is going away, and streams may no longer be created |
| 289 // on this session. Existing stream will continue to be processed. | 291 // on this session. Existing stream will continue to be processed. |
| 290 bool going_away_; | 292 bool going_away_; |
| 291 QuicDisabledReason disabled_reason_; | 293 QuicDisabledReason disabled_reason_; |
| 292 base::WeakPtrFactory<QuicChromiumClientSession> weak_factory_; | 294 base::WeakPtrFactory<QuicChromiumClientSession> weak_factory_; |
| 293 | 295 |
| 294 DISALLOW_COPY_AND_ASSIGN(QuicChromiumClientSession); | 296 DISALLOW_COPY_AND_ASSIGN(QuicChromiumClientSession); |
| 295 }; | 297 }; |
| 296 | 298 |
| 297 } // namespace net | 299 } // namespace net |
| 298 | 300 |
| 299 #endif // NET_QUIC_QUIC_CHROMIUM_CLIENT_SESSION_H_ | 301 #endif // NET_QUIC_QUIC_CHROMIUM_CLIENT_SESSION_H_ |
| OLD | NEW |