#ifndef EXTENSIONS_COMMON_API_MANAGEMENT_H__
#define EXTENSIONS_COMMON_API_MANAGEMENT_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 management {
struct IconInfo { … };
enum class LaunchType { … };
const char* ToString(LaunchType as_enum);
LaunchType ParseLaunchType(std::string_view as_string);
std::u16string GetLaunchTypeParseError(std::string_view as_string);
enum class ExtensionDisabledReason { … };
const char* ToString(ExtensionDisabledReason as_enum);
ExtensionDisabledReason ParseExtensionDisabledReason(std::string_view as_string);
std::u16string GetExtensionDisabledReasonParseError(std::string_view as_string);
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 ExtensionInstallType { … };
const char* ToString(ExtensionInstallType as_enum);
ExtensionInstallType ParseExtensionInstallType(std::string_view as_string);
std::u16string GetExtensionInstallTypeParseError(std::string_view as_string);
struct ExtensionInfo { … };
struct UninstallOptions { … };
namespace GetAll {
namespace Results {
base::Value::List Create(const std::vector<ExtensionInfo>& result);
}
}
namespace Get {
struct Params { … };
namespace Results {
base::Value::List Create(const ExtensionInfo& result);
}
}
namespace GetSelf {
namespace Results {
base::Value::List Create(const ExtensionInfo& result);
}
}
namespace GetPermissionWarningsById {
struct Params { … };
namespace Results {
base::Value::List Create(const std::vector<std::string>& permission_warnings);
}
}
namespace GetPermissionWarningsByManifest {
struct Params { … };
namespace Results {
base::Value::List Create(const std::vector<std::string>& permission_warnings);
}
}
namespace SetEnabled {
struct Params { … };
namespace Results {
base::Value::List Create();
}
}
namespace Uninstall {
struct Params { … };
namespace Results {
base::Value::List Create();
}
}
namespace UninstallSelf {
struct Params { … };
namespace Results {
base::Value::List Create();
}
}
namespace LaunchApp {
struct Params { … };
namespace Results {
base::Value::List Create();
}
}
namespace CreateAppShortcut {
struct Params { … };
namespace Results {
base::Value::List Create();
}
}
namespace SetLaunchType {
struct Params { … };
namespace Results {
base::Value::List Create();
}
}
namespace GenerateAppForLink {
struct Params { … };
namespace Results {
base::Value::List Create(const ExtensionInfo& result);
}
}
namespace InstallReplacementWebApp {
namespace Results {
base::Value::List Create();
}
}
namespace OnInstalled {
extern const char kEventName[];
base::Value::List Create(const ExtensionInfo& info);
}
namespace OnUninstalled {
extern const char kEventName[];
base::Value::List Create(const std::string& id);
}
namespace OnEnabled {
extern const char kEventName[];
base::Value::List Create(const ExtensionInfo& info);
}
namespace OnDisabled {
extern const char kEventName[];
base::Value::List Create(const ExtensionInfo& info);
}
}
}
}
#endif