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

Unified Diff: net/cert/internal/trust_store.h

Issue 2453093004: Remove dependence on a message loop for net::PathBuilder. (Closed)
Patch Set: remove unnecessary forward decl 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 side-by-side diff with in-line comments
Download patch
Index: net/cert/internal/trust_store.h
diff --git a/net/cert/internal/trust_store.h b/net/cert/internal/trust_store.h
index 8422fd5c96a7b805a925203ee001613d62fe4ffb..6985301f35cdebca3d039ed22df5ac69d1e03888 100644
--- a/net/cert/internal/trust_store.h
+++ b/net/cert/internal/trust_store.h
@@ -7,7 +7,6 @@
#include <vector>
-#include "base/callback.h"
#include "base/memory/ref_counted.h"
#include "net/base/net_export.h"
#include "net/cert/internal/parsed_certificate.h"
@@ -115,35 +114,14 @@ using TrustAnchors = std::vector<scoped_refptr<TrustAnchor>>;
// Interface for finding trust anchors.
class NET_EXPORT TrustStore {
public:
- class NET_EXPORT Request {
- public:
- Request();
- // Destruction of the Request cancels it.
- virtual ~Request();
- };
-
TrustStore();
virtual ~TrustStore();
- using TrustAnchorsCallback = base::Callback<void(TrustAnchors)>;
-
- // Returns the trust anchors that match |cert|'s issuer name in
- // |*synchronous_matches| and/or through |callback|. |cert| and
- // |synchronous_matches| must not be null.
- //
- // If results are available synchronously, they will be appended to
- // |*synchronous_matches|. |*synchronous_matches| will not be modified
- // asynchronously.
- //
- // If |callback| is not null and results may be available asynchronously,
- // |*out_req| will be filled with a Request, and |callback| will be called
- // when results are available. The Request may be destroyed to cancel
- // the callback if it has not occurred yet.
+ // Appends the trust anchors that match |cert|'s issuer name to |*matches|.
+ // |cert| and |matches| must not be null.
virtual void FindTrustAnchorsForCert(
const scoped_refptr<ParsedCertificate>& cert,
- const TrustAnchorsCallback& callback,
- TrustAnchors* synchronous_matches,
- std::unique_ptr<Request>* out_req) const = 0;
+ TrustAnchors* matches) const = 0;
private:
DISALLOW_COPY_AND_ASSIGN(TrustStore);
« no previous file with comments | « net/cert/internal/path_builder_verify_certificate_chain_unittest.cc ('k') | net/cert/internal/trust_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698