xref: /aosp_15_r20/external/cronet/url/mojom/origin.mojom (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1// Copyright 2016 The Chromium Authors
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5[JavaPackage="org.chromium.url.internal.mojom"]
6module url.mojom;
7
8import "mojo/public/mojom/base/unguessable_token.mojom";
9
10struct Origin {
11  string scheme;
12  string host;
13  uint16 port;
14
15  // When a nonce is provided, this origin is opaque. The scheme/host/port do
16  // not need to be valid, but if they are, they identify the tuple origin
17  // from which this opaque origin is derived.
18  mojo_base.mojom.UnguessableToken? nonce_if_opaque;
19};
20