#include "components/web_package/signed_web_bundles/attribute_map_parser.h"
#include "base/containers/contains.h"
#include "base/containers/extend.h"
#include "base/functional/overloaded.h"
#include "base/strings/stringprintf.h"
#include "base/types/expected_macros.h"
#include "components/web_package/input_reader.h"
namespace web_package {
AttributeMapParser::AttributeMapParser(mojom::BundleDataSource& data_source,
AttributeMapParsedCallback callback)
: … { … }
AttributeMapParser::~AttributeMapParser() = default;
void AttributeMapParser::Parse(uint64_t offset_in_stream) { … }
void AttributeMapParser::ReadAttributesMapHeader(
const std::optional<BinaryData>& data) { … }
void AttributeMapParser::ReadNextAttributeEntry() { … }
void AttributeMapParser::ReadAttributeNameCborHeader(
const std::optional<BinaryData>& data) { … }
void AttributeMapParser::ReadAttributeName(
uint64_t attribute_name_length,
const std::optional<BinaryData>& data) { … }
void AttributeMapParser::ReadAttributeValueCborHeader(
std::string attribute_name,
const std::optional<BinaryData>& data) { … }
void AttributeMapParser::ReadStringAttributeValue(
std::string attribute_name,
StringType string_type,
const std::optional<BinaryData>& data) { … }
}