chromium/out/Default/gen/chrome/common/extensions/api/developer_private.h

// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// GENERATED FROM THE API DEFINITION IN
//   chrome/common/extensions/api/developer_private.idl
// by tools/json_schema_compiler.
// DO NOT EDIT.

#ifndef CHROME_COMMON_EXTENSIONS_API_DEVELOPER_PRIVATE_H__
#define CHROME_COMMON_EXTENSIONS_API_DEVELOPER_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 developer_private {

//
// Types
//

// DEPRECATED: Prefer ExtensionType.
enum class ItemType {};


const char* ToString(ItemType as_enum);
ItemType ParseItemType(std::string_view as_string);
std::u16string GetItemTypeParseError(std::string_view as_string);

struct ItemInspectView {};

struct InspectOptions {};

struct InstallWarning {};

enum class ExtensionType {};


const char* ToString(ExtensionType as_enum);
ExtensionType ParseExtensionType(std::string_view as_string);
std::u16string GetExtensionTypeParseError(std::string_view as_string);

enum class Location {};


const char* ToString(Location as_enum);
Location ParseLocation(std::string_view as_string);
std::u16string GetLocationParseError(std::string_view as_string);

enum class ViewType {};


const char* ToString(ViewType as_enum);
ViewType ParseViewType(std::string_view as_string);
std::u16string GetViewTypeParseError(std::string_view as_string);

enum class ErrorType {};


const char* ToString(ErrorType as_enum);
ErrorType ParseErrorType(std::string_view as_string);
std::u16string GetErrorTypeParseError(std::string_view as_string);

enum class ErrorLevel {};


const char* ToString(ErrorLevel as_enum);
ErrorLevel ParseErrorLevel(std::string_view as_string);
std::u16string GetErrorLevelParseError(std::string_view as_string);

enum class ExtensionState {};


const char* ToString(ExtensionState as_enum);
ExtensionState ParseExtensionState(std::string_view as_string);
std::u16string GetExtensionStateParseError(std::string_view as_string);

enum class CommandScope {};


const char* ToString(CommandScope as_enum);
CommandScope ParseCommandScope(std::string_view as_string);
std::u16string GetCommandScopeParseError(std::string_view as_string);

enum class SafetyCheckWarningReason {};


const char* ToString(SafetyCheckWarningReason as_enum);
SafetyCheckWarningReason ParseSafetyCheckWarningReason(std::string_view as_string);
std::u16string GetSafetyCheckWarningReasonParseError(std::string_view as_string);

struct AccessModifier {};

struct StackFrame {};

struct ManifestError {};

struct RuntimeError {};

struct DisableReasons {};

struct OptionsPage {};

struct HomePage {};

struct ExtensionView {};

enum class HostAccess {};


const char* ToString(HostAccess as_enum);
HostAccess ParseHostAccess(std::string_view as_string);
std::u16string GetHostAccessParseError(std::string_view as_string);

struct SafetyCheckStrings {};

struct ControlledInfo {};

struct Command {};

struct DependentExtension {};

struct Permission {};

struct SiteControl {};

struct RuntimeHostPermissions {};

struct Permissions {};

struct ExtensionInfo {};

struct ProfileInfo {};

struct ItemInfo {};

struct GetExtensionsInfoOptions {};

struct ExtensionConfigurationUpdate {};

struct ProfileConfigurationUpdate {};

struct ExtensionCommandUpdate {};

struct ReloadOptions {};

struct LoadUnpackedOptions {};

// Describes which set of sites a given url/string is associated with. Note that
// a site can belong to multiple sets at the same time.
enum class SiteSet {};


const char* ToString(SiteSet as_enum);
SiteSet ParseSiteSet(std::string_view as_string);
std::u16string GetSiteSetParseError(std::string_view as_string);

struct UserSiteSettingsOptions {};

struct UserSiteSettings {};

struct SiteInfo {};

struct SiteGroup {};

struct MatchingExtensionInfo {};

struct ExtensionSiteAccessUpdate {};

enum class PackStatus {};


const char* ToString(PackStatus as_enum);
PackStatus ParsePackStatus(std::string_view as_string);
std::u16string GetPackStatusParseError(std::string_view as_string);

enum class FileType {};


const char* ToString(FileType as_enum);
FileType ParseFileType(std::string_view as_string);
std::u16string GetFileTypeParseError(std::string_view as_string);

enum class SelectType {};


const char* ToString(SelectType as_enum);
SelectType ParseSelectType(std::string_view as_string);
std::u16string GetSelectTypeParseError(std::string_view as_string);

enum class EventType {};


const char* ToString(EventType as_enum);
EventType ParseEventType(std::string_view as_string);
std::u16string GetEventTypeParseError(std::string_view as_string);

struct PackDirectoryResponse {};

struct ProjectInfo {};

struct EventData {};

struct ErrorFileSource {};

struct LoadError {};

struct RequestFileSourceProperties {};

struct RequestFileSourceResponse {};

struct OpenDevToolsProperties {};

struct DeleteExtensionErrorsProperties {};


//
// Functions
//

namespace AutoUpdate {

namespace Results {

base::Value::List Create();
}  // namespace Results

}  // namespace AutoUpdate

namespace GetExtensionsInfo {

struct Params {};

namespace Results {

base::Value::List Create(const std::vector<ExtensionInfo>& result);
}  // namespace Results

}  // namespace GetExtensionsInfo

namespace GetExtensionInfo {

struct Params {};

namespace Results {

base::Value::List Create(const ExtensionInfo& result);
}  // namespace Results

}  // namespace GetExtensionInfo

namespace GetExtensionSize {

struct Params {};

namespace Results {

base::Value::List Create(const std::string& string);
}  // namespace Results

}  // namespace GetExtensionSize

namespace GetProfileConfiguration {

namespace Results {

base::Value::List Create(const ProfileInfo& info);
}  // namespace Results

}  // namespace GetProfileConfiguration

namespace UpdateProfileConfiguration {

struct Params {};

namespace Results {

base::Value::List Create();
}  // namespace Results

}  // namespace UpdateProfileConfiguration

namespace Reload {

struct Params {};

namespace Results {

base::Value::List Create(const LoadError& error);
}  // namespace Results

}  // namespace Reload

namespace UpdateExtensionConfiguration {

struct Params {};

namespace Results {

base::Value::List Create();
}  // namespace Results

}  // namespace UpdateExtensionConfiguration

namespace LoadUnpacked {

struct Params {};

namespace Results {

base::Value::List Create(const LoadError& error);
}  // namespace Results

}  // namespace LoadUnpacked

namespace InstallDroppedFile {

namespace Results {

base::Value::List Create();
}  // namespace Results

}  // namespace InstallDroppedFile

namespace NotifyDragInstallInProgress {

}  // namespace NotifyDragInstallInProgress

namespace LoadDirectory {

struct Params {};

namespace Results {

base::Value::List Create(const std::string& string);
}  // namespace Results

}  // namespace LoadDirectory

namespace ChoosePath {

struct Params {};

namespace Results {

base::Value::List Create(const std::string& string);
}  // namespace Results

}  // namespace ChoosePath

namespace PackDirectory {

struct Params {};

namespace Results {

base::Value::List Create(const PackDirectoryResponse& response);
}  // namespace Results

}  // namespace PackDirectory

namespace IsProfileManaged {

namespace Results {

base::Value::List Create(bool result);
}  // namespace Results

}  // namespace IsProfileManaged

namespace RequestFileSource {

struct Params {};

namespace Results {

base::Value::List Create(const RequestFileSourceResponse& response);
}  // namespace Results

}  // namespace RequestFileSource

namespace OpenDevTools {

struct Params {};

namespace Results {

base::Value::List Create();
}  // namespace Results

}  // namespace OpenDevTools

namespace DeleteExtensionErrors {

struct Params {};

namespace Results {

base::Value::List Create();
}  // namespace Results

}  // namespace DeleteExtensionErrors

namespace RepairExtension {

struct Params {};

namespace Results {

base::Value::List Create();
}  // namespace Results

}  // namespace RepairExtension

namespace ShowOptions {

struct Params {};

namespace Results {

base::Value::List Create();
}  // namespace Results

}  // namespace ShowOptions

namespace ShowPath {

struct Params {};

namespace Results {

base::Value::List Create();
}  // namespace Results

}  // namespace ShowPath

namespace SetShortcutHandlingSuspended {

struct Params {};

namespace Results {

base::Value::List Create();
}  // namespace Results

}  // namespace SetShortcutHandlingSuspended

namespace UpdateExtensionCommand {

struct Params {};

namespace Results {

base::Value::List Create();
}  // namespace Results

}  // namespace UpdateExtensionCommand

namespace AddHostPermission {

struct Params {};

namespace Results {

base::Value::List Create();
}  // namespace Results

}  // namespace AddHostPermission

namespace RemoveHostPermission {

struct Params {};

namespace Results {

base::Value::List Create();
}  // namespace Results

}  // namespace RemoveHostPermission

namespace GetUserSiteSettings {

namespace Results {

base::Value::List Create(const UserSiteSettings& settings);
}  // namespace Results

}  // namespace GetUserSiteSettings

namespace AddUserSpecifiedSites {

struct Params {};

namespace Results {

base::Value::List Create();
}  // namespace Results

}  // namespace AddUserSpecifiedSites

namespace RemoveUserSpecifiedSites {

struct Params {};

namespace Results {

base::Value::List Create();
}  // namespace Results

}  // namespace RemoveUserSpecifiedSites

namespace GetUserAndExtensionSitesByEtld {

namespace Results {

base::Value::List Create(const std::vector<SiteGroup>& site_groups);
}  // namespace Results

}  // namespace GetUserAndExtensionSitesByEtld

namespace GetMatchingExtensionsForSite {

struct Params {};

namespace Results {

base::Value::List Create(const std::vector<MatchingExtensionInfo>& matching_extensions);
}  // namespace Results

}  // namespace GetMatchingExtensionsForSite

namespace UpdateSiteAccess {

struct Params {};

namespace Results {

base::Value::List Create();
}  // namespace Results

}  // namespace UpdateSiteAccess

namespace RemoveMultipleExtensions {

struct Params {};

namespace Results {

base::Value::List Create();
}  // namespace Results

}  // namespace RemoveMultipleExtensions

namespace DismissSafetyHubExtensionsMenuNotification {

}  // namespace DismissSafetyHubExtensionsMenuNotification

namespace DismissMv2DeprecationNoticeForExtension {

struct Params {};

}  // namespace DismissMv2DeprecationNoticeForExtension

//
// Events
//

namespace OnItemStateChanged {

extern const char kEventName[];  // "developerPrivate.onItemStateChanged"

base::Value::List Create(const EventData& response);
}  // namespace OnItemStateChanged

namespace OnProfileStateChanged {

extern const char kEventName[];  // "developerPrivate.onProfileStateChanged"

base::Value::List Create(const ProfileInfo& info);
}  // namespace OnProfileStateChanged

namespace OnUserSiteSettingsChanged {

extern const char kEventName[];  // "developerPrivate.onUserSiteSettingsChanged"

base::Value::List Create(const UserSiteSettings& settings);
}  // namespace OnUserSiteSettingsChanged

}  // namespace developer_private
}  // namespace api
}  // namespace extensions

#endif  // CHROME_COMMON_EXTENSIONS_API_DEVELOPER_PRIVATE_H__