OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "media/mojo/clients/mojo_android_overlay_factory.h" | 5 #include "media/mojo/clients/mojo_android_overlay_factory.h" |
6 | 6 |
7 #include "media/mojo/clients/mojo_android_overlay.h" | 7 #include "media/mojo/clients/mojo_android_overlay.h" |
8 | 8 |
9 namespace media { | 9 namespace media { |
10 | 10 |
11 MojoAndroidOverlayFactory::MojoAndroidOverlayFactory( | 11 MojoAndroidOverlayFactory::MojoAndroidOverlayFactory( |
| 12 const base::UnguessableToken& routing_token, |
12 service_manager::mojom::InterfaceProvider* interface_provider) | 13 service_manager::mojom::InterfaceProvider* interface_provider) |
13 : interface_provider_(interface_provider) {} | 14 : interface_provider_(interface_provider), routing_token_(routing_token) {} |
14 | 15 |
15 MojoAndroidOverlayFactory::~MojoAndroidOverlayFactory() {} | 16 MojoAndroidOverlayFactory::~MojoAndroidOverlayFactory() {} |
16 | 17 |
17 std::unique_ptr<AndroidOverlay> MojoAndroidOverlayFactory::CreateOverlay( | 18 std::unique_ptr<AndroidOverlay> MojoAndroidOverlayFactory::CreateOverlay( |
18 const AndroidOverlay::Config& config) { | 19 const AndroidOverlay::Config& config) { |
19 return base::MakeUnique<MojoAndroidOverlay>(interface_provider_, config); | 20 return base::MakeUnique<MojoAndroidOverlay>(interface_provider_, config, |
| 21 routing_token_); |
20 } | 22 } |
21 | 23 |
22 } // namespace media | 24 } // namespace media |
OLD | NEW |