naiveproxy/content/common/frame_sink_provider.mojom

26 lines
1018 B
Plaintext
Raw Permalink Normal View History

2018-08-11 08:35:24 +03:00
// Copyright 2018 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 "content/common/render_frame_metadata.mojom";
import "services/viz/public/interfaces/compositing/compositor_frame_sink.mojom";
// This interface provides CompositorFrameSink and a
// RenderFrameMetadataObserverClient for the renderer. While also
// providing an observer of RenderFrameMetadata to the browser, which is needed
// to be able to control the modes of observation.
interface FrameSinkProvider {
CreateForWidget(
int32 widget_id,
viz.mojom.CompositorFrameSink& compositor_frame_sink_request,
viz.mojom.CompositorFrameSinkClient compositor_frame_sink_client);
RegisterRenderFrameMetadataObserver(
int32 widget_id,
RenderFrameMetadataObserverClient&
render_frame_metadata_observer_client_request,
RenderFrameMetadataObserver render_frame_metadata_observer);
};