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

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

Issue 2688193002: Mojo framework for AndroidOverlay. (Closed)
Patch Set: BUILD.gn fixes Created 3 years, 10 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef MEDIA_BASE_MOJO_ANDROID_OVERLAY_FACTORY_H_
6 #define MEDIA_BASE_MOJO_ANDROID_OVERLAY_FACTORY_H_
7
8 #include "base/macros.h"
9 #include "media/base/android/android_overlay_factory.h"
10 #include "media/mojo/interfaces/android_overlay.mojom.h"
11
12 namespace service_manager {
13 namespace mojom {
14 class InterfaceProvider;
15 }
16 }
17
18 namespace media {
19
20 // AndroidOverlayFactory implementation that memorizes the render frame with
21 // which the overlays are associated.
22 class MojoAndroidOverlayFactory : public AndroidOverlayFactory {
23 public:
24 MojoAndroidOverlayFactory(
25 service_manager::mojom::InterfaceProvider* interface_provider,
26 int render_frame_id,
27 int renderer_pid);
28 ~MojoAndroidOverlayFactory() override;
29
30 std::unique_ptr<AndroidOverlay> CreateOverlay(
31 const AndroidOverlay::Config& config) override;
32
33 private:
34 service_manager::mojom::InterfaceProvider* interface_provider_;
35 int render_frame_id_;
36 int renderer_pid_;
37
38 DISALLOW_COPY_AND_ASSIGN(MojoAndroidOverlayFactory);
39 };
40
41 } // namespace media
42
43 #endif // MEDIA_BASE_MOJO_ANDROID_OVERLAY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698