#include "chrome/common/extensions/api/side_panel/side_panel_info.h"
#include "base/files/file_util.h"
#include "chrome/common/extensions/api/side_panel.h"
#include "extensions/common/manifest.h"
#include "extensions/common/manifest_constants.h"
namespace extensions {
keys;
errors;
SidePanelManifestKeys;
namespace {
const SidePanelInfo* GetResourcesInfo(const Extension* extension) { … }
std::unique_ptr<SidePanelInfo> ParseFromDictionary(const Extension& extension,
std::u16string* error) { … }
bool ExtensionResourceExists(const Extension* extension,
const std::string& path) { … }
}
SidePanelInfo::SidePanelInfo() = default;
SidePanelInfo::~SidePanelInfo() = default;
bool SidePanelInfo::HasSidePanel(const Extension* extension) { … }
std::string SidePanelInfo::GetDefaultPath(const Extension* extension) { … }
SidePanelManifestHandler::SidePanelManifestHandler() = default;
SidePanelManifestHandler::~SidePanelManifestHandler() = default;
bool SidePanelManifestHandler::Parse(Extension* extension,
std::u16string* error) { … }
base::span<const char* const> SidePanelManifestHandler::Keys() const { … }
bool SidePanelManifestHandler::Validate(
const Extension* extension,
std::string* error,
std::vector<InstallWarning>* warnings) const { … }
}