#ifndef CHROME_COMMON_EXTENSIONS_API_PASSWORDS_PRIVATE_H__
#define CHROME_COMMON_EXTENSIONS_API_PASSWORDS_PRIVATE_H__
#include <stdint.h>
#include <map>
#include <memory>
#include <optional>
#include <string>
#include <vector>
#include "base/values.h"
#include <string_view>
namespace extensions {
namespace api {
namespace passwords_private {
enum class PlaintextReason { … };
const char* ToString(PlaintextReason as_enum);
PlaintextReason ParsePlaintextReason(std::string_view as_string);
std::u16string GetPlaintextReasonParseError(std::string_view as_string);
enum class ExportProgressStatus { … };
const char* ToString(ExportProgressStatus as_enum);
ExportProgressStatus ParseExportProgressStatus(std::string_view as_string);
std::u16string GetExportProgressStatusParseError(std::string_view as_string);
enum class CompromiseType { … };
const char* ToString(CompromiseType as_enum);
CompromiseType ParseCompromiseType(std::string_view as_string);
std::u16string GetCompromiseTypeParseError(std::string_view as_string);
enum class PasswordStoreSet { … };
const char* ToString(PasswordStoreSet as_enum);
PasswordStoreSet ParsePasswordStoreSet(std::string_view as_string);
std::u16string GetPasswordStoreSetParseError(std::string_view as_string);
enum class PasswordCheckState { … };
const char* ToString(PasswordCheckState as_enum);
PasswordCheckState ParsePasswordCheckState(std::string_view as_string);
std::u16string GetPasswordCheckStateParseError(std::string_view as_string);
enum class ImportResultsStatus { … };
const char* ToString(ImportResultsStatus as_enum);
ImportResultsStatus ParseImportResultsStatus(std::string_view as_string);
std::u16string GetImportResultsStatusParseError(std::string_view as_string);
enum class ImportEntryStatus { … };
const char* ToString(ImportEntryStatus as_enum);
ImportEntryStatus ParseImportEntryStatus(std::string_view as_string);
std::u16string GetImportEntryStatusParseError(std::string_view as_string);
enum class FamilyFetchStatus { … };
const char* ToString(FamilyFetchStatus as_enum);
FamilyFetchStatus ParseFamilyFetchStatus(std::string_view as_string);
std::u16string GetFamilyFetchStatusParseError(std::string_view as_string);
struct PublicKey { … };
struct RecipientInfo { … };
struct FamilyFetchResults { … };
struct ImportEntry { … };
struct ImportResults { … };
struct UrlCollection { … };
struct CompromisedInfo { … };
struct DomainInfo { … };
struct PasswordUiEntry { … };
struct CredentialGroup { … };
struct ExceptionEntry { … };
struct PasswordExportProgress { … };
struct PasswordCheckStatus { … };
struct AddPasswordOptions { … };
struct PasswordUiEntryList { … };
namespace RecordPasswordsPageAccessInSettings {
}
namespace ChangeCredential {
struct Params { … };
namespace Results {
base::Value::List Create();
}
}
namespace RemoveCredential {
struct Params { … };
}
namespace RemovePasswordException {
struct Params { … };
}
namespace UndoRemoveSavedPasswordOrException {
}
namespace RequestPlaintextPassword {
struct Params { … };
namespace Results {
base::Value::List Create(const std::string& password);
}
}
namespace RequestCredentialsDetails {
struct Params { … };
namespace Results {
base::Value::List Create(const std::vector<PasswordUiEntry>& entries);
}
}
namespace GetSavedPasswordList {
namespace Results {
base::Value::List Create(const std::vector<PasswordUiEntry>& entries);
}
}
namespace GetCredentialGroups {
namespace Results {
base::Value::List Create(const std::vector<CredentialGroup>& entries);
}
}
namespace GetPasswordExceptionList {
namespace Results {
base::Value::List Create(const std::vector<ExceptionEntry>& exceptions);
}
}
namespace MovePasswordsToAccount {
struct Params { … };
}
namespace FetchFamilyMembers {
namespace Results {
base::Value::List Create(const FamilyFetchResults& results);
}
}
namespace SharePassword {
struct Params { … };
namespace Results {
base::Value::List Create();
}
}
namespace ImportPasswords {
struct Params { … };
namespace Results {
base::Value::List Create(const ImportResults& results);
}
}
namespace ContinueImport {
struct Params { … };
namespace Results {
base::Value::List Create(const ImportResults& results);
}
}
namespace ResetImporter {
struct Params { … };
namespace Results {
base::Value::List Create();
}
}
namespace ExportPasswords {
namespace Results {
base::Value::List Create();
}
}
namespace RequestExportProgressStatus {
namespace Results {
base::Value::List Create(const ExportProgressStatus& status);
}
}
namespace IsOptedInForAccountStorage {
namespace Results {
base::Value::List Create(bool opted_in);
}
}
namespace OptInForAccountStorage {
struct Params { … };
}
namespace GetInsecureCredentials {
namespace Results {
base::Value::List Create(const std::vector<PasswordUiEntry>& entries);
}
}
namespace GetCredentialsWithReusedPassword {
namespace Results {
base::Value::List Create(const std::vector<PasswordUiEntryList>& entries);
}
}
namespace MuteInsecureCredential {
struct Params { … };
namespace Results {
base::Value::List Create();
}
}
namespace UnmuteInsecureCredential {
struct Params { … };
namespace Results {
base::Value::List Create();
}
}
namespace StartPasswordCheck {
namespace Results {
base::Value::List Create();
}
}
namespace GetPasswordCheckStatus {
namespace Results {
base::Value::List Create(const PasswordCheckStatus& status);
}
}
namespace IsAccountStoreDefault {
namespace Results {
base::Value::List Create(bool is_default);
}
}
namespace GetUrlCollection {
struct Params { … };
namespace Results {
base::Value::List Create(const UrlCollection& url_collection);
}
}
namespace AddPassword {
struct Params { … };
namespace Results {
base::Value::List Create();
}
}
namespace ExtendAuthValidity {
namespace Results {
base::Value::List Create();
}
}
namespace SwitchBiometricAuthBeforeFillingState {
namespace Results {
base::Value::List Create(bool result);
}
}
namespace ShowAddShortcutDialog {
}
namespace ShowExportedFileInShell {
struct Params { … };
}
namespace ChangePasswordManagerPin {
namespace Results {
base::Value::List Create(bool success);
}
}
namespace IsPasswordManagerPinAvailable {
namespace Results {
base::Value::List Create(bool available);
}
}
namespace DisconnectCloudAuthenticator {
namespace Results {
base::Value::List Create(bool success);
}
}
namespace IsConnectedToCloudAuthenticator {
namespace Results {
base::Value::List Create(bool connected);
}
}
namespace DeleteAllPasswordManagerData {
namespace Results {
base::Value::List Create(bool success);
}
}
namespace OnSavedPasswordsListChanged {
extern const char kEventName[];
base::Value::List Create(const std::vector<PasswordUiEntry>& entries);
}
namespace OnPasswordExceptionsListChanged {
extern const char kEventName[];
base::Value::List Create(const std::vector<ExceptionEntry>& exceptions);
}
namespace OnPasswordsFileExportProgress {
extern const char kEventName[];
base::Value::List Create(const PasswordExportProgress& status);
}
namespace OnAccountStorageOptInStateChanged {
extern const char kEventName[];
base::Value::List Create(bool opted_in);
}
namespace OnInsecureCredentialsChanged {
extern const char kEventName[];
base::Value::List Create(const std::vector<PasswordUiEntry>& insecure_credentials);
}
namespace OnPasswordCheckStatusChanged {
extern const char kEventName[];
base::Value::List Create(const PasswordCheckStatus& status);
}
namespace OnPasswordManagerAuthTimeout {
extern const char kEventName[];
base::Value::List Create();
}
}
}
}
#endif