| Index: media/mojo/clients/mojo_android_overlay_factory.cc
|
| diff --git a/media/mojo/clients/mojo_android_overlay_factory.cc b/media/mojo/clients/mojo_android_overlay_factory.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..1b53686f77883ee3612920afbb55ff0285b8166f
|
| --- /dev/null
|
| +++ b/media/mojo/clients/mojo_android_overlay_factory.cc
|
| @@ -0,0 +1,27 @@
|
| +// 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.
|
| +
|
| +#include "media/mojo/clients/mojo_android_overlay_factory.h"
|
| +
|
| +#include "media/mojo/clients/mojo_android_overlay.h"
|
| +
|
| +namespace media {
|
| +
|
| +MojoAndroidOverlayFactory::MojoAndroidOverlayFactory(
|
| + service_manager::mojom::InterfaceProvider* interface_provider,
|
| + int render_frame_id,
|
| + int renderer_pid)
|
| + : interface_provider_(interface_provider),
|
| + render_frame_id_(render_frame_id),
|
| + renderer_pid_(renderer_pid) {}
|
| +
|
| +MojoAndroidOverlayFactory::~MojoAndroidOverlayFactory() {}
|
| +
|
| +std::unique_ptr<AndroidOverlay> MojoAndroidOverlayFactory::CreateOverlay(
|
| + const AndroidOverlay::Config& config) {
|
| + return base::MakeUnique<MojoAndroidOverlay>(
|
| + interface_provider_, render_frame_id_, renderer_pid_, config);
|
| +}
|
| +
|
| +} // namespace media
|
|
|