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

Unified Diff: content/public/browser/cert_store.h

Issue 2327433002: Stop using CertStore which is not compatible with PlzNavigate. (Closed)
Patch Set: remove cert_store on ios 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/public/browser/BUILD.gn ('k') | content/public/browser/resource_request_details.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/cert_store.h
diff --git a/content/public/browser/cert_store.h b/content/public/browser/cert_store.h
deleted file mode 100644
index 73c35a24e8ec828379882d11a136addbe68495b3..0000000000000000000000000000000000000000
--- a/content/public/browser/cert_store.h
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CONTENT_PUBLIC_BROWSER_CERT_STORE_H_
-#define CONTENT_PUBLIC_BROWSER_CERT_STORE_H_
-
-#include "base/memory/ref_counted.h"
-#include "content/common/content_export.h"
-
-namespace net {
-class X509Certificate;
-}
-
-namespace content {
-
-// The purpose of the cert store is to provide an easy way to store/retrieve
-// X509Certificate objects. When stored, an X509Certificate object is
-// associated with a RenderProcessHost. If all the RenderProcessHosts
-// associated with the cert have exited, the cert is removed from the store.
-// This class is used by the SSLManager to keep track of the certs associated
-// to loaded resources.
-// It can be accessed from the UI and IO threads (it is thread-safe).
-// Note that the cert ids will overflow if we register more than 2^32 - 1 certs
-// in 1 browsing session (which is highly unlikely to happen).
-class CertStore {
- public:
- // Returns the singleton instance of the CertStore.
- CONTENT_EXPORT static CertStore* GetInstance();
-
- // Stores the specified cert and returns the id associated with it. The cert
- // is associated to the specified RenderProcessHost.
- // When all the RenderProcessHosts associated with a cert have exited, the
- // cert is removed from the store.
- // Note: ids starts at 1.
- virtual int StoreCert(net::X509Certificate* cert,
- int render_process_host_id) = 0;
-
- // Tries to retrieve the previously stored cert associated with the specified
- // |cert_id|. Returns whether the cert could be found, and, if |cert| is
- // non-nullptr, copies it in.
- virtual bool RetrieveCert(int cert_id,
- scoped_refptr<net::X509Certificate>* cert) = 0;
-
- protected:
- virtual ~CertStore() {}
-};
-
-} // namespace content
-
-#endif // CONTENT_PUBLIC_BROWSER_CERT_STORE_H_
« no previous file with comments | « content/public/browser/BUILD.gn ('k') | content/public/browser/resource_request_details.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698