#include "extensions/common/api/extension_action/action_info.h"
#include <memory>
#include "base/strings/utf_string_conversions.h"
#include "base/values.h"
#include "extensions/common/constants.h"
#include "extensions/common/error_utils.h"
#include "extensions/common/extension.h"
#include "extensions/common/manifest_constants.h"
#include "extensions/common/manifest_handler_helpers.h"
namespace extensions {
errors;
keys;
namespace {
constexpr char kEnabled[] = …;
constexpr char kDisabled[] = …;
struct ActionInfoData : public Extension::ManifestData { … };
ActionInfoData::ActionInfoData(std::unique_ptr<ActionInfo> info)
: … { … }
ActionInfoData::~ActionInfoData() = default;
}
ActionInfo::ActionInfo(Type type) : … { … }
ActionInfo::ActionInfo(const ActionInfo& other) = default;
ActionInfo::~ActionInfo() = default;
std::unique_ptr<ActionInfo> ActionInfo::Load(
const Extension* extension,
Type type,
const base::Value::Dict& dict,
std::vector<InstallWarning>* install_warnings,
std::u16string* error) { … }
const ActionInfo* ActionInfo::GetExtensionActionInfo(
const Extension* extension) { … }
void ActionInfo::SetExtensionActionInfo(Extension* extension,
std::unique_ptr<ActionInfo> info) { … }
const char* ActionInfo::GetManifestKeyForActionType(ActionInfo::Type type) { … }
}