Chromium Code Reviews| 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_UI_CRYPTO_MODULE_DELEGATE_NSS_H_ | |
| 6 #define CHROME_BROWSER_UI_CRYPTO_MODULE_DELEGATE_NSS_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "chrome/browser/ui/crypto_module_password_dialog.h" | |
| 11 | |
| 12 namespace content { | |
| 13 class ResourceContext; | |
| 14 } | |
| 15 | |
| 16 namespace crypto { | |
| 17 class NSSCryptoModuleDelegate; | |
| 18 } | |
| 19 | |
| 20 namespace chrome { | |
| 21 | |
| 22 // Creates a NSSCryptoModuleDelegate. The Initalize method must be called on | |
| 23 // the IO thread, and |context| must still be valid at the time Initalize is | |
| 24 // called. The RequestPassword method must be called on a worker thread. | |
| 25 crypto::NSSCryptoModuleDelegate* NewNSSCryptoModuleDelegate( | |
|
Ryan Sleevi
2013/11/22 00:03:30
naming nit: Don't we normally call these factory f
mattm
2013/11/22 00:30:31
Done.
| |
| 26 content::ResourceContext* context, | |
| 27 CryptoModulePasswordReason reason, | |
| 28 const std::string& server); | |
| 29 | |
| 30 } // namespace chrome | |
| 31 | |
| 32 #endif // CHROME_BROWSER_UI_CRYPTO_MODULE_DELEGATE_NSS_H_ | |
| OLD | NEW |