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

Issue 2831963003: EME: Allow temporary sessions to be removed for ClearKey only. (Closed)

Created:
3 years, 8 months ago by jrummell
Modified:
3 years, 8 months ago
Reviewers:
xhwang
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, qsr+mojo_chromium.org, eme-reviews_chromium.org, posciak+watch_chromium.org, viettrungluu+watch_chromium.org, jam, mlamouri+watch-blink_chromium.org, yzshen+watch_chromium.org, abarth-chromium, haraken, feature-media-reviews_chromium.org, darin-cc_chromium.org, eric.carlson_apple.com, blink-reviews, alokp+watch_chromium.org, darin (slow to review), Srirama, Aaron Boodman
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

EME: Allow temporary sessions to be removed for ClearKey only. The EME spec allows MediaKeySession::remove() to be called on temporary sessions, so update the code to allow it. Doing this for ClearKey only as other CDMs may not support it. BUG=616166 TEST=updated tests pass Review-Url: https://codereview.chromium.org/2831963003 Cr-Commit-Position: refs/heads/master@{#467106} Committed: https://chromium.googlesource.com/chromium/src/+/74fbc3d0e83f922543913db7b8b86a65c9d176d7

Patch Set 1 #

Total comments: 8

Patch Set 2 : add test #

Total comments: 6

Patch Set 3 : final changes #

Patch Set 4 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+300 lines, -113 lines) Patch
M content/renderer/media/cdm/render_cdm_factory.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M media/base/android/android_cdm_factory.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M media/blink/webcontentdecryptionmodulesession_impl.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M media/blink/webcontentdecryptionmodulesession_impl.cc View 1 2 4 chunks +16 lines, -1 line 0 comments Download
M media/cdm/aes_decryptor.h View 3 chunks +7 lines, -1 line 0 comments Download
M media/cdm/aes_decryptor.cc View 5 chunks +76 lines, -22 lines 0 comments Download
M media/cdm/aes_decryptor_unittest.cc View 1 4 chunks +33 lines, -5 lines 0 comments Download
M media/cdm/default_cdm_factory.cc View 1 chunk +1 line, -1 line 0 comments Download
M media/cdm/ppapi/external_clear_key/clear_key_cdm.h View 1 chunk +2 lines, -0 lines 0 comments Download
M media/cdm/ppapi/external_clear_key/clear_key_cdm.cc View 3 chunks +12 lines, -13 lines 0 comments Download
M media/mojo/clients/mojo_cdm_factory.cc View 1 chunk +1 line, -1 line 0 comments Download
M media/test/fake_encrypted_media.h View 1 2 3 2 chunks +5 lines, -0 lines 0 comments Download
M media/test/fake_encrypted_media.cc View 1 2 3 2 chunks +16 lines, -8 lines 0 comments Download
M media/test/pipeline_integration_test.cc View 1 2 3 2 chunks +8 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-session-remove-temporary.html View 1 2 1 chunk +57 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-syntax.html View 2 chunks +19 lines, -19 lines 0 comments Download
M third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-utils.js View 1 2 chunks +34 lines, -22 lines 0 comments Download
M third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp View 1 chunk +6 lines, -16 lines 0 comments Download

Messages

Total messages: 22 (13 generated)
jrummell
PTAL.
3 years, 8 months ago (2017-04-21 00:17:16 UTC) #2
xhwang
Thanks for working on this! As commented below, this CL is limited to ClearKey and ...
3 years, 8 months ago (2017-04-21 18:00:28 UTC) #7
jrummell
Updated. https://codereview.chromium.org/2831963003/diff/1/media/cdm/aes_decryptor_unittest.cc File media/cdm/aes_decryptor_unittest.cc (right): https://codereview.chromium.org/2831963003/diff/1/media/cdm/aes_decryptor_unittest.cc#newcode787 media/cdm/aes_decryptor_unittest.cc:787: RemoveSession(session_id); On 2017/04/21 18:00:28, xhwang_slow wrote: > Can ...
3 years, 8 months ago (2017-04-22 00:23:17 UTC) #9
xhwang
lgtm % nits, thanks! https://codereview.chromium.org/2831963003/diff/20001/media/blink/webcontentdecryptionmodulesession_impl.cc File media/blink/webcontentdecryptionmodulesession_impl.cc (right): https://codereview.chromium.org/2831963003/diff/20001/media/blink/webcontentdecryptionmodulesession_impl.cc#newcode473 media/blink/webcontentdecryptionmodulesession_impl.cc:473: "The session type is not ...
3 years, 8 months ago (2017-04-25 16:43:49 UTC) #10
jrummell
Thanks for the reviews. https://codereview.chromium.org/2831963003/diff/20001/media/blink/webcontentdecryptionmodulesession_impl.cc File media/blink/webcontentdecryptionmodulesession_impl.cc (right): https://codereview.chromium.org/2831963003/diff/20001/media/blink/webcontentdecryptionmodulesession_impl.cc#newcode473 media/blink/webcontentdecryptionmodulesession_impl.cc:473: "The session type is not ...
3 years, 8 months ago (2017-04-25 17:54:10 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2831963003/40001
3 years, 8 months ago (2017-04-25 17:54:52 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_clang_dbg_recipe/builds/255689) mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 8 months ago (2017-04-25 17:58:40 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2831963003/60001
3 years, 8 months ago (2017-04-25 18:55:33 UTC) #19
commit-bot: I haz the power
3 years, 8 months ago (2017-04-25 20:54:42 UTC) #22
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/74fbc3d0e83f922543913db7b8b8...

Powered by Google App Engine
This is Rietveld 408576698