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

Unified Diff: chrome/browser/net/nss_context.h

Issue 18121007: *WIP* Store NSS slots per profile. Move keygen to chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more refactoring Created 7 years 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
« no previous file with comments | « chrome/browser/certificate_manager_model.cc ('k') | chrome/browser/net/nss_context_chromeos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/nss_context.h
diff --git a/chrome/browser/net/nss_context.h b/chrome/browser/net/nss_context.h
index 0735df2d2b17b69f1e0c9f493b0fb76a239372f0..162bd79bb8486151a8705901a40d9bac83370c95 100644
--- a/chrome/browser/net/nss_context.h
+++ b/chrome/browser/net/nss_context.h
@@ -11,6 +11,10 @@
#include "base/compiler_specific.h"
#include "crypto/scoped_nss_types.h"
+namespace net {
+class NSSCertDatabase;
+}
+
namespace content {
class ResourceContext;
} // namespace content
@@ -29,4 +33,11 @@ crypto::ScopedPK11Slot GetPrivateNSSKeySlotForResourceContext(
const base::Callback<void(crypto::ScopedPK11Slot)>& callback)
WARN_UNUSED_RESULT;
+// Get a NSSCertDatabase for the given |context|. Should be called only on the
+// IO thread.
+net::NSSCertDatabase* GetNSSCertDatabaseForResourceContext(
+ content::ResourceContext* context,
+ const base::Callback<void(net::NSSCertDatabase*)>& callback)
+ WARN_UNUSED_RESULT;
+
#endif // CHROME_BROWSER_NET_NSS_CONTEXT_H_
« no previous file with comments | « chrome/browser/certificate_manager_model.cc ('k') | chrome/browser/net/nss_context_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698