chromium/components/network_hints/common/network_hints.mojom

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

module network_hints.mojom;

import "url/mojom/scheme_host_port.mojom";

// This interface is used by the renderer to provide hints to the browser.
interface NetworkHintsHandler {
  // This method is called periodically with a hint to perform DNS lookups for
  // a batch set of urls.
  PrefetchDNS(array<url.mojom.SchemeHostPort> url_list);

  // This method is called periodically with a hint to preconnect to the origin
  // of the specified url.
  Preconnect(url.mojom.SchemeHostPort url, bool allow_credentials);
};