Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(390)

Side by Side Diff: media/mojo/clients/mojo_android_overlay_factory.h

Issue 2796943002: Move routing token out of AndroidOverlay config. (Closed)
Patch Set: cl feedback 1/2 Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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(
25 const base::UnguessableToken& routing_token,
24 service_manager::mojom::InterfaceProvider* interface_provider); 26 service_manager::mojom::InterfaceProvider* interface_provider);
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_
OLDNEW
« no previous file with comments | « media/mojo/clients/mojo_android_overlay.cc ('k') | media/mojo/clients/mojo_android_overlay_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698