blob: 26760c55a6c92674a5dcf953aab8d9c15924c496 [file] [log] [blame]
// Copyright 2017 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 chrome.mojom;
import "url/mojom/url.mojom";
interface PrerenderCanceler {
// Cancels prerendering because of an unsupported method.
CancelPrerenderForUnsupportedMethod();
// Cancels prerendering because of an unsupported scheme.
CancelPrerenderForUnsupportedScheme(url.mojom.Url url);
};
// PrerenderDispatcher Messages
// These are messages sent from the browser to the renderer in relation to
// running prerenders.
interface PrerenderDispatcher {
// Signals to launcher that a prerender is running.
PrerenderStart(int32 prerender_id);
// Signals to launcher that a prerender is running.
PrerenderStopLoading(int32 prerender_id);
// Signals to launcher that a prerender has had it's 'domcontentloaded' event.
PrerenderDomContentLoaded(int32 prerender_id);
// Signals to a launcher that a new alias has been added to a prerender.
PrerenderAddAlias(url.mojom.Url alias);
// Signals to a launcher that a new alias has been added to a prerender.
PrerenderRemoveAliases(array<url.mojom.Url> aliases);
// Signals to a launcher that a prerender is no longer running.
PrerenderStop(int32 prerender_id);
};