1// Copyright 2020 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5module network.mojom;
6
7import "services/network/public/mojom/site_for_cookies.mojom";
8import "url/mojom/origin.mojom";
9
10// Mapped to net::IsolationInfo::RequestType, which is what consumers should
11// be using instead of using this directly.
12enum IsolationInfoRequestType {
13  kMainFrame,
14  kSubFrame,
15  kOther,
16};
17
18// Mapped to net::IsolationInfo.
19struct IsolationInfo {
20  // These fields should not be used directly, but rather through the mapped
21  // net::IsolationInfo.
22  IsolationInfoRequestType request_type;
23  url.mojom.Origin? top_frame_origin;
24  url.mojom.Origin? frame_origin;
25  bool opaque_and_non_transient;
26  SiteForCookies site_for_cookies;
27};
28