#include "third_party/blink/renderer/modules/service_worker/cross_origin_resource_policy_checker.h"
#include "services/network/public/cpp/cross_origin_resource_policy.h"
#include "third_party/blink/public/platform/cross_variant_mojo_util.h"
#include "third_party/blink/renderer/core/fetch/response.h"
namespace blink {
CrossOriginResourcePolicyChecker::CrossOriginResourcePolicyChecker(
network::CrossOriginEmbedderPolicy policy,
mojo::PendingRemote<
network::mojom::blink::CrossOriginEmbedderPolicyReporter> reporter)
: … { … }
bool CrossOriginResourcePolicyChecker::IsBlocked(
const url::Origin& initiator_origin,
network::mojom::RequestMode request_mode,
network::mojom::RequestDestination request_destination,
const blink::Response& response) { … }
base::WeakPtr<CrossOriginResourcePolicyChecker>
CrossOriginResourcePolicyChecker::GetWeakPtr() { … }
}