| Index: ios/web/net/cert_store_impl.h
|
| diff --git a/content/browser/cert_store_impl.h b/ios/web/net/cert_store_impl.h
|
| similarity index 56%
|
| copy from content/browser/cert_store_impl.h
|
| copy to ios/web/net/cert_store_impl.h
|
| index d8b689c17b09d118dccc77d98922ccd6847ed528..8e2154c21fb20d97e084545ac04ac833ecc0852e 100644
|
| --- a/content/browser/cert_store_impl.h
|
| +++ b/ios/web/net/cert_store_impl.h
|
| @@ -1,16 +1,16 @@
|
| -// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +// Copyright 2015 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_
|
| +#ifndef IOS_WEB_NET_CERT_STORE_IMPL_H_
|
| +#define IOS_WEB_NET_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 "ios/web/net/request_tracker_data_memoizing_store.h"
|
| +#include "ios/web/public/cert_store.h"
|
| #include "net/cert/x509_certificate.h"
|
|
|
| -namespace content {
|
| +namespace web {
|
|
|
| class CertStoreImpl : public CertStore {
|
| public:
|
| @@ -18,10 +18,10 @@ class CertStoreImpl : public CertStore {
|
| static CertStoreImpl* GetInstance();
|
|
|
| // CertStore implementation:
|
| - int StoreCert(net::X509Certificate* cert,
|
| - int render_process_host_id) override;
|
| + int StoreCert(net::X509Certificate* cert, int group_id) override;
|
| bool RetrieveCert(int cert_id,
|
| scoped_refptr<net::X509Certificate>* cert) override;
|
| + void RemoveCertsForGroup(int group_id) override;
|
|
|
| protected:
|
| CertStoreImpl();
|
| @@ -30,11 +30,11 @@ class CertStoreImpl : public CertStore {
|
| private:
|
| friend struct DefaultSingletonTraits<CertStoreImpl>;
|
|
|
| - RendererDataMemoizingStore<net::X509Certificate> store_;
|
| + RequestTrackerDataMemoizingStore<net::X509Certificate> store_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(CertStoreImpl);
|
| };
|
|
|
| -} // namespace content
|
| +} // namespace web
|
|
|
| -#endif // CONTENT_BROWSER_CERT_STORE_IMPL_H_
|
| +#endif // IOS_WEB_NET_CERT_STORE_IMPL_H_
|
|
|