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_ |