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

Unified Diff: chrome/browser/chromeos/net/cert_profile_filter.h

Issue 419013003: Replace c/b/nss_context by a KeyedService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added cert_database namespace. Created 6 years, 2 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
Index: chrome/browser/chromeos/net/cert_profile_filter.h
diff --git a/chrome/browser/chromeos/net/cert_profile_filter.h b/chrome/browser/chromeos/net/cert_profile_filter.h
new file mode 100644
index 0000000000000000000000000000000000000000..b533fb7b661e53d94e471c88fa57a1b7650085d1
--- /dev/null
+++ b/chrome/browser/chromeos/net/cert_profile_filter.h
@@ -0,0 +1,32 @@
+// Copyright 2014 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 CHROME_BROWSER_CHROMEOS_NET_CERT_PROFILE_FILTER_H_
+#define CHROME_BROWSER_CHROMEOS_NET_CERT_PROFILE_FILTER_H_
+
+#include "base/memory/scoped_ptr.h"
+#include "base/memory/weak_ptr.h"
+
+namespace cert_database {
+class CertDatabaseServiceIOPart;
+}
+
+namespace net {
+class NSSProfileFilterChromeOSFactory;
+}
+
+namespace chromeos {
+
+// Creates a factory for filters that accept any certificate that is available
+// to the given CertDatabase and accordingly to the user of the owning
+// BrowserContext. That means, that the public, private and system slot are used
+// if available.
+// If an error occurs during filter creation, then an empty filter will be
+// returned, see the default constructor of NSSProfileFilterChromeOS.
+scoped_ptr<net::NSSProfileFilterChromeOSFactory> CreateProfileFilterFactory(
mattm 2014/10/18 00:45:15 name should be a bit more specific
pneubeck (no reviews) 2014/10/21 09:22:09 Done.
+ const base::WeakPtr<cert_database::CertDatabaseServiceIOPart>& cert_db_io);
+
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_CHROMEOS_NET_CERT_PROFILE_FILTER_H_

Powered by Google App Engine
This is Rietveld 408576698