| Index: content/browser/renderer_host/frame_sink_provider_impl.h
|
| diff --git a/content/browser/renderer_host/frame_sink_provider_impl.h b/content/browser/renderer_host/frame_sink_provider_impl.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..7823a6e594acd6b7850b1f979a6283eaa7d40e0a
|
| --- /dev/null
|
| +++ b/content/browser/renderer_host/frame_sink_provider_impl.h
|
| @@ -0,0 +1,39 @@
|
| +// 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.
|
| +
|
| +#ifndef CONTENT_BROWSER_RENDER_WIDGET_COMPOSITOR_FRAME_SINK_PROVIDER_H_
|
| +#define CONTENT_BROWSER_RENDER_WIDGET_COMPOSITOR_FRAME_SINK_PROVIDER_H_
|
| +
|
| +#include "content/common/frame_sink_provider.mojom.h"
|
| +#include "mojo/public/cpp/bindings/binding.h"
|
| +
|
| +namespace content {
|
| +
|
| +// This class lives in the browser and provides MojoCompositorFrameSink for the
|
| +// renderer. To access this class in the renderer, call:
|
| +// RenderThreadImpl::current()->GetFrameSinkProvider().
|
| +class FrameSinkProviderImpl : public mojom::FrameSinkProvider {
|
| + public:
|
| + explicit FrameSinkProviderImpl(int32_t process_id);
|
| + ~FrameSinkProviderImpl() override;
|
| +
|
| + void Bind(mojom::FrameSinkProviderRequest request);
|
| + void Unbind();
|
| +
|
| + // mojom::FrameSinkProvider implementation.
|
| + void CreateForWidget(
|
| + int32_t widget_id,
|
| + cc::mojom::MojoCompositorFrameSinkRequest request,
|
| + cc::mojom::MojoCompositorFrameSinkClientPtr client) override;
|
| +
|
| + private:
|
| + const int32_t process_id_;
|
| + mojo::Binding<mojom::FrameSinkProvider> binding_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(FrameSinkProviderImpl);
|
| +};
|
| +
|
| +} // namespace content
|
| +
|
| +#endif // CONTENT_BROWSER_RENDER_WIDGET_COMPOSITOR_FRAME_SINK_PROVIDER_H_
|
|
|