blob: 4ff5acfc6e21ff652481784112082404331b47f5 [file] [log] [blame]
// 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_hints.mojom;
import "url/mojom/url.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 prefetch a batch set of
// hostnames.
PrefetchDNS(array<string> hostname_list);
// This method is called periodically with a hint to preconnect to the origin
// of the specified url.
Preconnect(url.mojom.Url url, bool allow_credentials);
};