#include "components/web_package/signed_web_bundles/signed_web_bundle_signature_stack.h"
#include "base/containers/span.h"
#include "base/containers/to_vector.h"
#include "base/functional/overloaded.h"
#include "base/ranges/algorithm.h"
#include "base/types/expected.h"
#include "components/web_package/mojom/web_bundle_parser.mojom.h"
#include "components/web_package/signed_web_bundles/signed_web_bundle_signature_stack_entry.h"
namespace web_package {
namespace {
SignedWebBundleSignatureStackEntry CreateSignatureEntry(
const mojom::BundleIntegrityBlockSignatureStackEntryPtr& entry) { … }
}
base::expected<SignedWebBundleSignatureStack, std::string>
SignedWebBundleSignatureStack::Create(
base::span<const SignedWebBundleSignatureStackEntry> entries) { … }
base::expected<SignedWebBundleSignatureStack, std::string>
SignedWebBundleSignatureStack::Create(
std::vector<mojom::BundleIntegrityBlockSignatureStackEntryPtr>&&
raw_entries) { … }
SignedWebBundleSignatureStack::SignedWebBundleSignatureStack(
std::vector<SignedWebBundleSignatureStackEntry> entries)
: … { … }
SignedWebBundleSignatureStack::SignedWebBundleSignatureStack(
const SignedWebBundleSignatureStack& other) = default;
SignedWebBundleSignatureStack& SignedWebBundleSignatureStack::operator=(
const SignedWebBundleSignatureStack& other) = default;
SignedWebBundleSignatureStack::~SignedWebBundleSignatureStack() = default;
bool SignedWebBundleSignatureStack::operator==(
const SignedWebBundleSignatureStack& other) const { … }
bool SignedWebBundleSignatureStack::operator!=(
const SignedWebBundleSignatureStack& other) const { … }
std::vector<PublicKey> SignedWebBundleSignatureStack::public_keys() const { … }
}