| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |