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

Unified Diff: ios/web/net/cert_store_impl.cc

Issue 1043243003: Upstream most of ios/web/net (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove accidentally-added clients Created 5 years, 9 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 | « ios/web/net/cert_store_impl.h ('k') | ios/web/net/cookie_notification_bridge.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « ios/web/net/cert_store_impl.h ('k') | ios/web/net/cookie_notification_bridge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698