| Index: media/mojo/clients/mojo_android_overlay_factory.h
|
| diff --git a/media/mojo/clients/mojo_android_overlay_factory.h b/media/mojo/clients/mojo_android_overlay_factory.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..676ace1aee005677374c47e3aec7523bd9c340e6
|
| --- /dev/null
|
| +++ b/media/mojo/clients/mojo_android_overlay_factory.h
|
| @@ -0,0 +1,43 @@
|
| +// 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 MEDIA_BASE_MOJO_ANDROID_OVERLAY_FACTORY_H_
|
| +#define MEDIA_BASE_MOJO_ANDROID_OVERLAY_FACTORY_H_
|
| +
|
| +#include "base/macros.h"
|
| +#include "media/base/android/android_overlay_factory.h"
|
| +#include "media/mojo/interfaces/android_overlay.mojom.h"
|
| +
|
| +namespace service_manager {
|
| +namespace mojom {
|
| +class InterfaceProvider;
|
| +}
|
| +}
|
| +
|
| +namespace media {
|
| +
|
| +// AndroidOverlayFactory implementation that memorizes the render frame with
|
| +// which the overlays are associated.
|
| +class MojoAndroidOverlayFactory : public AndroidOverlayFactory {
|
| + public:
|
| + MojoAndroidOverlayFactory(
|
| + service_manager::mojom::InterfaceProvider* interface_provider,
|
| + int render_frame_id,
|
| + int renderer_pid);
|
| + ~MojoAndroidOverlayFactory() override;
|
| +
|
| + std::unique_ptr<AndroidOverlay> CreateOverlay(
|
| + const AndroidOverlay::Config& config) override;
|
| +
|
| + private:
|
| + service_manager::mojom::InterfaceProvider* interface_provider_;
|
| + int render_frame_id_;
|
| + int renderer_pid_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(MojoAndroidOverlayFactory);
|
| +};
|
| +
|
| +} // namespace media
|
| +
|
| +#endif // MEDIA_BASE_MOJO_ANDROID_OVERLAY_H_
|
|
|