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

Issue 157423003: Remove the dependency on encryptedmedia from HTMLMediaElement. (Closed)

Created:
6 years, 10 months ago by c.shu
Modified:
6 years, 9 months ago
CC:
blink-reviews, nessy, philipj_slow, gasubic, fs, eric.carlson_apple.com, feature-media-reviews_chromium.org, dglazkov+blink, adamk+blink_chromium.org, vcarbune.chromium, jrummell
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

This patch removes the dependency on EncryptedMedia from HTMLMediaElement. BUG=242754, 341883 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=168704

Patch Set 1 #

Total comments: 3

Patch Set 2 : this is the 2nd patch. But more changes are expected based on bug 342036. #

Patch Set 3 : The 3rd patch that extracts the MediaPlayerClient::mediaPlayerKeyNeeded function. #

Patch Set 4 : Move EME completely from core::HTMLMediaElement to modules::HTMLMediaElementEncryptedMedia (Based o… #

Patch Set 5 : Move EME completely from core::HTMLMediaElement to modules::HTMLMediaElementEncryptedMedia (Based o… #

Total comments: 8

Patch Set 6 : Address review comments. #

Total comments: 51

Patch Set 7 : Address ddorwin's review comments. #

Total comments: 7

Patch Set 8 : Address more review comments. #

Total comments: 3

Patch Set 9 : minor changes. #

Total comments: 5

Patch Set 10 : merge latest trunk #

Patch Set 11 : Fix compilation error on linux #

Unified diffs Side-by-side diffs Delta from patch set Stats (+496 lines, -426 lines) Patch
M LayoutTests/media/encrypted-media/prefixed/encrypted-media-not-loaded-expected.txt View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -3 lines 0 comments Download
M Source/core/DEPS View 1 2 3 4 5 6 1 chunk +0 lines, -2 lines 0 comments Download
M Source/core/html/HTMLMediaElement.h View 1 2 3 4 5 6 7 8 9 9 chunks +7 lines, -42 lines 0 comments Download
M Source/core/html/HTMLMediaElement.cpp View 1 2 3 4 5 6 7 8 9 10 chunks +7 lines, -291 lines 0 comments Download
M Source/core/html/HTMLMediaElement.idl View 1 2 3 1 chunk +0 lines, -13 lines 0 comments Download
A Source/modules/encryptedmedia/HTMLMediaElementEncryptedMedia.h View 1 2 3 4 5 6 7 1 chunk +81 lines, -0 lines 0 comments Download
A Source/modules/encryptedmedia/HTMLMediaElementEncryptedMedia.cpp View 1 2 3 4 5 6 7 8 1 chunk +353 lines, -0 lines 0 comments Download
A Source/modules/encryptedmedia/HTMLMediaElementEncryptedMedia.idl View 1 2 3 1 chunk +18 lines, -0 lines 0 comments Download
M Source/modules/modules.gypi View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -0 lines 0 comments Download
M Source/platform/graphics/media/MediaPlayer.h View 1 2 3 4 5 6 7 8 9 2 chunks +1 line, -12 lines 0 comments Download
M Source/web/AssertMatchingEnums.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -11 lines 0 comments Download
M Source/web/WebMediaPlayerClientImpl.h View 1 2 3 4 5 6 7 8 9 6 chunks +7 lines, -10 lines 0 comments Download
M Source/web/WebMediaPlayerClientImpl.cpp View 1 2 3 4 5 6 7 8 9 10 9 chunks +16 lines, -42 lines 0 comments Download

Messages

Total messages: 56 (0 generated)
c.shu
would you review it? thanks. Btw, we may want to create new files and give ...
6 years, 10 months ago (2014-02-07 18:24:13 UTC) #1
ddorwin
[set]MediaKeys and onneedkey also need to be extracted. Is there a more generic solution, such ...
6 years, 10 months ago (2014-02-07 18:46:58 UTC) #2
abarth-chromium
https://codereview.chromium.org/157423003/diff/1/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/157423003/diff/1/Source/core/html/HTMLMediaElement.cpp#newcode1774 Source/core/html/HTMLMediaElement.cpp:1774: } This whole function should move into the encryptedmedia ...
6 years, 10 months ago (2014-02-07 18:52:49 UTC) #3
c.shu
On 2014/02/07 18:46:58, ddorwin wrote: > [set]MediaKeys and onneedkey also need to be extracted. Is ...
6 years, 10 months ago (2014-02-07 18:55:35 UTC) #4
abarth-chromium
On 2014/02/07 18:55:35, c.shu wrote: > It looks to me the cause of the dependency ...
6 years, 10 months ago (2014-02-07 18:57:35 UTC) #5
c.shu
https://codereview.chromium.org/157423003/diff/1/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/157423003/diff/1/Source/core/html/HTMLMediaElement.cpp#newcode1774 Source/core/html/HTMLMediaElement.cpp:1774: } On 2014/02/07 18:52:50, abarth wrote: > This whole ...
6 years, 10 months ago (2014-02-07 19:08:29 UTC) #6
acolwell GONE FROM CHROMIUM
https://codereview.chromium.org/157423003/diff/1/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/157423003/diff/1/Source/core/html/HTMLMediaElement.cpp#newcode1774 Source/core/html/HTMLMediaElement.cpp:1774: } On 2014/02/07 19:08:29, c.shu wrote: > On 2014/02/07 ...
6 years, 10 months ago (2014-02-07 19:17:41 UTC) #7
c.shu
On 2014/02/07 18:57:35, abarth wrote: > On 2014/02/07 18:55:35, c.shu wrote: > > It looks ...
6 years, 10 months ago (2014-02-07 20:00:54 UTC) #8
acolwell GONE FROM CHROMIUM
On 2014/02/07 20:00:54, c.shu wrote: > On 2014/02/07 18:57:35, abarth wrote: > > On 2014/02/07 ...
6 years, 10 months ago (2014-02-07 20:37:18 UTC) #9
ddorwin
On 2014/02/07 20:37:18, acolwell wrote: > On 2014/02/07 20:00:54, c.shu wrote: > > On 2014/02/07 ...
6 years, 10 months ago (2014-02-07 21:24:03 UTC) #10
acolwell GONE FROM CHROMIUM
On 2014/02/07 21:24:03, ddorwin wrote: > On 2014/02/07 20:37:18, acolwell wrote: > > On 2014/02/07 ...
6 years, 10 months ago (2014-02-07 22:14:35 UTC) #11
c.shu
> But I don't think we should introduce this MediaEventCreator business in > HTMLMediaElement code. ...
6 years, 10 months ago (2014-02-07 22:22:24 UTC) #12
abarth-chromium
On 2014/02/07 22:22:24, c.shu wrote: > I agree this MediaEventCreator does not look good. But ...
6 years, 10 months ago (2014-02-07 22:30:55 UTC) #13
c.shu
Hi, guys. This 3rd patch extracts the mediaPlayerKeyNeeded from MediaPlayerClient successfully. Please take a look ...
6 years, 10 months ago (2014-02-11 02:21:48 UTC) #14
c.shu
Based on acolwell's initial work, I have moved all the EME code out from HTMLMediaElement.
6 years, 10 months ago (2014-02-26 14:27:26 UTC) #15
c.shu
6 years, 10 months ago (2014-02-26 14:43:17 UTC) #16
acolwell GONE FROM CHROMIUM
Looks pretty good. Just a few comments. https://codereview.chromium.org/157423003/diff/270001/Source/modules/encryptedmedia/HTMLMediaElementEncryptedMedia.cpp File Source/modules/encryptedmedia/HTMLMediaElementEncryptedMedia.cpp (right): https://codereview.chromium.org/157423003/diff/270001/Source/modules/encryptedmedia/HTMLMediaElementEncryptedMedia.cpp#newcode42 Source/modules/encryptedmedia/HTMLMediaElementEncryptedMedia.cpp:42: , m_mediaElement(element) ...
6 years, 10 months ago (2014-02-26 17:19:18 UTC) #17
c.shu
Thanks for the review, acolwell.
6 years, 10 months ago (2014-02-26 18:53:20 UTC) #18
ddorwin
https://codereview.chromium.org/157423003/diff/290001/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/157423003/diff/290001/Source/core/html/HTMLMediaElement.cpp#newcode324 Source/core/html/HTMLMediaElement.cpp:324: closeMediaSource(); acolwell: Are you intending to do something similar ...
6 years, 10 months ago (2014-02-27 00:37:58 UTC) #19
ddorwin
It looks like the summary was updated but not the description. Also, is this just ...
6 years, 10 months ago (2014-02-27 00:39:00 UTC) #20
ddorwin
We have 3 bugs: 1) 341883: Remove dependency on MediaKeyNeededEvent for HTMLMediaElement 2) 342036: Extract ...
6 years, 10 months ago (2014-02-27 00:43:40 UTC) #21
acolwell GONE FROM CHROMIUM
https://codereview.chromium.org/157423003/diff/290001/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/157423003/diff/290001/Source/core/html/HTMLMediaElement.cpp#newcode324 Source/core/html/HTMLMediaElement.cpp:324: closeMediaSource(); On 2014/02/27 00:37:59, ddorwin wrote: > acolwell: Are ...
6 years, 10 months ago (2014-02-27 01:11:10 UTC) #22
c.shu
That's right, ddorwin. We can remove the encryptedmedia entries in core/DEPS. I will include this ...
6 years, 10 months ago (2014-02-27 01:14:04 UTC) #23
c.shu
Thanks for the review, guys. Most of the issues have been addressed. But a couple ...
6 years, 9 months ago (2014-02-27 14:49:45 UTC) #24
c.shu
The new patch addressed all the comments from ddorwin that I am sure about. A ...
6 years, 9 months ago (2014-02-27 22:54:10 UTC) #25
ddorwin
Looking good. Thanks. https://codereview.chromium.org/157423003/diff/290001/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/157423003/diff/290001/Source/core/html/HTMLMediaElement.cpp#newcode534 Source/core/html/HTMLMediaElement.cpp:534: m_asyncEventQueue->enqueueEvent(event); On 2014/02/27 14:49:46, c.shu wrote: ...
6 years, 9 months ago (2014-03-01 01:08:46 UTC) #26
ddorwin
FYI, we use a single BUG= entry with each number separated by commas. I fixed ...
6 years, 9 months ago (2014-03-01 01:09:49 UTC) #27
c.shu
addressed more review comments. thanks. https://codereview.chromium.org/157423003/diff/290001/Source/modules/encryptedmedia/HTMLMediaElementEncryptedMedia.cpp File Source/modules/encryptedmedia/HTMLMediaElementEncryptedMedia.cpp (right): https://codereview.chromium.org/157423003/diff/290001/Source/modules/encryptedmedia/HTMLMediaElementEncryptedMedia.cpp#newcode141 Source/modules/encryptedmedia/HTMLMediaElementEncryptedMedia.cpp:141: HTMLMediaElementEncryptedMedia::from(element).generateKeyRequest(element.player(), element.webMediaPlayer(), keySystem, initData, ...
6 years, 9 months ago (2014-03-02 15:35:05 UTC) #28
ddorwin
LGTM. Thank you!!
6 years, 9 months ago (2014-03-06 00:13:03 UTC) #29
c.shu
The CQ bit was checked by c.shu@samsung.com
6 years, 9 months ago (2014-03-06 00:18:33 UTC) #30
c.shu
The CQ bit was unchecked by c.shu@samsung.com
6 years, 9 months ago (2014-03-06 00:18:36 UTC) #31
acolwell GONE FROM CHROMIUM
lgtm % nits https://codereview.chromium.org/157423003/diff/330001/Source/modules/encryptedmedia/HTMLMediaElementEncryptedMedia.cpp File Source/modules/encryptedmedia/HTMLMediaElementEncryptedMedia.cpp (right): https://codereview.chromium.org/157423003/diff/330001/Source/modules/encryptedmedia/HTMLMediaElementEncryptedMedia.cpp#newcode90 Source/modules/encryptedmedia/HTMLMediaElementEncryptedMedia.cpp:90: ASSERT(m_emeMode = EmeModeUnprefixed); nit: s/=/==/? https://codereview.chromium.org/157423003/diff/330001/Source/modules/encryptedmedia/HTMLMediaElementEncryptedMedia.cpp#newcode217 ...
6 years, 9 months ago (2014-03-06 01:31:51 UTC) #32
ddorwin
https://codereview.chromium.org/157423003/diff/330001/Source/modules/encryptedmedia/HTMLMediaElementEncryptedMedia.cpp File Source/modules/encryptedmedia/HTMLMediaElementEncryptedMedia.cpp (right): https://codereview.chromium.org/157423003/diff/330001/Source/modules/encryptedmedia/HTMLMediaElementEncryptedMedia.cpp#newcode217 Source/modules/encryptedmedia/HTMLMediaElementEncryptedMedia.cpp:217: throwExceptionForMediaKeyException(keySystem, sessionId, result, exceptionState); On 2014/03/06 01:31:53, acolwell wrote: ...
6 years, 9 months ago (2014-03-06 02:01:18 UTC) #33
c.shu
Addressed some minor issues.
6 years, 9 months ago (2014-03-06 02:04:19 UTC) #34
c.shu
On 2014/03/06 02:01:18, ddorwin wrote: > https://codereview.chromium.org/157423003/diff/330001/Source/modules/encryptedmedia/HTMLMediaElementEncryptedMedia.cpp > File Source/modules/encryptedmedia/HTMLMediaElementEncryptedMedia.cpp (right): > > https://codereview.chromium.org/157423003/diff/330001/Source/modules/encryptedmedia/HTMLMediaElementEncryptedMedia.cpp#newcode217 > ...
6 years, 9 months ago (2014-03-06 02:05:08 UTC) #35
abarth-chromium
Source/core and Source/web LGTM Thanks! https://codereview.chromium.org/157423003/diff/350001/Source/core/DEPS File Source/core/DEPS (left): https://codereview.chromium.org/157423003/diff/350001/Source/core/DEPS#oldcode13 Source/core/DEPS:13: "!modules/encryptedmedia/MediaKeys.h", Yay! https://codereview.chromium.org/157423003/diff/350001/Source/core/html/HTMLMediaElement.h File ...
6 years, 9 months ago (2014-03-06 17:27:14 UTC) #36
abarth-chromium
The CQ bit was checked by abarth@chromium.org
6 years, 9 months ago (2014-03-06 17:35:57 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/c.shu@samsung.com/157423003/350001
6 years, 9 months ago (2014-03-06 17:36:16 UTC) #38
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-06 17:36:19 UTC) #39
commit-bot: I haz the power
Failed to apply patch for LayoutTests/media/encrypted-media/encrypted-media-not-loaded-expected.txt: While running patch -p1 --forward --force --no-backup-if-mismatch; can't find ...
6 years, 9 months ago (2014-03-06 17:36:20 UTC) #40
c.shu
Thanks for the review. https://codereview.chromium.org/157423003/diff/350001/Source/core/html/HTMLMediaElement.h File Source/core/html/HTMLMediaElement.h (right): https://codereview.chromium.org/157423003/diff/350001/Source/core/html/HTMLMediaElement.h#newcode83 Source/core/html/HTMLMediaElement.h:83: // Do not use player(). ...
6 years, 9 months ago (2014-03-06 17:37:16 UTC) #41
c.shu
The CQ bit was checked by c.shu@samsung.com
6 years, 9 months ago (2014-03-06 19:38:18 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/c.shu@samsung.com/157423003/370001
6 years, 9 months ago (2014-03-06 19:38:33 UTC) #43
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-06 20:12:52 UTC) #44
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel
6 years, 9 months ago (2014-03-06 20:12:53 UTC) #45
c.shu
The CQ bit was checked by c.shu@samsung.com
6 years, 9 months ago (2014-03-06 20:25:10 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/c.shu@samsung.com/157423003/380001
6 years, 9 months ago (2014-03-06 20:25:23 UTC) #47
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-06 21:41:56 UTC) #48
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink
6 years, 9 months ago (2014-03-06 21:41:57 UTC) #49
c.shu
The CQ bit was checked by c.shu@samsung.com
6 years, 9 months ago (2014-03-06 23:24:56 UTC) #50
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/c.shu@samsung.com/157423003/380001
6 years, 9 months ago (2014-03-06 23:25:12 UTC) #51
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-07 01:34:04 UTC) #52
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink
6 years, 9 months ago (2014-03-07 01:34:05 UTC) #53
abarth-chromium
The CQ bit was checked by abarth@chromium.org
6 years, 9 months ago (2014-03-07 01:39:17 UTC) #54
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/c.shu@samsung.com/157423003/380001
6 years, 9 months ago (2014-03-07 01:39:27 UTC) #55
commit-bot: I haz the power
6 years, 9 months ago (2014-03-07 05:06:00 UTC) #56
Message was sent while issue was closed.
Change committed as 168704

Powered by Google App Engine
This is Rietveld 408576698