| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 // not |stream_factory|, which must outlive this session. | 90 // not |stream_factory|, which must outlive this session. |
| 91 // TODO(rch): decouple the factory from the session via a Delegate interface. | 91 // TODO(rch): decouple the factory from the session via a Delegate interface. |
| 92 QuicClientSession(QuicConnection* connection, | 92 QuicClientSession(QuicConnection* connection, |
| 93 scoped_ptr<DatagramClientSocket> socket, | 93 scoped_ptr<DatagramClientSocket> socket, |
| 94 scoped_ptr<QuicDefaultPacketWriter> writer, | 94 scoped_ptr<QuicDefaultPacketWriter> writer, |
| 95 QuicStreamFactory* stream_factory, | 95 QuicStreamFactory* stream_factory, |
| 96 QuicCryptoClientStreamFactory* crypto_client_stream_factory, | 96 QuicCryptoClientStreamFactory* crypto_client_stream_factory, |
| 97 scoped_ptr<QuicServerInfo> server_info, | 97 scoped_ptr<QuicServerInfo> server_info, |
| 98 const QuicServerId& server_id, | 98 const QuicServerId& server_id, |
| 99 const QuicConfig& config, | 99 const QuicConfig& config, |
| 100 uint32 max_flow_control_receive_window_bytes, |
| 100 QuicCryptoClientConfig* crypto_config, | 101 QuicCryptoClientConfig* crypto_config, |
| 101 NetLog* net_log); | 102 NetLog* net_log); |
| 102 | 103 |
| 103 virtual ~QuicClientSession(); | 104 virtual ~QuicClientSession(); |
| 104 | 105 |
| 105 void AddObserver(Observer* observer); | 106 void AddObserver(Observer* observer); |
| 106 void RemoveObserver(Observer* observer); | 107 void RemoveObserver(Observer* observer); |
| 107 | 108 |
| 108 // Attempts to create a new stream. If the stream can be | 109 // Attempts to create a new stream. If the stream can be |
| 109 // created immediately, returns OK. If the open stream limit | 110 // created immediately, returns OK. If the open stream limit |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 // on this session. Existing stream will continue to be processed. | 235 // on this session. Existing stream will continue to be processed. |
| 235 bool going_away_; | 236 bool going_away_; |
| 236 base::WeakPtrFactory<QuicClientSession> weak_factory_; | 237 base::WeakPtrFactory<QuicClientSession> weak_factory_; |
| 237 | 238 |
| 238 DISALLOW_COPY_AND_ASSIGN(QuicClientSession); | 239 DISALLOW_COPY_AND_ASSIGN(QuicClientSession); |
| 239 }; | 240 }; |
| 240 | 241 |
| 241 } // namespace net | 242 } // namespace net |
| 242 | 243 |
| 243 #endif // NET_QUIC_QUIC_CLIENT_SESSION_H_ | 244 #endif // NET_QUIC_QUIC_CLIENT_SESSION_H_ |
| OLD | NEW |