chromium/components/web_package/signed_web_bundles/signed_web_bundle_signature_stack.cc

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

#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) {}

}  // namespace

// static
base::expected<SignedWebBundleSignatureStack, std::string>
SignedWebBundleSignatureStack::Create(
    base::span<const SignedWebBundleSignatureStackEntry> entries) {}

// static
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 {}

}  // namespace web_package