chromium/extensions/common/api/extension_action/action_info.cc

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

#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[] =;

// The manifest data container for the ActionInfos for BrowserActions and
// PageActions.
struct ActionInfoData : public Extension::ManifestData {};

ActionInfoData::ActionInfoData(std::unique_ptr<ActionInfo> info)
    :{}

ActionInfoData::~ActionInfoData() = default;

}  // namespace

ActionInfo::ActionInfo(Type type) :{}

ActionInfo::ActionInfo(const ActionInfo& other) = default;

ActionInfo::~ActionInfo() = default;

// static
std::unique_ptr<ActionInfo> ActionInfo::Load(
    const Extension* extension,
    Type type,
    const base::Value::Dict& dict,
    std::vector<InstallWarning>* install_warnings,
    std::u16string* error) {}

// static
const ActionInfo* ActionInfo::GetExtensionActionInfo(
    const Extension* extension) {}

// static
void ActionInfo::SetExtensionActionInfo(Extension* extension,
                                        std::unique_ptr<ActionInfo> info) {}

// static
const char* ActionInfo::GetManifestKeyForActionType(ActionInfo::Type type) {}

}  // namespace extensions