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

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

Issue 2097123002: QUIC - Race Cert Verification with host resolution if certs are (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Race cert verification. Created 4 years, 5 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
« no previous file with comments | « net/quic/quic_chromium_client_stream_test.cc ('k') | net/quic/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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 class NET_EXPORT_PRIVATE ProofHandler { 60 class NET_EXPORT_PRIVATE ProofHandler {
61 public: 61 public:
62 virtual ~ProofHandler() {} 62 virtual ~ProofHandler() {}
63 63
64 // Called when the proof in |cached| is marked valid. If this is a secure 64 // Called when the proof in |cached| is marked valid. If this is a secure
65 // QUIC session, then this will happen only after the proof verifier 65 // QUIC session, then this will happen only after the proof verifier
66 // completes. 66 // completes.
67 virtual void OnProofValid( 67 virtual void OnProofValid(
68 const QuicCryptoClientConfig::CachedState& cached) = 0; 68 const QuicCryptoClientConfig::CachedState& cached) = 0;
69 69
70 virtual void OnChannelValid() = 0;
71
70 // Called when proof verification details become available, either because 72 // Called when proof verification details become available, either because
71 // proof verification is complete, or when cached details are used. This 73 // proof verification is complete, or when cached details are used. This
72 // will only be called for secure QUIC connections. 74 // will only be called for secure QUIC connections.
73 virtual void OnProofVerifyDetailsAvailable( 75 virtual void OnProofVerifyDetailsAvailable(
74 const ProofVerifyDetails& verify_details) = 0; 76 const ProofVerifyDetails& verify_details) = 0;
75 }; 77 };
76 78
77 QuicCryptoClientStream(const QuicServerId& server_id, 79 QuicCryptoClientStream(const QuicServerId& server_id,
78 QuicSession* session, 80 QuicSession* session,
79 ProofVerifyContext* verify_context, 81 ProofVerifyContext* verify_context,
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 base::TimeTicks proof_verify_start_time_; 269 base::TimeTicks proof_verify_start_time_;
268 270
269 int num_scup_messages_received_; 271 int num_scup_messages_received_;
270 272
271 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientStream); 273 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientStream);
272 }; 274 };
273 275
274 } // namespace net 276 } // namespace net
275 277
276 #endif // NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_H_ 278 #endif // NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_H_
OLDNEW
« no previous file with comments | « net/quic/quic_chromium_client_stream_test.cc ('k') | net/quic/quic_crypto_client_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698