| Index: ios/web/net/cert_store_impl.cc
|
| diff --git a/content/browser/cert_store_impl.cc b/ios/web/net/cert_store_impl.cc
|
| similarity index 52%
|
| copy from content/browser/cert_store_impl.cc
|
| copy to ios/web/net/cert_store_impl.cc
|
| index cd24b9654cee78bced802afe8d305000aeee07a8..9cccbab7c9db101188a7c8b02e862563e1239a32 100644
|
| --- a/content/browser/cert_store_impl.cc
|
| +++ b/ios/web/net/cert_store_impl.cc
|
| @@ -1,10 +1,10 @@
|
| -// 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.
|
|
|
| -#include "content/browser/cert_store_impl.h"
|
| +#include "ios/web/net/cert_store_impl.h"
|
|
|
| -namespace content {
|
| +namespace web {
|
|
|
| // static
|
| CertStore* CertStore::GetInstance() {
|
| @@ -16,12 +16,14 @@ CertStoreImpl* CertStoreImpl::GetInstance() {
|
| return Singleton<CertStoreImpl>::get();
|
| }
|
|
|
| -CertStoreImpl::CertStoreImpl() {}
|
| +CertStoreImpl::CertStoreImpl() {
|
| +}
|
|
|
| -CertStoreImpl::~CertStoreImpl() {}
|
| +CertStoreImpl::~CertStoreImpl() {
|
| +}
|
|
|
| -int CertStoreImpl::StoreCert(net::X509Certificate* cert, int process_id) {
|
| - return store_.Store(cert, process_id);
|
| +int CertStoreImpl::StoreCert(net::X509Certificate* cert, int group_id) {
|
| + return store_.Store(cert, group_id);
|
| }
|
|
|
| bool CertStoreImpl::RetrieveCert(int cert_id,
|
| @@ -29,4 +31,8 @@ bool CertStoreImpl::RetrieveCert(int cert_id,
|
| return store_.Retrieve(cert_id, cert);
|
| }
|
|
|
| -} // namespace content
|
| +void CertStoreImpl::RemoveCertsForGroup(int group_id) {
|
| + store_.RemoveForRequestTracker(group_id);
|
| +}
|
| +
|
| +} // namespace web
|
|
|