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

Unified Diff: chrome/browser/ui/crypto_module_password_dialog.h

Issue 61643007: Update keygen to use correct NSS slot on ChromeOS multiprofile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: jam review changes Created 7 years 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 | « chrome/browser/ui/crypto_module_delegate_nss.cc ('k') | chrome/browser/ui/crypto_module_password_dialog.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/crypto_module_password_dialog.h
diff --git a/chrome/browser/ui/crypto_module_password_dialog.h b/chrome/browser/ui/crypto_module_password_dialog.h
index 0f64caf4073e97d593b4123484d08cde32a1a9c3..16a9691c7076fc73ecdaed46ad3c5d049cc94ec9 100644
--- a/chrome/browser/ui/crypto_module_password_dialog.h
+++ b/chrome/browser/ui/crypto_module_password_dialog.h
@@ -6,22 +6,10 @@
#define CHROME_BROWSER_UI_CRYPTO_MODULE_PASSWORD_DIALOG_H_
#include <string>
-#include <vector>
#include "base/callback.h"
-#include "base/memory/ref_counted.h"
#include "ui/gfx/native_widget_types.h"
-namespace crypto {
-class CryptoModuleBlockingPasswordDelegate;
-}
-
-namespace net {
-class CryptoModule;
-typedef std::vector<scoped_refptr<CryptoModule> > CryptoModuleList;
-class X509Certificate;
-}
-
namespace chrome {
// An enum to describe the reason for the password request.
@@ -34,7 +22,7 @@ enum CryptoModulePasswordReason {
kCryptoModulePasswordCertExport,
};
-typedef base::Callback<void(const char*)> CryptoModulePasswordCallback;
+typedef base::Callback<void(const std::string&)> CryptoModulePasswordCallback;
// Display a dialog, prompting the user to authenticate to unlock
// |module|. |reason| describes the purpose of the authentication and
@@ -48,30 +36,6 @@ void ShowCryptoModulePasswordDialog(
gfx::NativeWindow parent,
const CryptoModulePasswordCallback& callback);
-// Returns a CryptoModuleBlockingPasswordDelegate to open a dialog and block
-// until returning. Should only be used on a worker thread.
-crypto::CryptoModuleBlockingPasswordDelegate*
- NewCryptoModuleBlockingDialogDelegate(CryptoModulePasswordReason reason,
- const std::string& server);
-
-// Asynchronously unlock |modules|, if necessary. |callback| is called when
-// done (regardless if any modules were successfully unlocked or not). Should
-// only be called on UI thread.
-void UnlockSlotsIfNecessary(const net::CryptoModuleList& modules,
- CryptoModulePasswordReason reason,
- const std::string& server,
- gfx::NativeWindow parent,
- const base::Closure& callback);
-
-// Asynchronously unlock the |cert|'s module, if necessary. |callback| is
-// called when done (regardless if module was successfully unlocked or not).
-// Should only be called on UI thread.
-void UnlockCertSlotIfNecessary(net::X509Certificate* cert,
- CryptoModulePasswordReason reason,
- const std::string& server,
- gfx::NativeWindow parent,
- const base::Closure& callback);
-
} // namespace chrome
#endif // CHROME_BROWSER_UI_CRYPTO_MODULE_PASSWORD_DIALOG_H_
« no previous file with comments | « chrome/browser/ui/crypto_module_delegate_nss.cc ('k') | chrome/browser/ui/crypto_module_password_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698