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

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

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/ios_web_unittests.gyp ('k') | ios/web/net/cert_store_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « ios/web/ios_web_unittests.gyp ('k') | ios/web/net/cert_store_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698