chromium/services/network/public/cpp/cross_origin_embedder_policy.cc

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

#include "services/network/public/cpp/cross_origin_embedder_policy.h"


namespace network {

CrossOriginEmbedderPolicy::CrossOriginEmbedderPolicy() = default;
CrossOriginEmbedderPolicy::CrossOriginEmbedderPolicy(
    const CrossOriginEmbedderPolicy& src) = default;
CrossOriginEmbedderPolicy::CrossOriginEmbedderPolicy(
    CrossOriginEmbedderPolicy&& src) = default;
CrossOriginEmbedderPolicy::~CrossOriginEmbedderPolicy() = default;
CrossOriginEmbedderPolicy::CrossOriginEmbedderPolicy(
    mojom::CrossOriginEmbedderPolicyValue value)
    :{}

CrossOriginEmbedderPolicy& CrossOriginEmbedderPolicy::operator=(
    const CrossOriginEmbedderPolicy& src) = default;
CrossOriginEmbedderPolicy& CrossOriginEmbedderPolicy::operator=(
    CrossOriginEmbedderPolicy&& src) = default;
bool CrossOriginEmbedderPolicy::operator==(
    const CrossOriginEmbedderPolicy& other) const {}

bool CompatibleWithCrossOriginIsolated(const CrossOriginEmbedderPolicy& coep) {}

// [spec]:
// https://html.spec.whatwg.org/C/#compatible-with-cross-origin-isolation An
// embedder policy value is compatible with cross-origin isolation if it is
// "credentialless" or "require-corp".
bool CompatibleWithCrossOriginIsolated(
    mojom::CrossOriginEmbedderPolicyValue value) {}

}  // namespace network