| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_CRYPTO_PROOF_VERIFIER_H_ | 5 #ifndef NET_QUIC_CRYPTO_PROOF_VERIFIER_H_ |
| 6 #define NET_QUIC_CRYPTO_PROOF_VERIFIER_H_ | 6 #define NET_QUIC_CRYPTO_PROOF_VERIFIER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "net/base/completion_callback.h" | 11 #include "net/base/completion_callback.h" |
| 12 #include "net/base/net_export.h" | 12 #include "net/base/net_export.h" |
| 13 | 13 |
| 14 namespace net { | 14 namespace net { |
| 15 | 15 |
| 16 // ProofVerifyDetails is an abstract class that acts as a container for any | 16 // ProofVerifyDetails is an abstract class that acts as a container for any |
| 17 // implementation specific details that a ProofVerifier wishes to return. These | 17 // implementation specific details that a ProofVerifier wishes to return. These |
| 18 // details are saved in the CachedInfo for the origin in question. | 18 // details are saved in the CachedState for the origin in question. |
| 19 class NET_EXPORT_PRIVATE ProofVerifyDetails { | 19 class NET_EXPORT_PRIVATE ProofVerifyDetails { |
| 20 public: | 20 public: |
| 21 virtual ~ProofVerifyDetails() {} | 21 virtual ~ProofVerifyDetails() {} |
| 22 }; | 22 }; |
| 23 | 23 |
| 24 // ProofVerifierCallback provides a generic mechanism for a ProofVerifier to | 24 // ProofVerifierCallback provides a generic mechanism for a ProofVerifier to |
| 25 // call back after an asynchronous verification. | 25 // call back after an asynchronous verification. |
| 26 class NET_EXPORT_PRIVATE ProofVerifierCallback { | 26 class NET_EXPORT_PRIVATE ProofVerifierCallback { |
| 27 public: | 27 public: |
| 28 virtual ~ProofVerifierCallback(); | 28 virtual ~ProofVerifierCallback(); |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 const std::vector<std::string>& certs, | 73 const std::vector<std::string>& certs, |
| 74 const std::string& signature, | 74 const std::string& signature, |
| 75 std::string* error_details, | 75 std::string* error_details, |
| 76 scoped_ptr<ProofVerifyDetails>* details, | 76 scoped_ptr<ProofVerifyDetails>* details, |
| 77 ProofVerifierCallback* callback) = 0; | 77 ProofVerifierCallback* callback) = 0; |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 } // namespace net | 80 } // namespace net |
| 81 | 81 |
| 82 #endif // NET_QUIC_CRYPTO_PROOF_VERIFIER_H_ | 82 #endif // NET_QUIC_CRYPTO_PROOF_VERIFIER_H_ |
| OLD | NEW |