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

Issue 2426813002: EME: Close existing sessions on CDM failure (Closed)

Created:
4 years, 2 months ago by jrummell
Modified:
4 years, 1 month ago
Reviewers:
xhwang, raymes
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, qsr+mojo_chromium.org, feature-media-reviews_chromium.org, viettrungluu+watch_chromium.org, jam, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin-cc_chromium.org, alokp+watch_chromium.org, darin (slow to review)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

EME: Close existing sessions on CDM failure When the CDM crashes, any existing open sessions should be closed. BUG=652856 TEST=new EME tests pass Committed: https://crrev.com/35c1aa881f655468ebafcf68e51ae2180f67a833 Cr-Commit-Position: refs/heads/master@{#432327}

Patch Set 1 #

Total comments: 4

Patch Set 2 : add test #

Total comments: 2

Patch Set 3 : rebase #

Patch Set 4 : add new tests #

Total comments: 6

Patch Set 5 : combine tests #

Total comments: 2

Patch Set 6 : rename result (+rebase) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+153 lines, -48 lines) Patch
M chrome/browser/media/encrypted_media_browsertest.cc View 1 2 3 4 5 2 chunks +8 lines, -7 lines 0 comments Download
M content/renderer/pepper/content_decryptor_delegate.h View 2 chunks +3 lines, -0 lines 0 comments Download
M content/renderer/pepper/content_decryptor_delegate.cc View 1 2 3 chunks +6 lines, -4 lines 0 comments Download
M media/base/BUILD.gn View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
A media/base/cdm_session_tracker.h View 1 1 chunk +43 lines, -0 lines 0 comments Download
A media/base/cdm_session_tracker.cc View 1 1 chunk +35 lines, -0 lines 0 comments Download
M media/mojo/clients/mojo_cdm.h View 1 2 5 chunks +12 lines, -8 lines 0 comments Download
M media/mojo/clients/mojo_cdm.cc View 1 2 7 chunks +21 lines, -18 lines 0 comments Download
M media/test/data/eme_player_js/clearkey_player.js View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M media/test/data/eme_player_js/globals.js View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M media/test/data/eme_player_js/player_utils.js View 1 2 3 4 5 4 chunks +20 lines, -10 lines 0 comments Download

Messages

Total messages: 22 (7 generated)
jrummell
PTAL.
4 years, 2 months ago (2016-10-17 23:53:53 UTC) #2
xhwang
looking good, just a nit and a comment https://chromiumcodereview.appspot.com/2426813002/diff/1/media/base/cdm_session_tracker.h File media/base/cdm_session_tracker.h (right): https://chromiumcodereview.appspot.com/2426813002/diff/1/media/base/cdm_session_tracker.h#newcode33 media/base/cdm_session_tracker.h:33: void ...
4 years, 2 months ago (2016-10-18 18:07:29 UTC) #3
jrummell
Updated the crash tests to verify that the session is closed. https://codereview.chromium.org/2426813002/diff/1/media/base/cdm_session_tracker.h File media/base/cdm_session_tracker.h (right): ...
4 years, 2 months ago (2016-10-20 22:11:25 UTC) #4
xhwang
looking good, I have one question though. https://codereview.chromium.org/2426813002/diff/20001/media/test/data/eme_player_js/player_utils.js File media/test/data/eme_player_js/player_utils.js (right): https://codereview.chromium.org/2426813002/diff/20001/media/test/data/eme_player_js/player_utils.js#newcode82 media/test/data/eme_player_js/player_utils.js:82: // If ...
4 years, 2 months ago (2016-10-20 22:38:59 UTC) #5
jrummell
Updated with new test, restoring the old ones. PS#3 is a rebase to get current, ...
4 years, 1 month ago (2016-11-01 01:08:46 UTC) #7
xhwang
Thank you and sorry for the delay. I somehow missed this one. The new PS ...
4 years, 1 month ago (2016-11-04 22:37:41 UTC) #8
jrummell
Tests now combined. https://codereview.chromium.org/2426813002/diff/60001/media/cdm/ppapi/external_clear_key/clear_key_cdm.cc File media/cdm/ppapi/external_clear_key/clear_key_cdm.cc (right): https://codereview.chromium.org/2426813002/diff/60001/media/cdm/ppapi/external_clear_key/clear_key_cdm.cc#newcode248 media/cdm/ppapi/external_clear_key/clear_key_cdm.cc:248: key_system_string != kExternalClearKeyCloseOnCrashKeySystem) { On 2016/11/04 ...
4 years, 1 month ago (2016-11-07 22:03:48 UTC) #9
xhwang
lgtm % comment https://codereview.chromium.org/2426813002/diff/80001/media/test/data/eme_player_js/player_utils.js File media/test/data/eme_player_js/player_utils.js (right): https://codereview.chromium.org/2426813002/diff/80001/media/test/data/eme_player_js/player_utils.js#newcode35 media/test/data/eme_player_js/player_utils.js:35: // On failure the session should ...
4 years, 1 month ago (2016-11-09 00:14:40 UTC) #10
xhwang
BTW, I like this CL! Thank you for the great work!
4 years, 1 month ago (2016-11-09 00:15:04 UTC) #11
jrummell
+raymes@ for OWNERS review of content/renderer/pepper/* https://codereview.chromium.org/2426813002/diff/80001/media/test/data/eme_player_js/player_utils.js File media/test/data/eme_player_js/player_utils.js (right): https://codereview.chromium.org/2426813002/diff/80001/media/test/data/eme_player_js/player_utils.js#newcode35 media/test/data/eme_player_js/player_utils.js:35: // On failure ...
4 years, 1 month ago (2016-11-09 23:44:01 UTC) #13
jrummell
pinging raymes@ for OWNERS review of content/renderer/pepper/*. It's a small change in these 2 files ...
4 years, 1 month ago (2016-11-15 20:16:15 UTC) #14
raymes
Sorry for the delay, I missed this. Thanks for pinging. pepper rubberstamp lgtm
4 years, 1 month ago (2016-11-15 21:38:23 UTC) #15
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/2426813002/100001
4 years, 1 month ago (2016-11-15 22:24:12 UTC) #18
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 1 month ago (2016-11-16 00:49:44 UTC) #20
commit-bot: I haz the power
4 years, 1 month ago (2016-11-16 00:52:03 UTC) #22
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/35c1aa881f655468ebafcf68e51ae2180f67a833
Cr-Commit-Position: refs/heads/master@{#432327}

Powered by Google App Engine
This is Rietveld 408576698