summaryrefslogtreecommitdiff
path: root/chromium/content/public/common/client_hints.mojom
blob: 67650690ca8656294026ebce54c928f676df68ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright 2017 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 client_hints.mojom;

import "mojo/public/mojom/base/time.mojom";
import
"third_party/blink/public/mojom/web_client_hints/web_client_hints_types.mojom";
import "url/mojom/origin.mojom";

// Sent from renderer to browser process when the lifetime of the client hints
// for |primary_origin| has changed. |client_hints| is the list of client hints
// that |primary_origin| has requested for. The client hints should be sent
// for a duration of |expiration_duration|.
interface ClientHints {
  // Provide information to the browser process about Client Hints opt-in.
  // Inputs are the origin setting the opt-in, an array of the hints that were
  // set, and the duration for which the opt-in would be valid.
  PersistClientHints(url.mojom.Origin primary_origin,
                     array<blink.mojom.WebClientHintsType> client_hints,
                     mojo_base.mojom.TimeDelta expiration_duration);
};