prerender_canceler.mojom 687 B

1234567891011121314151617
  1. // Copyright 2017 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 prerender.mojom;
  5. // This interface is provided to a renderer that is used for prerendering. It
  6. // enables the renderer to detect and respond to cases that should cause the
  7. // prerendering to be cancelled.
  8. interface PrerenderCanceler {
  9. // Cancels prerendering because of an unsupported scheme.
  10. CancelPrerenderForUnsupportedScheme();
  11. // Cancels prerendering because the resource prefetcher has discovered all
  12. // possible subresources and issued requests for them.
  13. CancelPrerenderForNoStatePrefetch();
  14. };