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

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

Issue 2671333004: Convert class-full-of-statics CryptoTestUtils into a namespace (Closed)
Patch Set: Created 3 years, 10 months 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
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_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>
11 11
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "net/quic/core/crypto/channel_id.h" 13 #include "net/quic/core/crypto/channel_id.h"
14 #include "net/quic/core/crypto/proof_verifier.h" 14 #include "net/quic/core/crypto/proof_verifier.h"
15 #include "net/quic/core/crypto/quic_crypto_client_config.h" 15 #include "net/quic/core/crypto/quic_crypto_client_config.h"
16 #include "net/quic/core/quic_config.h" 16 #include "net/quic/core/quic_config.h"
17 #include "net/quic/core/quic_crypto_stream.h" 17 #include "net/quic/core/quic_crypto_stream.h"
18 #include "net/quic/core/quic_server_id.h" 18 #include "net/quic/core/quic_server_id.h"
19 #include "net/quic/platform/api/quic_export.h" 19 #include "net/quic/platform/api/quic_export.h"
20 20
21 namespace net { 21 namespace net {
22 22
23 namespace test { 23 namespace test {
24 class CryptoTestUtils;
25 class QuicChromiumClientSessionPeer; 24 class QuicChromiumClientSessionPeer;
26 } // namespace test 25 } // namespace test
27 26
28 class QUIC_EXPORT_PRIVATE QuicCryptoClientStreamBase : public QuicCryptoStream { 27 class QUIC_EXPORT_PRIVATE QuicCryptoClientStreamBase : public QuicCryptoStream {
29 public: 28 public:
30 explicit QuicCryptoClientStreamBase(QuicSession* session); 29 explicit QuicCryptoClientStreamBase(QuicSession* session);
31 30
32 ~QuicCryptoClientStreamBase() override{}; 31 ~QuicCryptoClientStreamBase() override{};
33 32
34 // Performs a crypto handshake with the server. 33 // Performs a crypto handshake with the server.
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 std::unique_ptr<ProofVerifyDetails>* details) override; 134 std::unique_ptr<ProofVerifyDetails>* details) override;
136 135
137 // Cancel causes any future callbacks to be ignored. It must be called on 136 // Cancel causes any future callbacks to be ignored. It must be called on
138 // the same thread as the callback will be made on. 137 // the same thread as the callback will be made on.
139 void Cancel(); 138 void Cancel();
140 139
141 private: 140 private:
142 QuicCryptoClientStream* stream_; 141 QuicCryptoClientStream* stream_;
143 }; 142 };
144 143
145 friend class test::CryptoTestUtils;
146 friend class test::QuicChromiumClientSessionPeer; 144 friend class test::QuicChromiumClientSessionPeer;
147 145
148 enum State { 146 enum State {
149 STATE_IDLE, 147 STATE_IDLE,
150 STATE_INITIALIZE, 148 STATE_INITIALIZE,
151 STATE_SEND_CHLO, 149 STATE_SEND_CHLO,
152 STATE_RECV_REJ, 150 STATE_RECV_REJ,
153 STATE_VERIFY_PROOF, 151 STATE_VERIFY_PROOF,
154 STATE_VERIFY_PROOF_COMPLETE, 152 STATE_VERIFY_PROOF_COMPLETE,
155 STATE_GET_CHANNEL_ID, 153 STATE_GET_CHANNEL_ID,
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 base::TimeTicks proof_verify_start_time_; 269 base::TimeTicks proof_verify_start_time_;
272 270
273 int num_scup_messages_received_; 271 int num_scup_messages_received_;
274 272
275 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientStream); 273 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientStream);
276 }; 274 };
277 275
278 } // namespace net 276 } // namespace net
279 277
280 #endif // NET_QUIC_CORE_QUIC_CRYPTO_CLIENT_STREAM_H_ 278 #endif // NET_QUIC_CORE_QUIC_CRYPTO_CLIENT_STREAM_H_
OLDNEW
« no previous file with comments | « net/quic/core/quic_client_push_promise_index_test.cc ('k') | net/quic/core/quic_crypto_client_stream_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698