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

Issue 16387015: Make unprefixed EME APIs use platform and Chromium. (Closed)

Created:
7 years, 6 months ago by ddorwin
Modified:
7 years, 6 months ago
CC:
blink-reviews, jamesr, eae+blinkwatch, danakj, feature-media-reviews_chromium.org, Rik, Stephen Chennney, jeez, pdr.
Visibility:
Public.

Description

Make unprefixed EME APIs use platform APIs. This CL replaces much of the previous implementation and removes MockCDM. BUG=224791 TEST=v2 layout tests pass using org.w3.clearkey and Chromium's stubbed implementation. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=152520

Patch Set 1 #

Total comments: 20

Patch Set 2 : Renamed files and classes only #

Patch Set 3 : other review feedback #

Patch Set 4 : "unsigned" -> "size_t" for lengths #

Total comments: 26

Patch Set 5 : review feedback #

Patch Set 6 : Use get() #

Patch Set 7 : Remove platform APIs from this CL. #

Patch Set 8 : rebase #

Patch Set 9 : KURL.h moved #

Unified diffs Side-by-side diffs Delta from patch set Stats (+455 lines, -672 lines) Patch
M LayoutTests/media/encrypted-media/encrypted-media-v2-events.html View 1 chunk +3 lines, -9 lines 0 comments Download
M LayoutTests/media/encrypted-media/encrypted-media-v2-events-expected.txt View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/media/encrypted-media/encrypted-media-v2-syntax.html View 1 chunk +4 lines, -10 lines 0 comments Download
M LayoutTests/media/encrypted-media/encrypted-media-v2-syntax-expected.txt View 1 chunk +4 lines, -4 lines 0 comments Download
M Source/WebKit/chromium/src/AssertMatchingEnums.cpp View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M Source/core/core.gypi View 1 2 3 4 5 6 7 2 chunks +4 lines, -2 lines 0 comments Download
A Source/core/platform/graphics/ContentDecryptionModule.h View 1 2 3 4 1 chunk +62 lines, -0 lines 0 comments Download
A Source/core/platform/graphics/ContentDecryptionModule.cpp View 1 2 3 4 5 1 chunk +80 lines, -0 lines 0 comments Download
A Source/core/platform/graphics/ContentDecryptionModuleSession.h View 1 2 3 4 1 chunk +84 lines, -0 lines 0 comments Download
A Source/core/platform/graphics/ContentDecryptionModuleSession.cpp View 1 2 3 4 5 6 7 8 1 chunk +89 lines, -0 lines 0 comments Download
M Source/core/testing/Internals.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -4 lines 0 comments Download
M Source/core/testing/Internals.cpp View 1 2 3 4 5 6 7 2 chunks +0 lines, -12 lines 0 comments Download
M Source/core/testing/Internals.idl View 1 2 3 4 5 6 7 1 chunk +0 lines, -2 lines 0 comments Download
D Source/core/testing/MockCDM.h View 1 chunk +0 lines, -58 lines 0 comments Download
D Source/core/testing/MockCDM.cpp View 1 chunk +0 lines, -144 lines 0 comments Download
D Source/modules/encryptedmedia/CDM.h View 1 chunk +0 lines, -95 lines 0 comments Download
D Source/modules/encryptedmedia/CDM.cpp View 1 chunk +0 lines, -123 lines 0 comments Download
D Source/modules/encryptedmedia/CDMPrivate.h View 1 chunk +0 lines, -52 lines 0 comments Download
M Source/modules/encryptedmedia/MediaKeySession.h View 1 2 3 4 4 chunks +23 lines, -17 lines 0 comments Download
M Source/modules/encryptedmedia/MediaKeySession.cpp View 1 2 3 4 6 chunks +65 lines, -96 lines 0 comments Download
M Source/modules/encryptedmedia/MediaKeys.h View 1 3 chunks +9 lines, -14 lines 0 comments Download
M Source/modules/encryptedmedia/MediaKeys.cpp View 1 2 3 4 5 4 chunks +22 lines, -26 lines 0 comments Download
M Source/modules/modules.gypi View 1 2 3 4 5 6 7 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
ddorwin
See also the corresponding Chromium CL: https://codereview.chromium.org/16583004/ To avoid breaking the existing v2 layout tests, ...
7 years, 6 months ago (2013-06-06 23:22:38 UTC) #1
ddorwin
Added questions I have as comments. https://codereview.chromium.org/16387015/diff/1/Source/core/platform/graphics/CDMSession.h File Source/core/platform/graphics/CDMSession.h (right): https://codereview.chromium.org/16387015/diff/1/Source/core/platform/graphics/CDMSession.h#newcode48 Source/core/platform/graphics/CDMSession.h:48: class CDMSessionClient { ...
7 years, 6 months ago (2013-06-06 23:29:50 UTC) #2
abarth-chromium
Sorry, I was distracted while reading this CL. Here are some rough comments. https://codereview.chromium.org/16387015/diff/1/Source/core/platform/graphics/CDM.h File ...
7 years, 6 months ago (2013-06-07 00:08:23 UTC) #3
ddorwin
PTAL. I renamed the classes/files and collapsed the Chromium classes into the base class. https://codereview.chromium.org/16387015/diff/1/Source/core/platform/graphics/CDM.h ...
7 years, 6 months ago (2013-06-10 22:52:34 UTC) #4
scherkus (not reviewing)
(lgtm, but I'm not a WK reviewer)
7 years, 6 months ago (2013-06-12 00:51:15 UTC) #5
ddorwin
abarth, friendly ping to please take another look.
7 years, 6 months ago (2013-06-12 19:55:55 UTC) #6
abarth-chromium
Thanks. This is on my list for today.
7 years, 6 months ago (2013-06-12 20:45:18 UTC) #7
abarth-chromium
LGTM. Some very minor nits below. https://codereview.chromium.org/16387015/diff/46002/Source/core/platform/graphics/ContentDecryptionModule.cpp File Source/core/platform/graphics/ContentDecryptionModule.cpp (right): https://codereview.chromium.org/16387015/diff/46002/Source/core/platform/graphics/ContentDecryptionModule.cpp#newcode48 Source/core/platform/graphics/ContentDecryptionModule.cpp:48: return false; You ...
7 years, 6 months ago (2013-06-12 23:03:51 UTC) #8
abarth-chromium
https://codereview.chromium.org/16387015/diff/46002/Source/core/platform/graphics/ContentDecryptionModule.cpp File Source/core/platform/graphics/ContentDecryptionModule.cpp (right): https://codereview.chromium.org/16387015/diff/46002/Source/core/platform/graphics/ContentDecryptionModule.cpp#newcode58 Source/core/platform/graphics/ContentDecryptionModule.cpp:58: return adoptPtr(new ContentDecryptionModule(cdm.release())); On 2013/06/12 23:03:51, abarth wrote: > ...
7 years, 6 months ago (2013-06-12 23:26:38 UTC) #9
abarth-chromium
7 years, 6 months ago (2013-06-12 23:26:40 UTC) #10
ddorwin
Thanks. https://codereview.chromium.org/16387015/diff/46002/Source/core/platform/graphics/ContentDecryptionModule.cpp File Source/core/platform/graphics/ContentDecryptionModule.cpp (right): https://codereview.chromium.org/16387015/diff/46002/Source/core/platform/graphics/ContentDecryptionModule.cpp#newcode48 Source/core/platform/graphics/ContentDecryptionModule.cpp:48: return false; On 2013/06/12 23:03:51, abarth wrote: > ...
7 years, 6 months ago (2013-06-12 23:55:54 UTC) #11
abarth-chromium
Why do you need to call leakPtr() ? Can't you just call get()?
7 years, 6 months ago (2013-06-12 23:57:38 UTC) #12
ddorwin
Yes. Done.
7 years, 6 months ago (2013-06-13 00:17:53 UTC) #13
ddorwin
The public/platform files from <= PS6 are now in https://codereview.chromium.org/16841007/.
7 years, 6 months ago (2013-06-13 00:20:07 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ddorwin@chromium.org/16387015/76002
7 years, 6 months ago (2013-06-17 01:29:19 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ddorwin@chromium.org/16387015/91001
7 years, 6 months ago (2013-06-17 03:40:14 UTC) #16
commit-bot: I haz the power
7 years, 6 months ago (2013-06-17 05:13:19 UTC) #17
Message was sent while issue was closed.
Change committed as 152520

Powered by Google App Engine
This is Rietveld 408576698