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

Issue 2545083004: [eme] Handle multiple calls to MediaKeySession.close() (Closed)

Created:
4 years ago by jrummell
Modified:
4 years ago
Reviewers:
xhwang
CC:
chromium-reviews, eme-reviews_chromium.org, mlamouri+watch-blink_chromium.org, eric.carlson_apple.com, feature-media-reviews_chromium.org, blink-reviews, Srirama
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[eme] Handle multiple calls to MediaKeySession.close() Since the close() operation is asynchronous, there is a window where close() can be called a second time before the session is actually closed. Changes allow the second close() to succeed if it is called while the first close() is being processed. BUG=668312 TEST=new test passes Committed: https://crrev.com/38f66de2415c72b0e37ead48bba85d335d37fc0c Cr-Commit-Position: refs/heads/master@{#438591}

Patch Set 1 #

Total comments: 6

Patch Set 2 : changes (+rebase) #

Patch Set 3 : rebase #

Patch Set 4 : rebase for MediaKeys rename #

Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -15 lines) Patch
M media/base/content_decryption_module.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M media/blink/webcontentdecryptionmodulesession_impl.cc View 1 2 3 1 chunk +10 lines, -6 lines 0 comments Download
M media/cdm/aes_decryptor.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M media/cdm/aes_decryptor.cc View 1 2 3 3 chunks +21 lines, -7 lines 0 comments Download
A third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-session-multiple-close.html View 1 1 chunk +41 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (18 generated)
jrummell
PTAL.
4 years ago (2016-12-03 01:29:53 UTC) #2
xhwang
This change will push the complexity down to every CDM implementation. I feel we should ...
4 years ago (2016-12-03 03:11:51 UTC) #3
jrummell
On 2016/12/03 03:11:51, xhwang wrote: > This change will push the complexity down to every ...
4 years ago (2016-12-06 00:16:41 UTC) #4
xhwang
Thanks! Could you please also update media_keys.h and CDM.h to make this clear? https://codereview.chromium.org/2545083004/diff/1/media/cdm/aes_decryptor.cc File ...
4 years ago (2016-12-07 06:51:42 UTC) #5
jrummell
Updated. > Could you please also update media_keys.h and CDM.h to make this clear? media_keys.h ...
4 years ago (2016-12-07 22:26:50 UTC) #6
xhwang
Thanks! lgtm
4 years ago (2016-12-07 22:36:55 UTC) #7
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/2545083004/20001
4 years ago (2016-12-07 23:09:39 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/81633)
4 years ago (2016-12-08 00:40:04 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/2545083004/20001
4 years ago (2016-12-08 00:50:01 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/81753)
4 years ago (2016-12-08 02:23:26 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/2545083004/20001
4 years ago (2016-12-08 23:53:08 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: android_compile_dbg on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_compile_dbg/builds/178168)
4 years ago (2016-12-09 00:05:40 UTC) #19
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/2545083004/40001
4 years ago (2016-12-12 22:49:05 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/278116)
4 years ago (2016-12-13 01:19:39 UTC) #24
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/2545083004/60001
4 years ago (2016-12-14 19:23:30 UTC) #31
commit-bot: I haz the power
4 years ago (2016-12-14 19:34:01 UTC) #34
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/38f66de2415c72b0e37ead48bba85d335d37fc0c
Cr-Commit-Position: refs/heads/master@{#438591}

Powered by Google App Engine
This is Rietveld 408576698