network_hints.mojom 640 B

123456789101112131415161718
  1. // Copyright 2019 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. module network_hints.mojom;
  5. import "url/mojom/url.mojom";
  6. // This interface is used by the renderer to provide hints to the browser.
  7. interface NetworkHintsHandler {
  8. // This method is called periodically with a hint to prefetch a batch set of
  9. // hostnames.
  10. PrefetchDNS(array<string> hostname_list);
  11. // This method is called periodically with a hint to preconnect to the origin
  12. // of the specified url.
  13. Preconnect(url.mojom.Url url, bool allow_credentials);
  14. };