blob: 2ca77b472ceed3eb62632a22fef0b712fce24b95 [file] [log] [blame]
// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_UTIL_WIN_H_
#define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_UTIL_WIN_H_
#include "ui/gfx/native_widget_types.h"
namespace password_manager_util_win {
// Attempts to (re-)authenticate the user of the OS account. Returns true if
// the user was successfully authenticated, or if authentication was not
// possible. Populates the user facing prompt with `password_prompt` message.
bool AuthenticateUser(gfx::NativeWindow window,
const std::u16string& password_prompt);
// Returns true if we can authenticate with screen lock, false otherwise. If we
// can not retrieve a username for the device, we will treat that as being
// unable to authenticate with device unlock.
bool CanAuthenticateWithScreenLock();
} // namespace password_manager_util_win
#endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_UTIL_WIN_H_