| 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 27 matching lines...) Expand all Loading... |
| 38 const std::string& server_hostname, | 38 const std::string& server_hostname, |
| 39 QuicCryptoClientConfig* crypto_config, | 39 QuicCryptoClientConfig* crypto_config, |
| 40 NetLog* net_log); | 40 NetLog* net_log); |
| 41 | 41 |
| 42 virtual ~QuicClientSession(); | 42 virtual ~QuicClientSession(); |
| 43 | 43 |
| 44 // QuicSession methods: | 44 // QuicSession methods: |
| 45 virtual QuicReliableClientStream* CreateOutgoingReliableStream() OVERRIDE; | 45 virtual QuicReliableClientStream* CreateOutgoingReliableStream() OVERRIDE; |
| 46 virtual QuicCryptoClientStream* GetCryptoStream() OVERRIDE; | 46 virtual QuicCryptoClientStream* GetCryptoStream() OVERRIDE; |
| 47 virtual void CloseStream(QuicStreamId stream_id) OVERRIDE; | 47 virtual void CloseStream(QuicStreamId stream_id) OVERRIDE; |
| 48 virtual void OnCryptoHandshakeComplete(QuicErrorCode error) OVERRIDE; | 48 virtual void OnCryptoHandshakeEvent(CryptoHandshakeEvent event) OVERRIDE; |
| 49 | 49 |
| 50 // Performs a crypto handshake with the server. | 50 // Performs a crypto handshake with the server. |
| 51 int CryptoConnect(const CompletionCallback& callback); | 51 int CryptoConnect(const CompletionCallback& callback); |
| 52 | 52 |
| 53 // Causes the QuicConnectionHelper to start reading from the socket | 53 // Causes the QuicConnectionHelper to start reading from the socket |
| 54 // and passing the data along to the QuicConnection. | 54 // and passing the data along to the QuicConnection. |
| 55 void StartReading(); | 55 void StartReading(); |
| 56 | 56 |
| 57 // Close the session because of |error|. | 57 // Close the session because of |error|. |
| 58 void CloseSessionOnError(int error); | 58 void CloseSessionOnError(int error); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 83 size_t num_total_streams_; | 83 size_t num_total_streams_; |
| 84 BoundNetLog net_log_; | 84 BoundNetLog net_log_; |
| 85 QuicConnectionLogger logger_; | 85 QuicConnectionLogger logger_; |
| 86 | 86 |
| 87 DISALLOW_COPY_AND_ASSIGN(QuicClientSession); | 87 DISALLOW_COPY_AND_ASSIGN(QuicClientSession); |
| 88 }; | 88 }; |
| 89 | 89 |
| 90 } // namespace net | 90 } // namespace net |
| 91 | 91 |
| 92 #endif // NET_QUIC_QUIC_CLIENT_SESSION_H_ | 92 #endif // NET_QUIC_QUIC_CLIENT_SESSION_H_ |
| OLD | NEW |