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

Issue 111043004: Update MediaKeySession method names to latest EME spec. (Closed)

Created:
6 years, 11 months ago by xhwang
Modified:
6 years, 11 months ago
CC:
blink-reviews, feature-media-reviews_chromium.org, dglazkov+blink, philipj_slow, jamesr, abarth-chromium
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Update MediaKeySession method names to latest EME spec. Renaming and comment cleanup only. The real spec compiant changes will be made in another CL. The chromium side change is at: https://codereview.chromium.org/101693009/ Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=164896

Patch Set 1 #

Total comments: 9

Patch Set 2 : #

Total comments: 19

Patch Set 3 : #

Patch Set 4 : comments addressed or FIXME added #

Total comments: 18

Patch Set 5 : #

Patch Set 6 : comments addressed #

Total comments: 2

Patch Set 7 : comments addressed #

Patch Set 8 : rebase only #

Patch Set 9 : rebase only #

Patch Set 10 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -65 lines) Patch
M Source/modules/encryptedmedia/MediaKeySession.h View 1 2 3 4 5 6 7 8 3 chunks +9 lines, -7 lines 0 comments Download
M Source/modules/encryptedmedia/MediaKeySession.cpp View 1 2 3 4 5 6 7 8 4 chunks +19 lines, -34 lines 0 comments Download
M Source/modules/encryptedmedia/MediaKeySession.idl View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/encryptedmedia/MediaKeys.cpp View 1 2 3 4 5 6 7 8 2 chunks +15 lines, -15 lines 0 comments Download
M Source/platform/drm/ContentDecryptionModuleSession.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
M Source/platform/drm/ContentDecryptionModuleSession.cpp View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -4 lines 0 comments Download
M public/platform/WebContentDecryptionModuleSession.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
xhwang
PTAL
6 years, 11 months ago (2014-01-04 01:03:46 UTC) #1
xhwang
This CL is based contains changes in https://codereview.chromium.org/117323005/. I'll rebase this CL after https://codereview.chromium.org/117323005/ is ...
6 years, 11 months ago (2014-01-04 01:07:53 UTC) #2
acolwell GONE FROM CHROMIUM
lgtm % nits https://codereview.chromium.org/111043004/diff/1/Source/modules/encryptedmedia/MediaKeySession.cpp File Source/modules/encryptedmedia/MediaKeySession.cpp (right): https://codereview.chromium.org/111043004/diff/1/Source/modules/encryptedmedia/MediaKeySession.cpp#newcode113 Source/modules/encryptedmedia/MediaKeySession.cpp:113: m_session->initialize(m_pendingMimeType, *m_pendingInitData); The *m_pendingInitData doesn't look ...
6 years, 11 months ago (2014-01-06 20:18:37 UTC) #3
ddorwin
Some of our comments overlap but are in different Patch Sets even though the contents ...
6 years, 11 months ago (2014-01-07 02:41:55 UTC) #4
xhwang
I added FIXME for some non-renaming related comments, which will be addressed in a later ...
6 years, 11 months ago (2014-01-09 01:04:41 UTC) #5
ddorwin
https://codereview.chromium.org/111043004/diff/200001/Source/modules/encryptedmedia/MediaKeySession.cpp File Source/modules/encryptedmedia/MediaKeySession.cpp (right): https://codereview.chromium.org/111043004/diff/200001/Source/modules/encryptedmedia/MediaKeySession.cpp#newcode59 Source/modules/encryptedmedia/MediaKeySession.cpp:59: release(); We should NOT call release(). We may, however, ...
6 years, 11 months ago (2014-01-09 01:35:31 UTC) #6
xhwang
comments addressed
6 years, 11 months ago (2014-01-09 02:31:08 UTC) #7
xhwang
Comments mostly addressed and more FIXME added :) PTAL again https://codereview.chromium.org/111043004/diff/200001/Source/modules/encryptedmedia/MediaKeySession.cpp File Source/modules/encryptedmedia/MediaKeySession.cpp (right): https://codereview.chromium.org/111043004/diff/200001/Source/modules/encryptedmedia/MediaKeySession.cpp#newcode59 ...
6 years, 11 months ago (2014-01-09 02:32:17 UTC) #8
ddorwin
LGTM with 2 comments (one in PS4). https://codereview.chromium.org/111043004/diff/200001/Source/modules/encryptedmedia/MediaKeys.cpp File Source/modules/encryptedmedia/MediaKeys.cpp (right): https://codereview.chromium.org/111043004/diff/200001/Source/modules/encryptedmedia/MediaKeys.cpp#newcode117 Source/modules/encryptedmedia/MediaKeys.cpp:117: // FIXME: ...
6 years, 11 months ago (2014-01-09 18:05:32 UTC) #9
xhwang
comments addressed
6 years, 11 months ago (2014-01-09 20:01:08 UTC) #10
xhwang
https://codereview.chromium.org/111043004/diff/200001/Source/modules/encryptedmedia/MediaKeys.cpp File Source/modules/encryptedmedia/MediaKeys.cpp (right): https://codereview.chromium.org/111043004/diff/200001/Source/modules/encryptedmedia/MediaKeys.cpp#newcode117 Source/modules/encryptedmedia/MediaKeys.cpp:117: // FIXME: |initData| may be 0. We need to ...
6 years, 11 months ago (2014-01-09 20:01:26 UTC) #11
xhwang
rebase only
6 years, 11 months ago (2014-01-09 20:08:14 UTC) #12
xhwang
abarth@: Please owners review this CL, thanks!
6 years, 11 months ago (2014-01-09 20:44:04 UTC) #13
xhwang
On 2014/01/09 20:44:04, xhwang wrote: > abarth@: Please owners review this CL, thanks! To clarify, ...
6 years, 11 months ago (2014-01-09 20:49:14 UTC) #14
abarth-chromium
Source/platform and public/platform LGTM
6 years, 11 months ago (2014-01-09 22:27:10 UTC) #15
xhwang
rebase only
6 years, 11 months ago (2014-01-10 18:16:00 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xhwang@chromium.org/111043004/580001
6 years, 11 months ago (2014-01-10 18:25:56 UTC) #17
commit-bot: I haz the power
Change committed as 164896
6 years, 11 months ago (2014-01-10 19:52:23 UTC) #18
ddorwin
6 years, 11 months ago (2014-01-25 01:49:35 UTC) #19
Message was sent while issue was closed.
I added a few updates on things discussed in this CL that have now been resolved
in the spec. Some of the FIXMEs have been resolved, but we should go through and
make sure we're following the spec and have the appropriate steps listed.

https://codereview.chromium.org/111043004/diff/1/Source/modules/encryptedmedi...
File Source/modules/encryptedmedia/MediaKeys.cpp (right):

https://codereview.chromium.org/111043004/diff/1/Source/modules/encryptedmedi...
Source/modules/encryptedmedia/MediaKeys.cpp:94: // If type is null or an empty
string and initData is not null or an empty string, throw an
On 2014/01/09 01:04:41, xhwang wrote:
> On 2014/01/06 20:18:37, acolwell wrote:
> > nit: Why is this no longer a step in the spec? This behavior should be
defined
> > there.
> 
> Added FIXME.

This is now steps in the spec:
https://dvcs.w3.org/hg/html-media/rev/2e9c25eede16

https://codereview.chromium.org/111043004/diff/100001/Source/modules/encrypte...
File Source/modules/encryptedmedia/MediaKeySession.cpp (right):

https://codereview.chromium.org/111043004/diff/100001/Source/modules/encrypte...
Source/modules/encryptedmedia/MediaKeySession.cpp:105: // 3. Wait for the
MediaKeys constructor task to complete.
On 2014/01/09 01:04:41, xhwang wrote:
> On 2014/01/07 02:41:55, ddorwin wrote:
> > Should we implement steps 3 and 4 in Blink or Chromium? These seem like
> > something we could handle in Blink. WDYT? The real question is where we know
> > that the constructor task has completed and where errors are stored.
> > 
> > (Regardless, I think I'm going to swap 1-2 and 3-4 in the spec.
> 
> Added a FIXME.

FYI, I made this change: https://dvcs.w3.org/hg/html-media/rev/b24748c3d28a

https://codereview.chromium.org/111043004/diff/100001/Source/modules/encrypte...
File Source/modules/encryptedmedia/MediaKeys.cpp (right):

https://codereview.chromium.org/111043004/diff/100001/Source/modules/encrypte...
Source/modules/encryptedmedia/MediaKeys.cpp:94: // If type is null or an empty
string and initData is not null or an empty string, throw an
On 2014/01/09 01:04:41, xhwang wrote:
> On 2014/01/07 02:41:55, ddorwin wrote:
> > Can type be null?
> > The parameters are no longer optional in the spec IDL. Please update the IDL
> and
> > test it. Then you can probably remove this step.
> > 
> > That leaves the empty string, which is not explicitly enforced by the spec.
We
> > should probably just let supportsMIMEType() handle that (but make sure we
have
> > tests!).
> > 
> > initData is not optional either (can't be NULL I hope), but it could
> > theoretically be empty. (It was never a "string". :) )
> 
> This change will be non-tribial. Added FIXME.

This is now enforced by steps in the spec:
https://dvcs.w3.org/hg/html-media/rev/2e9c25eede16

Powered by Google App Engine
This is Rietveld 408576698