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

Side by Side Diff: crypto/nss_crypto_module_delegate.h

Issue 817653003: Update from https://crrev.com/309717 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 months 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
« no previous file with comments | « crypto/ec_signature_creator_impl.h ('k') | crypto/p224.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CRYPTO_NSS_CRYPTO_MODULE_DELEGATE_H_ 5 #ifndef CRYPTO_NSS_CRYPTO_MODULE_DELEGATE_H_
6 #define CRYPTO_NSS_CRYPTO_MODULE_DELEGATE_H_ 6 #define CRYPTO_NSS_CRYPTO_MODULE_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 24 matching lines...) Expand all
35 // user entered. 35 // user entered.
36 virtual std::string RequestPassword(const std::string& slot_name, bool retry, 36 virtual std::string RequestPassword(const std::string& slot_name, bool retry,
37 bool* cancelled) = 0; 37 bool* cancelled) = 0;
38 38
39 }; 39 };
40 40
41 // Extends CryptoModuleBlockingPasswordDelegate with the ability to return a 41 // Extends CryptoModuleBlockingPasswordDelegate with the ability to return a
42 // slot in which to act. (Eg, which slot to store a generated key in.) 42 // slot in which to act. (Eg, which slot to store a generated key in.)
43 class NSSCryptoModuleDelegate : public CryptoModuleBlockingPasswordDelegate { 43 class NSSCryptoModuleDelegate : public CryptoModuleBlockingPasswordDelegate {
44 public: 44 public:
45 virtual ~NSSCryptoModuleDelegate() {} 45 ~NSSCryptoModuleDelegate() override {}
46 46
47 // Get the slot to store the generated key. 47 // Get the slot to store the generated key.
48 virtual ScopedPK11Slot RequestSlot() = 0; 48 virtual ScopedPK11Slot RequestSlot() = 0;
49 }; 49 };
50 50
51 } // namespace crypto 51 } // namespace crypto
52 52
53 #endif // CRYPTO_NSS_CRYPTO_MODULE_DELEGATE_H_ 53 #endif // CRYPTO_NSS_CRYPTO_MODULE_DELEGATE_H_
OLDNEW
« no previous file with comments | « crypto/ec_signature_creator_impl.h ('k') | crypto/p224.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698