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

Issue 1237343004: Convert MediaKeyStatusMap to iterable<BufferSource,MediaKeyStatus> (Closed)

Created:
5 years, 5 months ago by jrummell
Modified:
4 years, 6 months ago
CC:
blink-reviews, mlamouri+watch-blink_chromium.org, feature-media-reviews_chromium.org, philipj_slow, eric.carlson_apple.com
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Convert MediaKeyStatusMap to iterable<BufferSource,MediaKeyStatus> EME spec has changed MediaKeyStatusMap from maplike to iterable, so update the code to match. BUG=507753, 587916 TEST=EME layout tests pass Committed: https://crrev.com/8cdb012b5e4b8e6b9820da0e8d25fcf0dfd02631 Cr-Commit-Position: refs/heads/master@{#400041}

Patch Set 1 #

Total comments: 2

Patch Set 2 : rebase #

Patch Set 3 : return null #

Patch Set 4 : return undefined #

Patch Set 5 : return any #

Total comments: 11

Patch Set 6 : changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -30 lines) Patch
M third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-keystatuses.html View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-utils.js View 1 2 3 4 5 1 chunk +10 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/modules/encryptedmedia/MediaKeyStatusMap.h View 1 2 3 4 3 chunks +7 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/encryptedmedia/MediaKeyStatusMap.cpp View 1 2 3 4 5 2 chunks +17 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/modules/encryptedmedia/MediaKeyStatusMap.idl View 1 2 3 4 1 chunk +4 lines, -3 lines 0 comments Download

Messages

Total messages: 24 (10 generated)
jrummell
PTAL. Although the EME spec has an entry for forEach(), it is provided as part ...
5 years, 5 months ago (2015-07-16 03:11:27 UTC) #2
sandersd (OOO until July 31)
lgtm https://codereview.chromium.org/1237343004/diff/1/Source/modules/encryptedmedia/MediaKeyStatusMap.idl File Source/modules/encryptedmedia/MediaKeyStatusMap.idl (right): https://codereview.chromium.org/1237343004/diff/1/Source/modules/encryptedmedia/MediaKeyStatusMap.idl#newcode21 Source/modules/encryptedmedia/MediaKeyStatusMap.idl:21: boolean has (BufferSource keyId); Remove spaces before method ...
5 years, 4 months ago (2015-08-07 23:11:36 UTC) #3
jrummell
rebased now that the key ordering was checked in separately. https://codereview.chromium.org/1237343004/diff/1/Source/modules/encryptedmedia/MediaKeyStatusMap.idl File Source/modules/encryptedmedia/MediaKeyStatusMap.idl (right): https://codereview.chromium.org/1237343004/diff/1/Source/modules/encryptedmedia/MediaKeyStatusMap.idl#newcode21 ...
5 years, 4 months ago (2015-08-13 17:59:00 UTC) #5
jrummell
Updated to bring up-to-date, and get it working with the current idl. However, get() for ...
4 years, 6 months ago (2016-06-06 19:17:03 UTC) #8
jrummell
Updated to return undefined if get() doesn't find a matching entry. This requires a custom ...
4 years, 6 months ago (2016-06-08 23:23:21 UTC) #11
haraken
On 2016/06/08 23:23:21, jrummell wrote: > Updated to return undefined if get() doesn't find a ...
4 years, 6 months ago (2016-06-09 01:52:35 UTC) #12
jrummell
The spec has been updated to return "any", so updating this CL to use that.
4 years, 6 months ago (2016-06-14 20:14:51 UTC) #13
ddorwin
Thanks for working through this! Just some minor stuff. https://codereview.chromium.org/1237343004/diff/100001/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-keystatuses.html File third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-keystatuses.html (right): https://codereview.chromium.org/1237343004/diff/100001/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-keystatuses.html#newcode93 third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-keystatuses.html:93: ...
4 years, 6 months ago (2016-06-14 20:56:05 UTC) #14
jrummell
Updated. https://codereview.chromium.org/1237343004/diff/100001/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-keystatuses.html File third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-keystatuses.html (right): https://codereview.chromium.org/1237343004/diff/100001/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-keystatuses.html#newcode93 third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-keystatuses.html:93: assert_true(mediaKeySession.keyStatuses.has(key1)); On 2016/06/14 20:56:05, ddorwin wrote: > It ...
4 years, 6 months ago (2016-06-14 22:24:21 UTC) #15
ddorwin
lgtm https://codereview.chromium.org/1237343004/diff/100001/third_party/WebKit/Source/modules/encryptedmedia/MediaKeyStatusMap.idl File third_party/WebKit/Source/modules/encryptedmedia/MediaKeyStatusMap.idl (right): https://codereview.chromium.org/1237343004/diff/100001/third_party/WebKit/Source/modules/encryptedmedia/MediaKeyStatusMap.idl#newcode18 third_party/WebKit/Source/modules/encryptedmedia/MediaKeyStatusMap.idl:18: iterable <BufferSource, MediaKeyStatus>; On 2016/06/14 22:24:21, jrummell wrote: ...
4 years, 6 months ago (2016-06-14 22:56:40 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1237343004/120001
4 years, 6 months ago (2016-06-15 21:18:27 UTC) #19
commit-bot: I haz the power
Committed patchset #6 (id:120001)
4 years, 6 months ago (2016-06-15 23:27:58 UTC) #21
commit-bot: I haz the power
CQ bit was unchecked
4 years, 6 months ago (2016-06-15 23:28:14 UTC) #22
commit-bot: I haz the power
4 years, 6 months ago (2016-06-15 23:29:07 UTC) #24
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/8cdb012b5e4b8e6b9820da0e8d25fcf0dfd02631
Cr-Commit-Position: refs/heads/master@{#400041}

Powered by Google App Engine
This is Rietveld 408576698