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

Issue 379343003: Set callback interface on WebCDMSession after creation. (Closed)

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

Description

Set callback interface on WebCDMSession after creation. In order to allow MediaKeySession to be created only when resolving the promise, add the ability to set the client callback interface on WebContentDecryptionModuleSession after the object is created. BUG=358271 TEST=EME layouts tests pass Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=178407

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rebase on promises #

Total comments: 4

Patch Set 3 : Use ...WillBe... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -37 lines) Patch
M Source/modules/encryptedmedia/MediaKeySession.h View 1 1 chunk +1 line, -2 lines 0 comments Download
M Source/modules/encryptedmedia/MediaKeySession.cpp View 1 2 6 chunks +21 lines, -34 lines 0 comments Download
M public/platform/WebContentDecryptionModule.h View 1 chunk +1 line, -1 line 0 comments Download
M public/platform/WebContentDecryptionModuleSession.h View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
jrummell
PTAL. Chromium changes in https://codereview.chromium.org/380953002/ and need to be submitted first.
6 years, 5 months ago (2014-07-09 23:54:14 UTC) #1
ddorwin
https://codereview.chromium.org/379343003/diff/1/Source/modules/encryptedmedia/MediaKeySession.cpp File Source/modules/encryptedmedia/MediaKeySession.cpp (right): https://codereview.chromium.org/379343003/diff/1/Source/modules/encryptedmedia/MediaKeySession.cpp#newcode81 Source/modules/encryptedmedia/MediaKeySession.cpp:81: m_session->setClientInterface(this); The point of this change is to allow ...
6 years, 5 months ago (2014-07-10 23:22:30 UTC) #2
jrummell
Discussed off-line. Will wait until EME promises land. https://codereview.chromium.org/379343003/diff/1/Source/modules/encryptedmedia/MediaKeySession.cpp File Source/modules/encryptedmedia/MediaKeySession.cpp (right): https://codereview.chromium.org/379343003/diff/1/Source/modules/encryptedmedia/MediaKeySession.cpp#newcode81 Source/modules/encryptedmedia/MediaKeySession.cpp:81: m_session->setClientInterface(this); ...
6 years, 5 months ago (2014-07-11 00:55:54 UTC) #3
jrummell
Updated to use the promises code. MediaKeySession now created only when resolving the promise. PTAL.
6 years, 5 months ago (2014-07-16 23:41:24 UTC) #4
ddorwin
LGTM I assume the Chromium changes are already implemented or will be before landing.
6 years, 5 months ago (2014-07-17 00:41:05 UTC) #5
jrummell
+acolwell, for review as media blink owner. +abarth, for proper OWNERS review of public/platform.
6 years, 5 months ago (2014-07-17 00:45:43 UTC) #6
abarth-chromium
public/platform LGTM
6 years, 5 months ago (2014-07-17 05:23:46 UTC) #7
acolwell GONE FROM CHROMIUM
https://codereview.chromium.org/379343003/diff/20001/Source/modules/encryptedmedia/MediaKeySession.cpp File Source/modules/encryptedmedia/MediaKeySession.cpp (right): https://codereview.chromium.org/379343003/diff/20001/Source/modules/encryptedmedia/MediaKeySession.cpp#newcode229 Source/modules/encryptedmedia/MediaKeySession.cpp:229: MediaKeySession* session = adoptRefCountedGarbageCollectedWillBeNoop(new MediaKeySession(executionContext(), m_mediaKeys, m_cdmSession.release())); Isn't this ...
6 years, 5 months ago (2014-07-17 17:45:25 UTC) #8
jrummell
Answering acolwell's question. https://codereview.chromium.org/379343003/diff/20001/Source/modules/encryptedmedia/MediaKeySession.cpp File Source/modules/encryptedmedia/MediaKeySession.cpp (right): https://codereview.chromium.org/379343003/diff/20001/Source/modules/encryptedmedia/MediaKeySession.cpp#newcode229 Source/modules/encryptedmedia/MediaKeySession.cpp:229: MediaKeySession* session = adoptRefCountedGarbageCollectedWillBeNoop(new MediaKeySession(executionContext(), m_mediaKeys, ...
6 years, 5 months ago (2014-07-17 19:03:08 UTC) #9
acolwell GONE FROM CHROMIUM
lgtm https://codereview.chromium.org/379343003/diff/20001/Source/modules/encryptedmedia/MediaKeySession.cpp File Source/modules/encryptedmedia/MediaKeySession.cpp (right): https://codereview.chromium.org/379343003/diff/20001/Source/modules/encryptedmedia/MediaKeySession.cpp#newcode229 Source/modules/encryptedmedia/MediaKeySession.cpp:229: MediaKeySession* session = adoptRefCountedGarbageCollectedWillBeNoop(new MediaKeySession(executionContext(), m_mediaKeys, m_cdmSession.release())); On ...
6 years, 5 months ago (2014-07-17 19:16:04 UTC) #10
jrummell
Thanks for the reviews. I changed MKS* to RefPtrWillBeRawPtr<MKS> for clarity. Compiles with and without ...
6 years, 5 months ago (2014-07-17 21:33:48 UTC) #11
jrummell
The CQ bit was checked by jrummell@chromium.org
6 years, 5 months ago (2014-07-17 21:37:13 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jrummell@chromium.org/379343003/40001
6 years, 5 months ago (2014-07-17 21:38:18 UTC) #13
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_gpu_triggered_tests on tryserver.chromium.gpu ...
6 years, 5 months ago (2014-07-17 22:42:01 UTC) #14
commit-bot: I haz the power
6 years, 5 months ago (2014-07-17 23:31:16 UTC) #15
Message was sent while issue was closed.
Change committed as 178407

Powered by Google App Engine
This is Rietveld 408576698