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

Side by Side Diff: media/mojo/services/android_mojo_media_client.h

Issue 1837143002: media: Pass MediaPermission to MediaDrmBridge Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More plumbing Created 4 years, 7 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_MOJO_SERVICES_ANDROID_MOJO_MEDIA_CLIENT_H_ 5 #ifndef MEDIA_MOJO_SERVICES_ANDROID_MOJO_MEDIA_CLIENT_H_
6 #define MEDIA_MOJO_SERVICES_ANDROID_MOJO_MEDIA_CLIENT_H_ 6 #define MEDIA_MOJO_SERVICES_ANDROID_MOJO_MEDIA_CLIENT_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "media/mojo/services/mojo_media_client.h" 11 #include "media/mojo/services/mojo_media_client.h"
12 12
13 namespace media { 13 namespace media {
14 14
15 class MediaPermission;
16
15 class AndroidMojoMediaClient : public MojoMediaClient { 17 class AndroidMojoMediaClient : public MojoMediaClient {
16 public: 18 public:
19 // Constructs AndroidMojoMediaClient without MediaPermission.
17 AndroidMojoMediaClient(); 20 AndroidMojoMediaClient();
21
22 // Constructs AndroidMojoMediaClient with a non-null MediaPermission.
23 explicit AndroidMojoMediaClient(MediaPermission* media_permission);
24
18 ~AndroidMojoMediaClient() final; 25 ~AndroidMojoMediaClient() final;
19 26
20 // MojoMediaClient implementation. 27 // MojoMediaClient implementation.
21 std::unique_ptr<AudioDecoder> CreateAudioDecoder( 28 std::unique_ptr<AudioDecoder> CreateAudioDecoder(
22 scoped_refptr<base::SingleThreadTaskRunner> task_runner) final; 29 scoped_refptr<base::SingleThreadTaskRunner> task_runner) final;
23 30
24 std::unique_ptr<CdmFactory> CreateCdmFactory( 31 std::unique_ptr<CdmFactory> CreateCdmFactory(
25 shell::mojom::InterfaceProvider* interface_provider) final; 32 shell::mojom::InterfaceProvider* interface_provider) final;
26 33
27 private: 34 private:
35 MediaPermission* media_permission_ = nullptr;
36
28 DISALLOW_COPY_AND_ASSIGN(AndroidMojoMediaClient); 37 DISALLOW_COPY_AND_ASSIGN(AndroidMojoMediaClient);
29 }; 38 };
30 39
31 } // namespace media 40 } // namespace media
32 41
33 #endif // MEDIA_MOJO_SERVICES_ANDROID_MOJO_MEDIA_CLIENT_H_ 42 #endif // MEDIA_MOJO_SERVICES_ANDROID_MOJO_MEDIA_CLIENT_H_
OLDNEW
« no previous file with comments | « media/base/android/media_drm_bridge.cc ('k') | media/mojo/services/android_mojo_media_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698