OLD | NEW |
(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_ |
OLD | NEW |