#include "extensions/common/api/commands/commands_handler.h"
#include <memory>
#include <utility>
#include <vector>
#include "base/strings/string_number_conversions.h"
#include "base/strings/utf_string_conversions.h"
#include "base/values.h"
#include "extensions/common/command.h"
#include "extensions/common/error_utils.h"
#include "extensions/common/manifest_constants.h"
#include "extensions/common/manifest_handlers/permissions_parser.h"
namespace extensions {
keys;
namespace {
const int kMaxCommandsWithKeybindingPerExtension = …;
}
CommandsInfo::CommandsInfo() = default;
CommandsInfo::~CommandsInfo() = default;
const Command* CommandsInfo::GetBrowserActionCommand(
const Extension* extension) { … }
const Command* CommandsInfo::GetPageActionCommand(const Extension* extension) { … }
const Command* CommandsInfo::GetActionCommand(const Extension* extension) { … }
const CommandMap* CommandsInfo::GetNamedCommands(const Extension* extension) { … }
CommandsHandler::CommandsHandler() = default;
CommandsHandler::~CommandsHandler() = default;
bool CommandsHandler::Parse(Extension* extension, std::u16string* error) { … }
bool CommandsHandler::AlwaysParseForType(Manifest::Type type) const { … }
void CommandsHandler::MaybeSetActionDefault(const Extension* extension,
CommandsInfo* info) { … }
base::span<const char* const> CommandsHandler::Keys() const { … }
}