#ifndef EXTENSIONS_COMMON_API_RUNTIME_H__
#define EXTENSIONS_COMMON_API_RUNTIME_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 runtime {
enum class PlatformOs { … };
const char* ToString(PlatformOs as_enum);
PlatformOs ParsePlatformOs(std::string_view as_string);
std::u16string GetPlatformOsParseError(std::string_view as_string);
enum class PlatformArch { … };
const char* ToString(PlatformArch as_enum);
PlatformArch ParsePlatformArch(std::string_view as_string);
std::u16string GetPlatformArchParseError(std::string_view as_string);
enum class PlatformNaclArch { … };
const char* ToString(PlatformNaclArch as_enum);
PlatformNaclArch ParsePlatformNaclArch(std::string_view as_string);
std::u16string GetPlatformNaclArchParseError(std::string_view as_string);
struct PlatformInfo { … };
enum class RequestUpdateCheckStatus { … };
const char* ToString(RequestUpdateCheckStatus as_enum);
RequestUpdateCheckStatus ParseRequestUpdateCheckStatus(std::string_view as_string);
std::u16string GetRequestUpdateCheckStatusParseError(std::string_view as_string);
enum class OnInstalledReason { … };
const char* ToString(OnInstalledReason as_enum);
OnInstalledReason ParseOnInstalledReason(std::string_view as_string);
std::u16string GetOnInstalledReasonParseError(std::string_view as_string);
enum class OnRestartRequiredReason { … };
const char* ToString(OnRestartRequiredReason as_enum);
OnRestartRequiredReason ParseOnRestartRequiredReason(std::string_view as_string);
std::u16string GetOnRestartRequiredReasonParseError(std::string_view as_string);
enum class ContextType { … };
const char* ToString(ContextType as_enum);
ContextType ParseContextType(std::string_view as_string);
std::u16string GetContextTypeParseError(std::string_view as_string);
struct ExtensionContext { … };
struct ContextFilter { … };
namespace GetBackgroundPage {
namespace Results {
struct BackgroundPage { … };
base::Value::List Create(const BackgroundPage& background_page);
}
}
namespace OpenOptionsPage {
namespace Results {
base::Value::List Create();
}
}
namespace SetUninstallURL {
struct Params { … };
namespace Results {
base::Value::List Create();
}
}
namespace Reload {
}
namespace RequestUpdateCheck {
namespace Results {
struct Result { … };
base::Value::List Create(const Result& result);
}
}
namespace Restart {
}
namespace RestartAfterDelay {
struct Params { … };
namespace Results {
base::Value::List Create();
}
}
namespace GetPlatformInfo {
namespace Results {
base::Value::List Create(const PlatformInfo& platform_info);
}
}
namespace GetPackageDirectoryEntry {
namespace Results {
struct DirectoryEntry { … };
base::Value::List Create(const DirectoryEntry& directory_entry);
}
}
namespace GetContexts {
struct Params { … };
namespace Results {
base::Value::List Create(const std::vector<ExtensionContext>& contexts);
}
}
namespace OnStartup {
extern const char kEventName[];
base::Value::List Create();
}
namespace OnInstalled {
extern const char kEventName[];
struct Details { … };
base::Value::List Create(const Details& details);
}
namespace OnSuspend {
extern const char kEventName[];
base::Value::List Create();
}
namespace OnSuspendCanceled {
extern const char kEventName[];
base::Value::List Create();
}
namespace OnUpdateAvailable {
extern const char kEventName[];
struct Details { … };
base::Value::List Create(const Details& details);
}
namespace OnBrowserUpdateAvailable {
extern const char kEventName[];
base::Value::List Create();
}
namespace OnRestartRequired {
extern const char kEventName[];
base::Value::List Create(const OnRestartRequiredReason& reason);
}
}
}
}
#endif