| 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_SOURCE_H_ | 5 #ifndef NET_QUIC_CRYPTO_PROOF_SOURCE_H_ |
| 6 #define NET_QUIC_CRYPTO_PROOF_SOURCE_H_ | 6 #define NET_QUIC_CRYPTO_PROOF_SOURCE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 // the values of the remaining three arguments are undefined. | 55 // the values of the remaining three arguments are undefined. |
| 56 // | 56 // |
| 57 // |chain| is a reference-counted pointer to an object representing the | 57 // |chain| is a reference-counted pointer to an object representing the |
| 58 // certificate chain. | 58 // certificate chain. |
| 59 // | 59 // |
| 60 // |signature| contains the signature of the server config. | 60 // |signature| contains the signature of the server config. |
| 61 // | 61 // |
| 62 // |leaf_cert_sct| holds the signed timestamp (RFC6962) of the leaf cert. | 62 // |leaf_cert_sct| holds the signed timestamp (RFC6962) of the leaf cert. |
| 63 // | 63 // |
| 64 // |details| holds a pointer to an object representing the statistics, if | 64 // |details| holds a pointer to an object representing the statistics, if |
| 65 // any, | 65 // any, gathered during the operation of GetProof. If no stats are |
| 66 // gathered during the operation of GetProof. If no stats are available, | 66 // available, this will be nullptr. |
| 67 // this will be nullptr. | |
| 68 virtual void Run(bool ok, | 67 virtual void Run(bool ok, |
| 69 const scoped_refptr<Chain>& chain, | 68 const scoped_refptr<Chain>& chain, |
| 70 const std::string& signature, | 69 const std::string& signature, |
| 71 const std::string& leaf_cert_sct, | 70 const std::string& leaf_cert_sct, |
| 72 std::unique_ptr<Details> details) = 0; | 71 std::unique_ptr<Details> details) = 0; |
| 73 | 72 |
| 74 private: | 73 private: |
| 75 Callback(const Callback&) = delete; | 74 Callback(const Callback&) = delete; |
| 76 Callback& operator=(const Callback&) = delete; | 75 Callback& operator=(const Callback&) = delete; |
| 77 }; | 76 }; |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 const std::string& hostname, | 127 const std::string& hostname, |
| 129 const std::string& server_config, | 128 const std::string& server_config, |
| 130 QuicVersion quic_version, | 129 QuicVersion quic_version, |
| 131 base::StringPiece chlo_hash, | 130 base::StringPiece chlo_hash, |
| 132 std::unique_ptr<Callback> callback) = 0; | 131 std::unique_ptr<Callback> callback) = 0; |
| 133 }; | 132 }; |
| 134 | 133 |
| 135 } // namespace net | 134 } // namespace net |
| 136 | 135 |
| 137 #endif // NET_QUIC_CRYPTO_PROOF_SOURCE_H_ | 136 #endif // NET_QUIC_CRYPTO_PROOF_SOURCE_H_ |
| OLD | NEW |