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

Unified Diff: content/browser/cert_store_impl.cc

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/browser/cert_store_impl.h ('k') | content/browser/devtools/protocol/network_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/cert_store_impl.cc
diff --git a/content/browser/cert_store_impl.cc b/content/browser/cert_store_impl.cc
deleted file mode 100644
index 6b183ace9afa172d3ba0da6bc475d7856d7d9128..0000000000000000000000000000000000000000
--- a/content/browser/cert_store_impl.cc
+++ /dev/null
@@ -1,52 +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.
-
-#include "content/browser/cert_store_impl.h"
-
-namespace content {
-
-// static
-CertStore* CertStore::GetInstance() {
- return CertStoreImpl::GetInstance();
-}
-
-// static
-CertStoreImpl* CertStoreImpl::GetInstance() {
- return base::Singleton<CertStoreImpl>::get();
-}
-
-int CertStoreImpl::StoreCert(net::X509Certificate* cert, int process_id) {
- scoped_refptr<HashAndCert> hash_and_cert(new HashAndCert);
- hash_and_cert->chain_hash =
- net::X509Certificate::CalculateChainFingerprint256(
- cert->os_cert_handle(), cert->GetIntermediateCertificates());
- hash_and_cert->cert = cert;
- return store_.Store(hash_and_cert.get(), process_id);
-}
-
-bool CertStoreImpl::RetrieveCert(int cert_id,
- scoped_refptr<net::X509Certificate>* cert) {
- scoped_refptr<HashAndCert> hash_and_cert;
- if (store_.Retrieve(cert_id, &hash_and_cert)) {
- *cert = hash_and_cert->cert;
- return true;
- }
- return false;
-}
-
-CertStoreImpl::CertStoreImpl() {}
-
-CertStoreImpl::~CertStoreImpl() {}
-
-CertStoreImpl::HashAndCert::HashAndCert() = default;
-
-bool CertStoreImpl::HashAndCert::LessThan::operator()(
- const scoped_refptr<HashAndCert>& lhs,
- const scoped_refptr<HashAndCert>& rhs) const {
- return net::SHA256HashValueLessThan()(lhs->chain_hash, rhs->chain_hash);
-}
-
-CertStoreImpl::HashAndCert::~HashAndCert() = default;
-
-} // namespace content
« no previous file with comments | « content/browser/cert_store_impl.h ('k') | content/browser/devtools/protocol/network_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698