| 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 bool is_secure, | |
| 100 base::TaskRunner* task_runner, | 99 base::TaskRunner* task_runner, |
| 101 NetLog* net_log); | 100 NetLog* net_log); |
| 102 ~QuicClientSession() override; | 101 ~QuicClientSession() override; |
| 103 | 102 |
| 104 // Initialize session's connection to |server_id|. | 103 // Initialize session's connection to |server_id|. |
| 105 void InitializeSession( | 104 void InitializeSession( |
| 106 const QuicServerId& server_id, | 105 const QuicServerId& server_id, |
| 107 QuicCryptoClientConfig* config, | 106 QuicCryptoClientConfig* config, |
| 108 QuicCryptoClientStreamFactory* crypto_client_stream_factory); | 107 QuicCryptoClientStreamFactory* crypto_client_stream_factory); |
| 109 | 108 |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 // on this session. Existing stream will continue to be processed. | 244 // on this session. Existing stream will continue to be processed. |
| 246 bool going_away_; | 245 bool going_away_; |
| 247 base::WeakPtrFactory<QuicClientSession> weak_factory_; | 246 base::WeakPtrFactory<QuicClientSession> weak_factory_; |
| 248 | 247 |
| 249 DISALLOW_COPY_AND_ASSIGN(QuicClientSession); | 248 DISALLOW_COPY_AND_ASSIGN(QuicClientSession); |
| 250 }; | 249 }; |
| 251 | 250 |
| 252 } // namespace net | 251 } // namespace net |
| 253 | 252 |
| 254 #endif // NET_QUIC_QUIC_CLIENT_SESSION_H_ | 253 #endif // NET_QUIC_QUIC_CLIENT_SESSION_H_ |
| OLD | NEW |