blob: 375ad3e76d199114f6c21273bb4d7591b0134266 [file] [log] [blame]
// Copyright 2016 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 content.mojom;
import "mojo/public/mojom/base/thread_priority.mojom";
import "mojo/public/mojom/base/unguessable_token.mojom";
interface RenderMessageFilter {
// Synchronously generates a new routing ID for the caller.
[Sync] GenerateRoutingID() => (int32 routing_id);
// Similar to GenerateRoutingID but also generates a frame token and
// devtools_frame_token. A subsequent call to FrameHost::CreateChildFrame
// is expected after this call.
[Sync] GenerateFrameRoutingID() => (int32 routing_id,
mojo_base.mojom.UnguessableToken frame_token,
mojo_base.mojom.UnguessableToken devtools_frame_token);
// A renderer sends this when it wants to know whether a gpu process exists.
[Sync] HasGpuProcess() => (bool has_gpu_process);
// Asks the browser to change the priority of thread.
[EnableIf=supports_thread_priorities]
SetThreadPriority(int32 platform_thread_id,
mojo_base.mojom.ThreadPriority thread_priority);
};