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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_NET_NSS_CONTEXT_H_
6 #define CHROME_BROWSER_NET_NSS_CONTEXT_H_
7
8 #include <string>
9
10 #include "base/callback.h"
11 #include "crypto/scoped_nss_types.h"
12
13 namespace content {
14 class ResourceContext;
15 } // namespace content
16
17 // Runs |callback| with the private slot handle when the private slot is loaded.
18 // If the slot is already loaded, the |callback| will be run synchronously.
19 // Should be called only on the IO thread.
20 void OnPrivateNSSKeySlotForResourceContextReady(
21 content::ResourceContext* context,
22 const base::Callback<void(crypto::ScopedPK11Slot)>& callback);
23
24 // Runs |callback| with the public and private slot handles when the slots are
25 // loaded. If the slots are already loaded, the |callback| will be run
26 // synchronously. Should be called only on the IO thread.
27 void OnNSSKeySlotsForResourceContextReady(
28 content::ResourceContext* context,
29 const base::Callback<
30 void(crypto::ScopedPK11Slot, crypto::ScopedPK11Slot)>& callback);
31
32 #endif // CHROME_BROWSER_NET_NSS_CONTEXT_H_
OLDNEW
« 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