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

Side by Side Diff: net/quic/core/crypto/proof_source.h

Issue 2516433002: Minor refactors to enable sending an Expect-CT header more easily. (Closed)
Patch Set: Created 4 years, 1 month 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/net.gypi ('k') | net/quic/core/crypto/quic_crypto_proof.h » ('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) 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 // cert. 104 // cert.
105 // 105 //
106 // This function may be called concurrently. 106 // This function may be called concurrently.
107 virtual bool GetProof(const IPAddress& server_ip, 107 virtual bool GetProof(const IPAddress& server_ip,
108 const std::string& hostname, 108 const std::string& hostname,
109 const std::string& server_config, 109 const std::string& server_config,
110 QuicVersion quic_version, 110 QuicVersion quic_version,
111 base::StringPiece chlo_hash, 111 base::StringPiece chlo_hash,
112 const QuicTagVector& connection_options, 112 const QuicTagVector& connection_options,
113 scoped_refptr<Chain>* out_chain, 113 scoped_refptr<Chain>* out_chain,
114 QuicCryptoProof* proof) = 0; 114 QuicCryptoProof* out_proof) = 0;
115 115
116 // Async version of GetProof with identical semantics, except that the results 116 // Async version of GetProof with identical semantics, except that the results
117 // are delivered to |callback|. Callers should expect that |callback| might 117 // are delivered to |callback|. Callers should expect that |callback| might
118 // be invoked synchronously. The ProofSource takes ownership of |callback| in 118 // be invoked synchronously. The ProofSource takes ownership of |callback| in
119 // any case. 119 // any case.
120 virtual void GetProof(const IPAddress& server_ip, 120 virtual void GetProof(const IPAddress& server_ip,
121 const std::string& hostname, 121 const std::string& hostname,
122 const std::string& server_config, 122 const std::string& server_config,
123 QuicVersion quic_version, 123 QuicVersion quic_version,
124 base::StringPiece chlo_hash, 124 base::StringPiece chlo_hash,
125 const QuicTagVector& connection_options, 125 const QuicTagVector& connection_options,
126 std::unique_ptr<Callback> callback) = 0; 126 std::unique_ptr<Callback> callback) = 0;
127 }; 127 };
128 128
129 } // namespace net 129 } // namespace net
130 130
131 #endif // NET_QUIC_CRYPTO_PROOF_SOURCE_H_ 131 #endif // NET_QUIC_CRYPTO_PROOF_SOURCE_H_
OLDNEW
« no previous file with comments | « net/net.gypi ('k') | net/quic/core/crypto/quic_crypto_proof.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698