0
Files
src/content/browser/cert_store_impl.h
dcheng c2282aa891 Standardize usage of virtual/override/final in content/browser/
This patch was automatically generated by applying clang fixit hints
generated by the plugin to the source tree.

BUG=417463
TBR=sky@chromium.org

Review URL: https://codereview.chromium.org/667943003

Cr-Commit-Position: refs/heads/master@{#300469}
2014-10-21 12:08:25 +00:00

41 lines
1.1 KiB
C++

// 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_BROWSER_CERT_STORE_IMPL_H_
#define CONTENT_BROWSER_CERT_STORE_IMPL_H_
#include "base/memory/singleton.h"
#include "content/browser/renderer_data_memoizing_store.h"
#include "content/public/browser/cert_store.h"
#include "net/cert/x509_certificate.h"
namespace content {
class CertStoreImpl : public CertStore {
public:
// Returns the singleton instance of the CertStore.
static CertStoreImpl* GetInstance();
// CertStore implementation:
int StoreCert(net::X509Certificate* cert,
int render_process_host_id) override;
bool RetrieveCert(int cert_id,
scoped_refptr<net::X509Certificate>* cert) override;
protected:
CertStoreImpl();
~CertStoreImpl() override;
private:
friend struct DefaultSingletonTraits<CertStoreImpl>;
RendererDataMemoizingStore<net::X509Certificate> store_;
DISALLOW_COPY_AND_ASSIGN(CertStoreImpl);
};
} // namespace content
#endif // CONTENT_BROWSER_CERT_STORE_IMPL_H_