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 <cstdint> | 8 #include <cstdint> |
9 #include <memory> | 9 #include <memory> |
10 #include <string> | 10 #include <string> |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 // CryptoFramerVisitorInterface implementation | 92 // CryptoFramerVisitorInterface implementation |
93 void OnHandshakeMessage(const CryptoHandshakeMessage& message) override; | 93 void OnHandshakeMessage(const CryptoHandshakeMessage& message) override; |
94 | 94 |
95 // Returns true if a channel ID was sent on this connection. | 95 // Returns true if a channel ID was sent on this connection. |
96 bool WasChannelIDSent() const; | 96 bool WasChannelIDSent() const; |
97 | 97 |
98 // Returns true if our ChannelIDSourceCallback was run, which implies the | 98 // Returns true if our ChannelIDSourceCallback was run, which implies the |
99 // ChannelIDSource operated asynchronously. Intended for testing. | 99 // ChannelIDSource operated asynchronously. Intended for testing. |
100 bool WasChannelIDSourceCallbackRun() const; | 100 bool WasChannelIDSourceCallbackRun() const; |
101 | 101 |
| 102 std::string chlo_hash() const { return chlo_hash_; } |
| 103 |
102 private: | 104 private: |
103 // ChannelIDSourceCallbackImpl is passed as the callback method to | 105 // ChannelIDSourceCallbackImpl is passed as the callback method to |
104 // GetChannelIDKey. The ChannelIDSource calls this class with the result of | 106 // GetChannelIDKey. The ChannelIDSource calls this class with the result of |
105 // channel ID lookup when lookup is performed asynchronously. | 107 // channel ID lookup when lookup is performed asynchronously. |
106 class ChannelIDSourceCallbackImpl : public ChannelIDSourceCallback { | 108 class ChannelIDSourceCallbackImpl : public ChannelIDSourceCallback { |
107 public: | 109 public: |
108 explicit ChannelIDSourceCallbackImpl(QuicCryptoClientStream* stream); | 110 explicit ChannelIDSourceCallbackImpl(QuicCryptoClientStream* stream); |
109 ~ChannelIDSourceCallbackImpl() override; | 111 ~ChannelIDSourceCallbackImpl() override; |
110 | 112 |
111 // ChannelIDSourceCallback interface. | 113 // ChannelIDSourceCallback interface. |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 base::TimeTicks proof_verify_start_time_; | 270 base::TimeTicks proof_verify_start_time_; |
269 | 271 |
270 int num_scup_messages_received_; | 272 int num_scup_messages_received_; |
271 | 273 |
272 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientStream); | 274 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientStream); |
273 }; | 275 }; |
274 | 276 |
275 } // namespace net | 277 } // namespace net |
276 | 278 |
277 #endif // NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_H_ | 279 #endif // NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_H_ |
OLD | NEW |