Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / net / nss_context.h
index feb178c..8212ee1 100644 (file)
@@ -40,12 +40,20 @@ crypto::ScopedPK11Slot GetPrivateNSSKeySlotForResourceContext(
 // |callback| will be run once the DB is initialized. Ownership is not
 // transferred, but the caller may save the pointer, which will remain valid for
 // the lifetime of the ResourceContext.
-// Should be called only on the IO thread.
+// Must be called only on the IO thread.
 net::NSSCertDatabase* GetNSSCertDatabaseForResourceContext(
     content::ResourceContext* context,
     const base::Callback<void(net::NSSCertDatabase*)>& callback)
     WARN_UNUSED_RESULT;
 
+#if defined(OS_CHROMEOS)
+// Enables the system key slot in the NSSCertDatabase for the user associated
+// with |context|.
+// Must be called only on the IO thread.
+void EnableNSSSystemKeySlotForResourceContext(
+    content::ResourceContext* context);
+#endif
+
 // 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