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..6cff6b1f0de4cc396d1e0f6e409d5476cf05991e |
--- /dev/null |
+++ b/media/mojo/clients/mojo_android_overlay_factory.cc |
@@ -0,0 +1,22 @@ |
+// 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) |
+ : interface_provider_(interface_provider) {} |
+ |
+MojoAndroidOverlayFactory::~MojoAndroidOverlayFactory() {} |
+ |
+std::unique_ptr<AndroidOverlay> MojoAndroidOverlayFactory::CreateOverlay( |
+ const AndroidOverlay::Config& config) { |
+ return base::MakeUnique<MojoAndroidOverlay>(interface_provider_, config); |
+} |
+ |
+} // namespace media |