#ifndef CHROME_BROWSER_UI_CRYPTO_MODULE_PASSWORD_DIALOG_H_
#define CHROME_BROWSER_UI_CRYPTO_MODULE_PASSWORD_DIALOG_H_
#include <string>
#include "base/callback.h"
#include "ui/gfx/native_widget_types.h"
namespace chrome {
enum CryptoModulePasswordReason {
kCryptoModulePasswordKeygen,
kCryptoModulePasswordCertEnrollment,
kCryptoModulePasswordClientAuth,
kCryptoModulePasswordListCerts,
kCryptoModulePasswordCertImport,
kCryptoModulePasswordCertExport,
};
typedef base::Callback<void(const std::string&)> CryptoModulePasswordCallback;
void ShowCryptoModulePasswordDialog(
const std::string& module_name,
bool retry,
CryptoModulePasswordReason reason,
const std::string& hostname,
gfx::NativeWindow parent,
const CryptoModulePasswordCallback& callback);
}
#endif