Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(722)

Side by Side Diff: net/quic/core/quic_crypto_client_stream.h

Issue 2547583002: Landing Recent QUIC changes until Fri Nov 18 23:21:04 2016 +0000 (Closed)
Patch Set: Remove explicit HTTP/2 enum usage Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/quic/core/quic_connection_test.cc ('k') | net/quic/core/quic_crypto_client_stream.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « net/quic/core/quic_connection_test.cc ('k') | net/quic/core/quic_crypto_client_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698