| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 DISALLOW_COPY_AND_ASSIGN(StreamRequest); | 84 DISALLOW_COPY_AND_ASSIGN(StreamRequest); |
| 85 }; | 85 }; |
| 86 | 86 |
| 87 // Constructs a new session which will own |connection| and |helper|, but | 87 // Constructs a new session which will own |connection| and |helper|, but |
| 88 // not |stream_factory|, which must outlive this session. | 88 // not |stream_factory|, which must outlive this session. |
| 89 // TODO(rch): decouple the factory from the session via a Delegate interface. | 89 // TODO(rch): decouple the factory from the session via a Delegate interface. |
| 90 QuicClientSession(QuicConnection* connection, | 90 QuicClientSession(QuicConnection* connection, |
| 91 scoped_ptr<DatagramClientSocket> socket, | 91 scoped_ptr<DatagramClientSocket> socket, |
| 92 scoped_ptr<QuicDefaultPacketWriter> writer, | 92 scoped_ptr<QuicDefaultPacketWriter> writer, |
| 93 QuicStreamFactory* stream_factory, | 93 QuicStreamFactory* stream_factory, |
| 94 QuicCryptoClientStreamFactory* crypto_client_stream_factory, |
| 94 scoped_ptr<QuicServerInfo> server_info, | 95 scoped_ptr<QuicServerInfo> server_info, |
| 95 QuicCryptoClientStreamFactory* crypto_client_stream_factory, | |
| 96 const QuicSessionKey& server_key, | 96 const QuicSessionKey& server_key, |
| 97 const QuicConfig& config, | 97 const QuicConfig& config, |
| 98 QuicCryptoClientConfig* crypto_config, | 98 QuicCryptoClientConfig* crypto_config, |
| 99 NetLog* net_log); | 99 NetLog* net_log); |
| 100 | 100 |
| 101 virtual ~QuicClientSession(); | 101 virtual ~QuicClientSession(); |
| 102 | 102 |
| 103 void AddObserver(Observer* observer); | 103 void AddObserver(Observer* observer); |
| 104 void RemoveObserver(Observer* observer); | 104 void RemoveObserver(Observer* observer); |
| 105 | 105 |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 // Number of packets read in the current read loop. | 221 // Number of packets read in the current read loop. |
| 222 size_t num_packets_read_; | 222 size_t num_packets_read_; |
| 223 base::WeakPtrFactory<QuicClientSession> weak_factory_; | 223 base::WeakPtrFactory<QuicClientSession> weak_factory_; |
| 224 | 224 |
| 225 DISALLOW_COPY_AND_ASSIGN(QuicClientSession); | 225 DISALLOW_COPY_AND_ASSIGN(QuicClientSession); |
| 226 }; | 226 }; |
| 227 | 227 |
| 228 } // namespace net | 228 } // namespace net |
| 229 | 229 |
| 230 #endif // NET_QUIC_QUIC_CLIENT_SESSION_H_ | 230 #endif // NET_QUIC_QUIC_CLIENT_SESSION_H_ |
| OLD | NEW |