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

Side by Side Diff: net/cert/internal/trust_store.h

Issue 2272493002: Add TrustStoreNSS and TrustStoreCollection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cert-trust-store-interface3-nss
Patch Set: rebase Created 4 years, 3 months 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/cert/internal/path_builder.cc ('k') | net/cert/internal/trust_store_collection.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_CERT_INTERNAL_TRUST_STORE_H_ 5 #ifndef NET_CERT_INTERNAL_TRUST_STORE_H_
6 #define NET_CERT_INTERNAL_TRUST_STORE_H_ 6 #define NET_CERT_INTERNAL_TRUST_STORE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 // 133 //
134 // If results are available synchronously, they will be appended to 134 // If results are available synchronously, they will be appended to
135 // |*synchronous_matches|. |*synchronous_matches| will not be modified 135 // |*synchronous_matches|. |*synchronous_matches| will not be modified
136 // asynchronously. 136 // asynchronously.
137 // 137 //
138 // If |callback| is not null and results may be available asynchronously, 138 // If |callback| is not null and results may be available asynchronously,
139 // |*out_req| will be filled with a Request, and |callback| will be called 139 // |*out_req| will be filled with a Request, and |callback| will be called
140 // when results are available. The Request may be destroyed to cancel 140 // when results are available. The Request may be destroyed to cancel
141 // the callback if it has not occurred yet. 141 // the callback if it has not occurred yet.
142 virtual void FindTrustAnchorsForCert( 142 virtual void FindTrustAnchorsForCert(
143 const ParsedCertificate* cert, 143 const scoped_refptr<ParsedCertificate>& cert,
144 const TrustAnchorsCallback& callback, 144 const TrustAnchorsCallback& callback,
145 TrustAnchors* synchronous_matches, 145 TrustAnchors* synchronous_matches,
146 std::unique_ptr<Request>* out_req) const = 0; 146 std::unique_ptr<Request>* out_req) const = 0;
147 147
148 private: 148 private:
149 DISALLOW_COPY_AND_ASSIGN(TrustStore); 149 DISALLOW_COPY_AND_ASSIGN(TrustStore);
150 }; 150 };
151 151
152 } // namespace net 152 } // namespace net
153 153
154 #endif // NET_CERT_INTERNAL_TRUST_STORE_H_ 154 #endif // NET_CERT_INTERNAL_TRUST_STORE_H_
OLDNEW
« no previous file with comments | « net/cert/internal/path_builder.cc ('k') | net/cert/internal/trust_store_collection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698