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

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

Issue 53763003: Initialize per-ChromeOS-user NSS slots and provide the functions to access them. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync to r235279 Created 7 years, 1 month 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 | « no previous file | chrome/browser/net/nss_context.cc » ('j') | chrome/browser/profiles/profile_io_data.cc » ('J')
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
new file mode 100644
index 0000000000000000000000000000000000000000..af6a5de996f94ab14ce908289788f47e33d6a3d3
--- /dev/null
+++ b/chrome/browser/net/nss_context.h
@@ -0,0 +1,32 @@
+// Copyright (c) 2013 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_NET_NSS_CONTEXT_H_
+#define CHROME_BROWSER_NET_NSS_CONTEXT_H_
+
+#include <string>
+
+#include "base/callback.h"
+#include "crypto/scoped_nss_types.h"
+
+namespace content {
+class ResourceContext;
+} // namespace content
+
+// Runs |callback| with the private slot handle when the private slot is loaded.
+// If the slot is already loaded, the |callback| will be run synchronously.
+// Should be called only on the IO thread.
+void OnPrivateNSSKeySlotForResourceContextReady(
+ content::ResourceContext* context,
+ const base::Callback<void(crypto::ScopedPK11Slot)>& callback);
+
+// Runs |callback| with the public and private slot handles when the slots are
+// loaded. If the slots are already loaded, the |callback| will be run
+// synchronously. Should be called only on the IO thread.
+void OnNSSKeySlotsForResourceContextReady(
+ content::ResourceContext* context,
+ const base::Callback<
+ void(crypto::ScopedPK11Slot, crypto::ScopedPK11Slot)>& callback);
+
+#endif // CHROME_BROWSER_NET_NSS_CONTEXT_H_
« no previous file with comments | « no previous file | chrome/browser/net/nss_context.cc » ('j') | chrome/browser/profiles/profile_io_data.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698