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

Issue 543173002: Implement MediaKeySession.generateRequest() (Closed)

Created:
6 years, 3 months ago by jrummell
Modified:
6 years, 3 months ago
Reviewers:
xhwang, ddorwin
CC:
blink-reviews, feature-media-reviews_chromium.org, philipj_slow, eric.carlson_apple.com
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Implement MediaKeySession.generateRequest() The latest EME spec has MediaKeys.createSession() return the session object, and adds MediaKeySession.generateRequest() to actually call the CDM with the necessary |initData| for the session. This change also updates the layout tests to match the new way of creating sessions. BUG=358271 TEST=updated layout tests pass Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=181765

Patch Set 1 #

Total comments: 57

Patch Set 2 : create early #

Total comments: 28

Patch Set 3 : test changes #

Total comments: 8

Patch Set 4 : nits #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+492 lines, -450 lines) Patch
M LayoutTests/media/encrypted-media/encrypted-media-async-creation-with-gc.html View 1 1 chunk +4 lines, -2 lines 0 comments Download
M LayoutTests/media/encrypted-media/encrypted-media-lifetime-mediakeys-with-session.html View 1 1 chunk +3 lines, -2 lines 0 comments Download
M LayoutTests/media/encrypted-media/encrypted-media-lifetime-mediakeysession-reference.html View 1 1 chunk +9 lines, -9 lines 0 comments Download
M LayoutTests/media/encrypted-media/encrypted-media-lifetime-mediakeysession-release.html View 1 1 chunk +6 lines, -6 lines 0 comments Download
M LayoutTests/media/encrypted-media/encrypted-media-lifetime-mediakeysession-release-noreference.html View 1 1 chunk +6 lines, -6 lines 0 comments Download
M LayoutTests/media/encrypted-media/encrypted-media-lifetime-multiple-mediakeys.html View 1 1 chunk +4 lines, -1 line 0 comments Download
M LayoutTests/media/encrypted-media/encrypted-media-lifetime-reload.html View 1 chunk +3 lines, -4 lines 0 comments Download
M LayoutTests/media/encrypted-media/encrypted-media-playback-multiple-sessions.html View 1 1 chunk +6 lines, -4 lines 0 comments Download
M LayoutTests/media/encrypted-media/encrypted-media-playback-setmediakeys-after-src.html View 1 chunk +3 lines, -3 lines 0 comments Download
M LayoutTests/media/encrypted-media/encrypted-media-playback-setmediakeys-before-src.html View 1 chunk +3 lines, -3 lines 0 comments Download
M LayoutTests/media/encrypted-media/encrypted-media-session-closed-event.html View 1 1 chunk +4 lines, -2 lines 0 comments Download
M LayoutTests/media/encrypted-media/encrypted-media-v2-events.html View 1 chunk +2 lines, -3 lines 0 comments Download
M LayoutTests/media/encrypted-media/encrypted-media-v2-syntax.html View 1 2 3 14 chunks +157 lines, -113 lines 0 comments Download
M LayoutTests/media/encrypted-media/encrypted-media-waiting-for-a-key.html View 1 chunk +3 lines, -4 lines 0 comments Download
M Source/modules/encryptedmedia/MediaKeySession.h View 1 3 chunks +19 lines, -6 lines 0 comments Download
M Source/modules/encryptedmedia/MediaKeySession.cpp View 1 2 3 4 10 chunks +240 lines, -216 lines 0 comments Download
M Source/modules/encryptedmedia/MediaKeySession.idl View 1 chunk +4 lines, -0 lines 0 comments Download
M Source/modules/encryptedmedia/MediaKeys.h View 3 chunks +2 lines, -4 lines 0 comments Download
M Source/modules/encryptedmedia/MediaKeys.cpp View 1 2 3 4 2 chunks +12 lines, -60 lines 0 comments Download
M Source/modules/encryptedmedia/MediaKeys.idl View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 16 (4 generated)
jrummell
PTAL.
6 years, 3 months ago (2014-09-05 19:02:54 UTC) #2
ddorwin
Reviewed MKS code. https://codereview.chromium.org/543173002/diff/1/LayoutTests/media/encrypted-media/encrypted-media-async-creation-with-gc.html File LayoutTests/media/encrypted-media/encrypted-media-async-creation-with-gc.html (right): https://codereview.chromium.org/543173002/diff/1/LayoutTests/media/encrypted-media/encrypted-media-async-creation-with-gc.html#newcode22 LayoutTests/media/encrypted-media/encrypted-media-async-creation-with-gc.html:22: }).then(function(result) { There is no result ...
6 years, 3 months ago (2014-09-09 00:44:37 UTC) #3
ddorwin
Finished reviewing C++. The tests all appear to have the same issue with |result|. https://codereview.chromium.org/543173002/diff/1/Source/modules/encryptedmedia/MediaKeys.cpp ...
6 years, 3 months ago (2014-09-09 17:35:03 UTC) #4
jrummell
Updated. https://codereview.chromium.org/543173002/diff/1/LayoutTests/media/encrypted-media/encrypted-media-async-creation-with-gc.html File LayoutTests/media/encrypted-media/encrypted-media-async-creation-with-gc.html (right): https://codereview.chromium.org/543173002/diff/1/LayoutTests/media/encrypted-media/encrypted-media-async-creation-with-gc.html#newcode22 LayoutTests/media/encrypted-media/encrypted-media-async-creation-with-gc.html:22: }).then(function(result) { On 2014/09/09 00:44:35, ddorwin wrote: > ...
6 years, 3 months ago (2014-09-09 19:56:00 UTC) #5
ddorwin
Reviewed everything. Some replies in the previous PS. https://codereview.chromium.org/543173002/diff/1/Source/modules/encryptedmedia/MediaKeySession.cpp File Source/modules/encryptedmedia/MediaKeySession.cpp (right): https://codereview.chromium.org/543173002/diff/1/Source/modules/encryptedmedia/MediaKeySession.cpp#newcode222 Source/modules/encryptedmedia/MediaKeySession.cpp:222: , ...
6 years, 3 months ago (2014-09-09 21:35:25 UTC) #6
jrummell
Updated. https://codereview.chromium.org/543173002/diff/1/Source/modules/encryptedmedia/MediaKeySession.cpp File Source/modules/encryptedmedia/MediaKeySession.cpp (right): https://codereview.chromium.org/543173002/diff/1/Source/modules/encryptedmedia/MediaKeySession.cpp#newcode222 Source/modules/encryptedmedia/MediaKeySession.cpp:222: , m_expiration(nan("")) On 2014/09/09 21:35:24, ddorwin wrote: > ...
6 years, 3 months ago (2014-09-10 01:18:25 UTC) #7
ddorwin
LGTM % comments. https://codereview.chromium.org/543173002/diff/20001/LayoutTests/media/encrypted-media/encrypted-media-v2-syntax.html File LayoutTests/media/encrypted-media/encrypted-media-v2-syntax.html (right): https://codereview.chromium.org/543173002/diff/20001/LayoutTests/media/encrypted-media/encrypted-media-v2-syntax.html#newcode128 LayoutTests/media/encrypted-media/encrypted-media-v2-syntax.html:128: // shortened name, the error message ...
6 years, 3 months ago (2014-09-10 02:30:52 UTC) #8
jrummell
Thanks for the reviews. https://codereview.chromium.org/543173002/diff/40001/LayoutTests/media/encrypted-media/encrypted-media-v2-syntax.html File LayoutTests/media/encrypted-media/encrypted-media-v2-syntax.html (right): https://codereview.chromium.org/543173002/diff/40001/LayoutTests/media/encrypted-media/encrypted-media-v2-syntax.html#newcode129 LayoutTests/media/encrypted-media/encrypted-media-v2-syntax.html:129: // Too few parameters. On ...
6 years, 3 months ago (2014-09-10 18:11:35 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jrummell@chromium.org/543173002/60001
6 years, 3 months ago (2014-09-10 18:12:07 UTC) #11
commit-bot: I haz the power
Failed to apply patch for Source/modules/encryptedmedia/MediaKeySession.cpp: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 3 months ago (2014-09-10 18:12:21 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jrummell@chromium.org/543173002/80001
6 years, 3 months ago (2014-09-10 19:16:17 UTC) #15
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 20:21:20 UTC) #16
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as 181765

Powered by Google App Engine
This is Rietveld 408576698