Commit ffebf203 authored by Arthur Hemery's avatar Arthur Hemery Committed by Commit Bot

[Security] Move COEP definition into its own mojo file.

In order to reuse COEP in other objects, we move its definition into
an easy to include single struct mojo file. It replaces the massive
network_context.mojom include.

Change-Id: I245d68d3fe1880b369c3c65801c502a1aee8b027
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1930738Reviewed-by: default avatarKinuko Yasuda <kinuko@chromium.org>
Reviewed-by: default avatarPâris Meuleman <pmeuleman@chromium.org>
Commit-Queue: Arthur Hemery <ahemery@chromium.org>
Cr-Commit-Position: refs/heads/master@{#718655}
parent 7ff04126
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
#include "mojo/public/cpp/bindings/pending_receiver.h" #include "mojo/public/cpp/bindings/pending_receiver.h"
#include "mojo/public/cpp/bindings/pending_remote.h" #include "mojo/public/cpp/bindings/pending_remote.h"
#include "net/base/network_isolation_key.h" #include "net/base/network_isolation_key.h"
#include "services/network/public/mojom/cross_origin_embedder_policy.mojom-forward.h"
#include "services/network/public/mojom/network_context.mojom-forward.h" #include "services/network/public/mojom/network_context.mojom-forward.h"
#include "services/network/public/mojom/url_loader_factory.mojom-forward.h" #include "services/network/public/mojom/url_loader_factory.mojom-forward.h"
#include "third_party/blink/public/mojom/appcache/appcache.mojom.h" #include "third_party/blink/public/mojom/appcache/appcache.mojom.h"
......
...@@ -104,6 +104,7 @@ mojom("mojom") { ...@@ -104,6 +104,7 @@ mojom("mojom") {
"cookie_manager.mojom", "cookie_manager.mojom",
"cors.mojom", "cors.mojom",
"cors_origin_pattern.mojom", "cors_origin_pattern.mojom",
"cross_origin_embedder_policy.mojom",
"default_credentials.mojom", "default_credentials.mojom",
"dhcp_wpad_url_client.mojom", "dhcp_wpad_url_client.mojom",
"digitally_signed.mojom", "digitally_signed.mojom",
......
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
module network.mojom;
// https://mikewest.github.io/corpp/#integration-html
enum CrossOriginEmbedderPolicy {
kNone,
kRequireCorp,
};
...@@ -14,6 +14,7 @@ import "services/network/public/mojom/address_list.mojom"; ...@@ -14,6 +14,7 @@ import "services/network/public/mojom/address_list.mojom";
import "services/network/public/mojom/cookie_manager.mojom"; import "services/network/public/mojom/cookie_manager.mojom";
import "services/network/public/mojom/default_credentials.mojom"; import "services/network/public/mojom/default_credentials.mojom";
import "services/network/public/mojom/cors_origin_pattern.mojom"; import "services/network/public/mojom/cors_origin_pattern.mojom";
import "services/network/public/mojom/cross_origin_embedder_policy.mojom";
import "services/network/public/mojom/host_resolver.mojom"; import "services/network/public/mojom/host_resolver.mojom";
import "services/network/public/mojom/http_request_headers.mojom"; import "services/network/public/mojom/http_request_headers.mojom";
import "services/network/public/mojom/ip_address.mojom"; import "services/network/public/mojom/ip_address.mojom";
...@@ -520,12 +521,6 @@ struct SignedExchangeReport { ...@@ -520,12 +521,6 @@ struct SignedExchangeReport {
const uint32 kBrowserProcessId = 0; const uint32 kBrowserProcessId = 0;
const uint32 kInvalidProcessId = 0xffffffff; const uint32 kInvalidProcessId = 0xffffffff;
// https://mikewest.github.io/corpp/#integration-html
enum CrossOriginEmbedderPolicy {
kNone,
kRequireCorp,
};
struct URLLoaderFactoryParams { struct URLLoaderFactoryParams {
// Process requesting the URLLoaderFactory. // Process requesting the URLLoaderFactory.
// Set to kBrowserProcessId to indicate the browser process. // Set to kBrowserProcessId to indicate the browser process.
......
...@@ -6,7 +6,7 @@ module blink.mojom; ...@@ -6,7 +6,7 @@ module blink.mojom;
import "mojo/public/mojom/base/time.mojom"; import "mojo/public/mojom/base/time.mojom";
import "mojo/public/mojom/base/unguessable_token.mojom"; import "mojo/public/mojom/base/unguessable_token.mojom";
import "services/network/public/mojom/network_context.mojom"; import "services/network/public/mojom/cross_origin_embedder_policy.mojom";
import "services/network/public/mojom/url_loader.mojom"; import "services/network/public/mojom/url_loader.mojom";
import "third_party/blink/public/mojom/service_worker/controller_service_worker_mode.mojom"; import "third_party/blink/public/mojom/service_worker/controller_service_worker_mode.mojom";
import "third_party/blink/public/mojom/service_worker/dispatch_fetch_event_params.mojom"; import "third_party/blink/public/mojom/service_worker/dispatch_fetch_event_params.mojom";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment