| 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_QUIC_CRYPTO_CLIENT_STREAM_H_ | 5 #ifndef NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_H_ |
| 6 #define NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_H_ | 6 #define NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "net/quic/crypto/channel_id.h" | 10 #include "net/quic/crypto/channel_id.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 public: | 27 public: |
| 28 QuicCryptoClientStream(const QuicServerId& server_id, | 28 QuicCryptoClientStream(const QuicServerId& server_id, |
| 29 QuicClientSessionBase* session, | 29 QuicClientSessionBase* session, |
| 30 ProofVerifyContext* verify_context, | 30 ProofVerifyContext* verify_context, |
| 31 QuicCryptoClientConfig* crypto_config); | 31 QuicCryptoClientConfig* crypto_config); |
| 32 ~QuicCryptoClientStream() override; | 32 ~QuicCryptoClientStream() override; |
| 33 | 33 |
| 34 // CryptoFramerVisitorInterface implementation | 34 // CryptoFramerVisitorInterface implementation |
| 35 void OnHandshakeMessage(const CryptoHandshakeMessage& message) override; | 35 void OnHandshakeMessage(const CryptoHandshakeMessage& message) override; |
| 36 | 36 |
| 37 // Performs a crypto handshake with the server. Returns true if the crypto | 37 // Performs a crypto handshake with the server. |
| 38 // handshake is started successfully. | 38 virtual void CryptoConnect(); |
| 39 // TODO(agl): this should probably return void. | |
| 40 virtual bool CryptoConnect(); | |
| 41 | 39 |
| 42 // num_sent_client_hellos returns the number of client hello messages that | 40 // num_sent_client_hellos returns the number of client hello messages that |
| 43 // have been sent. If the handshake has completed then this is one greater | 41 // have been sent. If the handshake has completed then this is one greater |
| 44 // than the number of round-trips needed for the handshake. | 42 // than the number of round-trips needed for the handshake. |
| 45 int num_sent_client_hellos() const; | 43 int num_sent_client_hellos() const; |
| 46 | 44 |
| 47 // Returns true if a channel ID was sent on this connection. | 45 // Returns true if a channel ID was sent on this connection. |
| 48 bool WasChannelIDSent() const; | 46 bool WasChannelIDSent() const; |
| 49 | 47 |
| 50 // Returns true if our ChannelIDSourceCallback was run, which implies the | 48 // Returns true if our ChannelIDSourceCallback was run, which implies the |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 bool verify_ok_; | 208 bool verify_ok_; |
| 211 std::string verify_error_details_; | 209 std::string verify_error_details_; |
| 212 scoped_ptr<ProofVerifyDetails> verify_details_; | 210 scoped_ptr<ProofVerifyDetails> verify_details_; |
| 213 | 211 |
| 214 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientStream); | 212 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientStream); |
| 215 }; | 213 }; |
| 216 | 214 |
| 217 } // namespace net | 215 } // namespace net |
| 218 | 216 |
| 219 #endif // NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_H_ | 217 #endif // NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_H_ |
| OLD | NEW |