| 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 #ifndef NET_QUIC_CORE_QUIC_CRYPTO_CLIENT_STREAM_H_ | 5 #ifndef NET_QUIC_CORE_QUIC_CRYPTO_CLIENT_STREAM_H_ |
| 6 #define NET_QUIC_CORE_QUIC_CRYPTO_CLIENT_STREAM_H_ | 6 #define NET_QUIC_CORE_QUIC_CRYPTO_CLIENT_STREAM_H_ |
| 7 | 7 |
| 8 #include <cstdint> | 8 #include <cstdint> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 namespace net { | 21 namespace net { |
| 22 | 22 |
| 23 namespace test { | 23 namespace test { |
| 24 class QuicChromiumClientSessionPeer; | 24 class QuicChromiumClientSessionPeer; |
| 25 } // namespace test | 25 } // namespace test |
| 26 | 26 |
| 27 class QUIC_EXPORT_PRIVATE QuicCryptoClientStreamBase : public QuicCryptoStream { | 27 class QUIC_EXPORT_PRIVATE QuicCryptoClientStreamBase : public QuicCryptoStream { |
| 28 public: | 28 public: |
| 29 explicit QuicCryptoClientStreamBase(QuicSession* session); | 29 explicit QuicCryptoClientStreamBase(QuicSession* session); |
| 30 | 30 |
| 31 ~QuicCryptoClientStreamBase() override{}; | 31 ~QuicCryptoClientStreamBase() override {} |
| 32 | 32 |
| 33 // Performs a crypto handshake with the server. Returns true if the connection | 33 // Performs a crypto handshake with the server. Returns true if the connection |
| 34 // is still connected. | 34 // is still connected. |
| 35 virtual bool CryptoConnect() = 0; | 35 virtual bool CryptoConnect() = 0; |
| 36 | 36 |
| 37 // num_sent_client_hellos returns the number of client hello messages that | 37 // num_sent_client_hellos returns the number of client hello messages that |
| 38 // have been sent. If the handshake has completed then this is one greater | 38 // have been sent. If the handshake has completed then this is one greater |
| 39 // than the number of round-trips needed for the handshake. | 39 // than the number of round-trips needed for the handshake. |
| 40 virtual int num_sent_client_hellos() const = 0; | 40 virtual int num_sent_client_hellos() const = 0; |
| 41 | 41 |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 base::TimeTicks proof_verify_start_time_; | 270 base::TimeTicks proof_verify_start_time_; |
| 271 | 271 |
| 272 int num_scup_messages_received_; | 272 int num_scup_messages_received_; |
| 273 | 273 |
| 274 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientStream); | 274 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientStream); |
| 275 }; | 275 }; |
| 276 | 276 |
| 277 } // namespace net | 277 } // namespace net |
| 278 | 278 |
| 279 #endif // NET_QUIC_CORE_QUIC_CRYPTO_CLIENT_STREAM_H_ | 279 #endif // NET_QUIC_CORE_QUIC_CRYPTO_CLIENT_STREAM_H_ |
| OLD | NEW |