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

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

Issue 135193007: Use user specific NSSDatabase in CertLoader. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 11 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/nss_cert_database_factory.h
diff --git a/chrome/browser/chromeos/net/nss_cert_database_factory.h b/chrome/browser/chromeos/net/nss_cert_database_factory.h
new file mode 100644
index 0000000000000000000000000000000000000000..98bc1a7001d4eb07a2f6769f8f1c7e9ce4782ae0
--- /dev/null
+++ b/chrome/browser/chromeos/net/nss_cert_database_factory.h
@@ -0,0 +1,30 @@
+// 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_NSS_CERT_DATABASE_FACTORY_H_
+#define CHROME_BROWSER_CHROMEOS_NET_NSS_CERT_DATABASE_FACTORY_H_
+
+#include <string>
+
+#include "base/callback.h"
+
+class Profile;
+
+namespace net {
+class NSSCertDatabase;
+}
+
+namespace chromeos {
+
+// Utility function that gets the NSSCertDatabase instance for a profile.
+// It makes sure that the NSSCertDatabase is fetched from the right tread
stevenjb 2014/01/23 18:17:42 thread
tbarzic 2014/01/23 19:18:37 Done.
+// (IO thread) and run callback on the calling thread. The callback will always
+// be called asynchronously.
+void GetNSSCertDatabaseForProfile(
+ Profile* profile,
+ const base::Callback<void(net::NSSCertDatabase*)>& callback);
+
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_CHROMEOS_NET_NSS_CERT_DATABASE_FACTORY_H_

Powered by Google App Engine
This is Rietveld 408576698