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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 | 89 |
90 // Constructs a new session which will own |connection|, but not | 90 // Constructs a new session which will own |connection|, but not |
91 // |stream_factory|, which must outlive this session. | 91 // |stream_factory|, which must outlive this session. |
92 // TODO(rch): decouple the factory from the session via a Delegate interface. | 92 // TODO(rch): decouple the factory from the session via a Delegate interface. |
93 QuicClientSession(QuicConnection* connection, | 93 QuicClientSession(QuicConnection* connection, |
94 scoped_ptr<DatagramClientSocket> socket, | 94 scoped_ptr<DatagramClientSocket> socket, |
95 QuicStreamFactory* stream_factory, | 95 QuicStreamFactory* stream_factory, |
96 TransportSecurityState* transport_security_state, | 96 TransportSecurityState* transport_security_state, |
97 scoped_ptr<QuicServerInfo> server_info, | 97 scoped_ptr<QuicServerInfo> server_info, |
98 const QuicConfig& config, | 98 const QuicConfig& config, |
| 99 const char* const connection_description, |
99 base::TaskRunner* task_runner, | 100 base::TaskRunner* task_runner, |
100 NetLog* net_log); | 101 NetLog* net_log); |
101 ~QuicClientSession() override; | 102 ~QuicClientSession() override; |
102 | 103 |
103 // Initialize session's connection to |server_id|. | 104 // Initialize session's connection to |server_id|. |
104 void InitializeSession( | 105 void InitializeSession( |
105 const QuicServerId& server_id, | 106 const QuicServerId& server_id, |
106 QuicCryptoClientConfig* config, | 107 QuicCryptoClientConfig* config, |
107 QuicCryptoClientStreamFactory* crypto_client_stream_factory); | 108 QuicCryptoClientStreamFactory* crypto_client_stream_factory); |
108 | 109 |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 // on this session. Existing stream will continue to be processed. | 247 // on this session. Existing stream will continue to be processed. |
247 bool going_away_; | 248 bool going_away_; |
248 base::WeakPtrFactory<QuicClientSession> weak_factory_; | 249 base::WeakPtrFactory<QuicClientSession> weak_factory_; |
249 | 250 |
250 DISALLOW_COPY_AND_ASSIGN(QuicClientSession); | 251 DISALLOW_COPY_AND_ASSIGN(QuicClientSession); |
251 }; | 252 }; |
252 | 253 |
253 } // namespace net | 254 } // namespace net |
254 | 255 |
255 #endif // NET_QUIC_QUIC_CLIENT_SESSION_H_ | 256 #endif // NET_QUIC_QUIC_CLIENT_SESSION_H_ |
OLD | NEW |