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