|
media: Support creation and SetCdm() for mojo based CDM.
- Add mojo::ContentDecryptionModuleFactory interface which helps request a
ContentDecryptionModule service. This is needed because we need to pass in
some information (e.g. key system and cdm ID) to request the correct service.
- MojoCdmFactory is the proxy of mojo::ContentDecryptionModuleFactory. It is
used when --enable-mojo-media-renderer is specified for HTMLViewer.
- MojoCdmFactoryService implements mojo::ContentDecryptionModuleFactory. It uses
MojoCdmServiceContext to help create MojoCdmServices.
- MojoCdmServiceContext creates, owns and manages MojoCdmServices. It is owned
by MojoMediaApplication and is passed to MojoRendererService so that when
SetCdm(cdm_id) is called, MojoCdmService can find the correct CDM for |cdm_id|
through MojoCdmServiceContext.
- SetCdm() is implemented in MojoRenderer{Impl|Service}.
BUG= 432998
TEST=Clear Key supported in the media mojo app for prefixed EME API.
Total comments: 2
Total comments: 16
Total comments: 3
Total comments: 22
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+538 lines, -90 lines) |
Patch |
 |
M |
components/html_viewer/html_document.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+17 lines, -2 lines |
0 comments
|
Download
|
 |
M |
components/html_viewer/setup.h
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/html_viewer/setup.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
3 chunks |
+5 lines, -6 lines |
0 comments
|
Download
|
 |
M |
components/html_viewer/web_media_player_factory.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
content/browser/frame_host/render_frame_host_impl.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
media/base/cdm_context.h
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+20 lines, -0 lines |
0 comments
|
Download
|
 |
M |
media/base/cdm_context.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+10 lines, -2 lines |
0 comments
|
Download
|
 |
M |
media/mojo/interfaces/BUILD.gn
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
media/mojo/interfaces/content_decryption_module.mojom
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+5 lines, -13 lines |
0 comments
|
Download
|
 |
A |
media/mojo/interfaces/content_decryption_module_factory.mojom
|
View
|
1
2
|
1 chunk |
+20 lines, -0 lines |
0 comments
|
Download
|
 |
M |
media/mojo/interfaces/media_renderer.mojom
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
media/mojo/services/BUILD.gn
|
View
|
1
2
3
4
5
6
7
8
9
|
3 chunks |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
media/mojo/services/mojo_cdm.h
|
View
|
1
2
3
4
5
6
7
8
9
|
4 chunks |
+11 lines, -1 line |
0 comments
|
Download
|
 |
M |
media/mojo/services/mojo_cdm.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
12 chunks |
+23 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
media/mojo/services/mojo_cdm_factory.h
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+14 lines, -9 lines |
0 comments
|
Download
|
 |
A |
media/mojo/services/mojo_cdm_factory.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+49 lines, -0 lines |
0 comments
|
Download
|
 |
A |
media/mojo/services/mojo_cdm_factory_service.h
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+41 lines, -0 lines |
0 comments
|
Download
|
 |
A |
media/mojo/services/mojo_cdm_factory_service.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+38 lines, -0 lines |
0 comments
|
Download
|
 |
M |
media/mojo/services/mojo_cdm_service.h
|
View
|
1
2
3
4
5
6
7
8
9
|
3 chunks |
+26 lines, -7 lines |
0 comments
|
Download
|
 |
M |
media/mojo/services/mojo_cdm_service.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
9 chunks |
+57 lines, -27 lines |
0 comments
|
Download
|
 |
A |
media/mojo/services/mojo_cdm_service_context.h
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+47 lines, -0 lines |
0 comments
|
Download
|
 |
A |
media/mojo/services/mojo_cdm_service_context.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+54 lines, -0 lines |
0 comments
|
Download
|
 |
M |
media/mojo/services/mojo_media_application.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+24 lines, -6 lines |
0 comments
|
Download
|
 |
M |
media/mojo/services/mojo_renderer_impl.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+8 lines, -2 lines |
0 comments
|
Download
|
 |
M |
media/mojo/services/mojo_renderer_service.h
|
View
|
1
2
3
4
5
6
7
8
9
|
3 chunks |
+17 lines, -8 lines |
0 comments
|
Download
|
 |
M |
media/mojo/services/mojo_renderer_service.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
6 chunks |
+31 lines, -2 lines |
0 comments
|
Download
|
Total messages: 17 (3 generated)
|