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_ |
11 #define NET_QUIC_QUIC_CLIENT_SESSION_H_ | 11 #define NET_QUIC_QUIC_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 "net/base/completion_callback.h" | 19 #include "net/base/completion_callback.h" |
19 #include "net/proxy/proxy_server.h" | 20 #include "net/proxy/proxy_server.h" |
20 #include "net/quic/quic_client_session_base.h" | 21 #include "net/quic/quic_client_session_base.h" |
21 #include "net/quic/quic_connection_logger.h" | 22 #include "net/quic/quic_connection_logger.h" |
22 #include "net/quic/quic_crypto_client_stream.h" | 23 #include "net/quic/quic_crypto_client_stream.h" |
23 #include "net/quic/quic_protocol.h" | 24 #include "net/quic/quic_protocol.h" |
24 #include "net/quic/quic_reliable_client_stream.h" | 25 #include "net/quic/quic_reliable_client_stream.h" |
25 | 26 |
26 namespace net { | 27 namespace net { |
27 | 28 |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 scoped_refptr<IOBufferWithSize> read_buffer_; | 229 scoped_refptr<IOBufferWithSize> read_buffer_; |
229 scoped_ptr<QuicServerInfo> server_info_; | 230 scoped_ptr<QuicServerInfo> server_info_; |
230 scoped_ptr<CertVerifyResult> cert_verify_result_; | 231 scoped_ptr<CertVerifyResult> cert_verify_result_; |
231 ObserverSet observers_; | 232 ObserverSet observers_; |
232 StreamRequestQueue stream_requests_; | 233 StreamRequestQueue stream_requests_; |
233 bool read_pending_; | 234 bool read_pending_; |
234 CompletionCallback callback_; | 235 CompletionCallback callback_; |
235 size_t num_total_streams_; | 236 size_t num_total_streams_; |
236 base::TaskRunner* task_runner_; | 237 base::TaskRunner* task_runner_; |
237 BoundNetLog net_log_; | 238 BoundNetLog net_log_; |
| 239 base::TimeTicks handshake_start_; // Time the handshake was started. |
238 QuicConnectionLogger logger_; | 240 QuicConnectionLogger logger_; |
239 // Number of packets read in the current read loop. | 241 // Number of packets read in the current read loop. |
240 size_t num_packets_read_; | 242 size_t num_packets_read_; |
241 // True when the session is going away, and streams may no longer be created | 243 // True when the session is going away, and streams may no longer be created |
242 // on this session. Existing stream will continue to be processed. | 244 // on this session. Existing stream will continue to be processed. |
243 bool going_away_; | 245 bool going_away_; |
244 base::WeakPtrFactory<QuicClientSession> weak_factory_; | 246 base::WeakPtrFactory<QuicClientSession> weak_factory_; |
245 | 247 |
246 DISALLOW_COPY_AND_ASSIGN(QuicClientSession); | 248 DISALLOW_COPY_AND_ASSIGN(QuicClientSession); |
247 }; | 249 }; |
248 | 250 |
249 } // namespace net | 251 } // namespace net |
250 | 252 |
251 #endif // NET_QUIC_QUIC_CLIENT_SESSION_H_ | 253 #endif // NET_QUIC_QUIC_CLIENT_SESSION_H_ |
OLD | NEW |