|
Add PlayerTracker and BrowserCdm interfaces.
- PlayerTracker interface can be used by any CDM that needs to track media
players. It can notify media players of new abailable key (to resume playback)
or the destruction of the CDM.
- PlayerTrackerImpl is a simple implementation of PlayerTracker that can help
any CDM to implement PlayerTracker interface.
- BrowserCdm is a common CDM interface for browser side CDMs.
- CdmFactory is renamed to BrowserCdmFactory.
- Now BrowserMediaPlayer only needs to call SetCdm() on the player and do not
need to track CDM <-> player mapping.
TBR=damienv@chromium.org
BUG= 373327
TEST=Existing test pages still work.
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=274470
Total comments: 43
Total comments: 8
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+350 lines, -221 lines) |
Patch |
 |
M |
content/browser/media/android/browser_media_player_manager.h
|
View
|
|
3 chunks |
+3 lines, -10 lines |
0 comments
|
Download
|
 |
M |
content/browser/media/android/browser_media_player_manager.cc
|
View
|
1
2
|
12 chunks |
+31 lines, -60 lines |
0 comments
|
Download
|
 |
A + |
media/base/android/browser_cdm_factory_android.cc
|
View
|
|
5 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
 |
D |
media/base/android/cdm_factory_android.cc
|
View
|
|
1 chunk |
+0 lines, -53 lines |
0 comments
|
Download
|
 |
M |
media/base/android/media_drm_bridge.h
|
View
|
1
2
|
5 chunks |
+9 lines, -3 lines |
0 comments
|
Download
|
 |
M |
media/base/android/media_drm_bridge.cc
|
View
|
1
2
|
3 chunks |
+14 lines, -0 lines |
0 comments
|
Download
|
 |
M |
media/base/android/media_player_android.h
|
View
|
|
2 chunks |
+2 lines, -6 lines |
0 comments
|
Download
|
 |
M |
media/base/android/media_player_android.cc
|
View
|
1
2
|
2 chunks |
+3 lines, -8 lines |
0 comments
|
Download
|
 |
M |
media/base/android/media_player_manager.h
|
View
|
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
media/base/android/media_source_player.h
|
View
|
1
2
3
|
4 chunks |
+9 lines, -2 lines |
0 comments
|
Download
|
 |
M |
media/base/android/media_source_player.cc
|
View
|
1
2
3
|
9 chunks |
+44 lines, -25 lines |
0 comments
|
Download
|
 |
M |
media/base/android/media_source_player_unittest.cc
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
A |
media/base/browser_cdm.h
|
View
|
1
2
|
1 chunk |
+44 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
media/base/browser_cdm.cc
|
View
|
|
1 chunk |
+6 lines, -5 lines |
0 comments
|
Download
|
 |
A + |
media/base/browser_cdm_factory.h
|
View
|
1
2
|
3 chunks |
+8 lines, -5 lines |
0 comments
|
Download
|
 |
D |
media/base/cdm_factory.h
|
View
|
|
1 chunk |
+0 lines, -28 lines |
0 comments
|
Download
|
 |
A |
media/base/player_tracker.h
|
View
|
1
2
|
1 chunk |
+41 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
media/base/player_tracker.cc
|
View
|
|
1 chunk |
+6 lines, -3 lines |
0 comments
|
Download
|
 |
A |
media/cdm/player_tracker_impl.h
|
View
|
1
2
|
1 chunk |
+54 lines, -0 lines |
0 comments
|
Download
|
 |
A |
media/cdm/player_tracker_impl.cc
|
View
|
1
2
|
1 chunk |
+57 lines, -0 lines |
0 comments
|
Download
|
 |
M |
media/media.gyp
|
View
|
|
4 chunks |
+8 lines, -2 lines |
0 comments
|
Download
|
Total messages: 14 (0 generated)
|