X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fchrome%2Fbrowser%2Fnet%2Fnss_context.h;h=8212ee14383be835be04d6482e098d3bd8b4604c;hb=4a1a0bdd01eef90b0826a0e761d3379d3715c10f;hp=feb178ca7c8a1de8e17a6fbb905f18d4603ff56b;hpb=ff3e2503a20db9193d323c1d19c38c68004dec4a;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/chrome/browser/net/nss_context.h b/src/chrome/browser/net/nss_context.h index feb178c..8212ee1 100644 --- a/src/chrome/browser/net/nss_context.h +++ b/src/chrome/browser/net/nss_context.h @@ -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& 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