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

Unified Diff: chrome/browser/net/nss_context.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/net/nss_context.h
diff --git a/chrome/browser/net/nss_context.h b/chrome/browser/net/nss_context.h
index 53eab54cc7dc3980395d1d1aa374ba4858c5696a..feb178ca7c8a1de8e17a6fbb905f18d4603ff56b 100644
--- a/chrome/browser/net/nss_context.h
+++ b/chrome/browser/net/nss_context.h
@@ -11,6 +11,8 @@
#include "base/compiler_specific.h"
#include "crypto/scoped_nss_types.h"
+class Profile;
+
namespace net {
class NSSCertDatabase;
}
@@ -44,4 +46,13 @@ net::NSSCertDatabase* GetNSSCertDatabaseForResourceContext(
const base::Callback<void(net::NSSCertDatabase*)>& callback)
WARN_UNUSED_RESULT;
+// Gets a pointer to the NSSCertDatabase for the user associated with |context|.
+// It's a wrapper around |GetNSSCertDatabaseForResourceContext| which makes
+// sure it's called on IO thread (with |profile|'s resource context). The
+// callback will be called on the originating message loop.
+// It's accessing profile, so it should be called on the UI thread.
+void GetNSSCertDatabaseForProfile(
+ Profile* profile,
+ const base::Callback<void(net::NSSCertDatabase*)>& callback);
+
#endif // CHROME_BROWSER_NET_NSS_CONTEXT_H_
« no previous file with comments | « chrome/browser/chromeos/settings/device_settings_service_unittest.cc ('k') | chrome/browser/net/nss_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698