#include "chrome/browser/ui/crypto_module_password_dialog_nss.h"
#include <pk11pub.h>
#include <stddef.h>
#include "base/check_op.h"
#include "base/functional/bind.h"
#include "content/public/browser/browser_thread.h"
BrowserThread;
namespace {
bool ShouldShowDialog(PK11SlotInfo* slot) { … }
class SlotUnlocker { … };
SlotUnlocker::SlotUnlocker(std::vector<crypto::ScopedPK11Slot> modules,
CryptoModulePasswordReason reason,
const net::HostPortPair& server,
gfx::NativeWindow parent,
base::OnceClosure callback)
: … { … }
void SlotUnlocker::Start() { … }
void SlotUnlocker::GotPassword(const std::string& password) { … }
void SlotUnlocker::Done() { … }
}
namespace chrome {
void UnlockSlotsIfNecessary(std::vector<crypto::ScopedPK11Slot> modules,
CryptoModulePasswordReason reason,
const net::HostPortPair& server,
gfx::NativeWindow parent,
base::OnceClosure callback) { … }
void UnlockCertSlotIfNecessary(CERTCertificate* cert,
CryptoModulePasswordReason reason,
const net::HostPortPair& server,
gfx::NativeWindow parent,
base::OnceClosure callback) { … }
}