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_CHROMIUM_QUIC_CHROMIUM_CLIENT_SESSION_H_ | 10 #ifndef NET_QUIC_CHROMIUM_QUIC_CHROMIUM_CLIENT_SESSION_H_ |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 // MultiplexedSession methods: | 209 // MultiplexedSession methods: |
210 bool GetRemoteEndpoint(IPEndPoint* endpoint) override; | 210 bool GetRemoteEndpoint(IPEndPoint* endpoint) override; |
211 bool GetSSLInfo(SSLInfo* ssl_info) const override; | 211 bool GetSSLInfo(SSLInfo* ssl_info) const override; |
212 Error GetTokenBindingSignature(crypto::ECPrivateKey* key, | 212 Error GetTokenBindingSignature(crypto::ECPrivateKey* key, |
213 TokenBindingType tb_type, | 213 TokenBindingType tb_type, |
214 std::vector<uint8_t>* out) override; | 214 std::vector<uint8_t>* out) override; |
215 | 215 |
216 // Performs a crypto handshake with the server. | 216 // Performs a crypto handshake with the server. |
217 int CryptoConnect(const CompletionCallback& callback); | 217 int CryptoConnect(const CompletionCallback& callback); |
218 | 218 |
219 // Resumes a crypto handshake with the server after a timeout. | |
220 int ResumeCryptoConnect(const CompletionCallback& callback); | |
221 | |
222 // Causes the QuicConnectionHelper to start reading from all sockets | 219 // Causes the QuicConnectionHelper to start reading from all sockets |
223 // and passing the data along to the QuicConnection. | 220 // and passing the data along to the QuicConnection. |
224 void StartReading(); | 221 void StartReading(); |
225 | 222 |
226 // Close the session because of |error| and notifies the factory | 223 // Close the session because of |error| and notifies the factory |
227 // that this session has been closed, which will delete the session. | 224 // that this session has been closed, which will delete the session. |
228 void CloseSessionOnError(int error, QuicErrorCode quic_error); | 225 void CloseSessionOnError(int error, QuicErrorCode quic_error); |
229 | 226 |
230 // Close the session because of |error| and notifies the factory later that | 227 // Close the session because of |error| and notifies the factory later that |
231 // this session has been closed, which will delete the session. | 228 // this session has been closed, which will delete the session. |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
413 // the current sockets_.size() == the passed in value. | 410 // the current sockets_.size() == the passed in value. |
414 bool migration_pending_; // True while migration is underway. | 411 bool migration_pending_; // True while migration is underway. |
415 base::WeakPtrFactory<QuicChromiumClientSession> weak_factory_; | 412 base::WeakPtrFactory<QuicChromiumClientSession> weak_factory_; |
416 | 413 |
417 DISALLOW_COPY_AND_ASSIGN(QuicChromiumClientSession); | 414 DISALLOW_COPY_AND_ASSIGN(QuicChromiumClientSession); |
418 }; | 415 }; |
419 | 416 |
420 } // namespace net | 417 } // namespace net |
421 | 418 |
422 #endif // NET_QUIC_CHROMIUM_QUIC_CHROMIUM_CLIENT_SESSION_H_ | 419 #endif // NET_QUIC_CHROMIUM_QUIC_CHROMIUM_CLIENT_SESSION_H_ |
OLD | NEW |