Chromium Code Reviews| 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 #ifndef MEDIA_BASE_MOJO_ANDROID_OVERLAY_FACTORY_H_ | 5 #ifndef MEDIA_BASE_MOJO_ANDROID_OVERLAY_FACTORY_H_ |
| 6 #define MEDIA_BASE_MOJO_ANDROID_OVERLAY_FACTORY_H_ | 6 #define MEDIA_BASE_MOJO_ANDROID_OVERLAY_FACTORY_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/unguessable_token.h" | |
| 9 #include "media/base/android/android_overlay_factory.h" | 10 #include "media/base/android/android_overlay_factory.h" |
| 10 #include "media/mojo/interfaces/android_overlay.mojom.h" | 11 #include "media/mojo/interfaces/android_overlay.mojom.h" |
| 11 | 12 |
| 12 namespace service_manager { | 13 namespace service_manager { |
| 13 namespace mojom { | 14 namespace mojom { |
| 14 class InterfaceProvider; | 15 class InterfaceProvider; |
| 15 } | 16 } |
| 16 } | 17 } |
| 17 | 18 |
| 18 namespace media { | 19 namespace media { |
| 19 | 20 |
| 20 // AndroidOverlayFactory implementation for mojo-based overlays. | 21 // AndroidOverlayFactory implementation for mojo-based overlays. |
| 21 class MojoAndroidOverlayFactory : public AndroidOverlayFactory { | 22 class MojoAndroidOverlayFactory : public AndroidOverlayFactory { |
| 22 public: | 23 public: |
| 23 MojoAndroidOverlayFactory( | 24 MojoAndroidOverlayFactory( |
| 24 service_manager::mojom::InterfaceProvider* interface_provider); | 25 service_manager::mojom::InterfaceProvider* interface_provider, |
| 26 const base::UnguessableToken& routing_token); | |
|
DaleCurtis
2017/04/04 18:48:21
Input only parameters before input/output ones.
liberato (no reviews please)
2017/04/04 20:00:21
Done.
| |
| 25 ~MojoAndroidOverlayFactory() override; | 27 ~MojoAndroidOverlayFactory() override; |
| 26 | 28 |
| 27 std::unique_ptr<AndroidOverlay> CreateOverlay( | 29 std::unique_ptr<AndroidOverlay> CreateOverlay( |
| 28 const AndroidOverlay::Config& config) override; | 30 const AndroidOverlay::Config& config) override; |
| 29 | 31 |
| 30 private: | 32 private: |
| 31 service_manager::mojom::InterfaceProvider* const interface_provider_; | 33 service_manager::mojom::InterfaceProvider* const interface_provider_; |
| 34 base::UnguessableToken routing_token_; | |
| 32 | 35 |
| 33 DISALLOW_COPY_AND_ASSIGN(MojoAndroidOverlayFactory); | 36 DISALLOW_COPY_AND_ASSIGN(MojoAndroidOverlayFactory); |
| 34 }; | 37 }; |
| 35 | 38 |
| 36 } // namespace media | 39 } // namespace media |
| 37 | 40 |
| 38 #endif // MEDIA_BASE_MOJO_ANDROID_OVERLAY_H_ | 41 #endif // MEDIA_BASE_MOJO_ANDROID_OVERLAY_H_ |
| OLD | NEW |