| 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_CLIENT_SESSION_H_ | 10 #ifndef NET_QUIC_QUIC_CLIENT_SESSION_H_ |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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_; |
| 236 StreamRequestQueue stream_requests_; | 236 StreamRequestQueue stream_requests_; |
| 237 bool read_pending_; | 237 bool read_pending_; |
| 238 CompletionCallback callback_; | 238 CompletionCallback callback_; |
| 239 size_t num_total_streams_; | 239 size_t num_total_streams_; |
| 240 base::TaskRunner* task_runner_; | 240 base::TaskRunner* task_runner_; |
| 241 BoundNetLog net_log_; | 241 BoundNetLog net_log_; |
| 242 base::TimeTicks handshake_start_; // Time the handshake was started. | 242 base::TimeTicks handshake_start_; // Time the handshake was started. |
| 243 QuicConnectionLogger* logger_; // Owned by |connection_|. | 243 scoped_ptr<QuicConnectionLogger> logger_; |
| 244 // Number of packets read in the current read loop. | 244 // Number of packets read in the current read loop. |
| 245 size_t num_packets_read_; | 245 size_t num_packets_read_; |
| 246 // True when the session is going away, and streams may no longer be created | 246 // True when the session is going away, and streams may no longer be created |
| 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_ |
| OLD | NEW |