| 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_CORE_CRYPTO_PROOF_SOURCE_H_ | 5 #ifndef NET_QUIC_CORE_CRYPTO_PROOF_SOURCE_H_ |
| 6 #define NET_QUIC_CORE_CRYPTO_PROOF_SOURCE_H_ | 6 #define NET_QUIC_CORE_CRYPTO_PROOF_SOURCE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "net/quic/core/crypto/quic_crypto_proof.h" | 12 #include "net/quic/core/crypto/quic_crypto_proof.h" |
| 13 #include "net/quic/core/quic_packets.h" | 13 #include "net/quic/core/quic_packets.h" |
| 14 #include "net/quic/platform/api/quic_export.h" | 14 #include "net/quic/platform/api/quic_export.h" |
| 15 #include "net/quic/platform/api/quic_reference_counted.h" | 15 #include "net/quic/platform/api/quic_reference_counted.h" |
| 16 #include "net/quic/platform/api/quic_socket_address.h" | 16 #include "net/quic/platform/api/quic_socket_address.h" |
| 17 #include "net/quic/platform/api/quic_string_piece.h" |
| 17 | 18 |
| 18 namespace net { | 19 namespace net { |
| 19 | 20 |
| 20 // ProofSource is an interface by which a QUIC server can obtain certificate | 21 // ProofSource is an interface by which a QUIC server can obtain certificate |
| 21 // chains and signatures that prove its identity. | 22 // chains and signatures that prove its identity. |
| 22 class QUIC_EXPORT_PRIVATE ProofSource { | 23 class QUIC_EXPORT_PRIVATE ProofSource { |
| 23 public: | 24 public: |
| 24 // Chain is a reference-counted wrapper for a vector of stringified | 25 // Chain is a reference-counted wrapper for a vector of stringified |
| 25 // certificates. | 26 // certificates. |
| 26 struct QUIC_EXPORT_PRIVATE Chain : public QuicReferenceCounted { | 27 struct QUIC_EXPORT_PRIVATE Chain : public QuicReferenceCounted { |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 // |hostname| may be empty to signify that a default certificate should be | 91 // |hostname| may be empty to signify that a default certificate should be |
| 91 // used. | 92 // used. |
| 92 // | 93 // |
| 93 // This function may be called concurrently. | 94 // This function may be called concurrently. |
| 94 // | 95 // |
| 95 // Callers should expect that |callback| might be invoked synchronously. | 96 // Callers should expect that |callback| might be invoked synchronously. |
| 96 virtual void GetProof(const QuicSocketAddress& server_address, | 97 virtual void GetProof(const QuicSocketAddress& server_address, |
| 97 const std::string& hostname, | 98 const std::string& hostname, |
| 98 const std::string& server_config, | 99 const std::string& server_config, |
| 99 QuicVersion quic_version, | 100 QuicVersion quic_version, |
| 100 base::StringPiece chlo_hash, | 101 QuicStringPiece chlo_hash, |
| 101 const QuicTagVector& connection_options, | 102 const QuicTagVector& connection_options, |
| 102 std::unique_ptr<Callback> callback) = 0; | 103 std::unique_ptr<Callback> callback) = 0; |
| 103 }; | 104 }; |
| 104 | 105 |
| 105 } // namespace net | 106 } // namespace net |
| 106 | 107 |
| 107 #endif // NET_QUIC_CORE_CRYPTO_PROOF_SOURCE_H_ | 108 #endif // NET_QUIC_CORE_CRYPTO_PROOF_SOURCE_H_ |
| OLD | NEW |