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

Issue 935243002: Decryptors can report kNoKey to WebMediaPlayer (Closed)

Created:
5 years, 10 months ago by jrummell
Modified:
5 years, 9 months ago
Reviewers:
xhwang, ddorwin, DaleCurtis
CC:
chromium-reviews, mkwst+moarreviews-renderer_chromium.org, darin-cc_chromium.org, feature-media-reviews_chromium.org, jam, mlamouri+watch-content_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Decryptors can report kNoKey to WebMediaPlayer Add callback so that kNoKey can get passed to blink in order to generate the HTMLMediaElement.waitingforkey event. BUG=337975 TEST=updated tests pass Committed: https://crrev.com/74fc4f9447f3ea2e277350dccce4de67e5ee4ea4 Cr-Commit-Position: refs/heads/master@{#318787}

Patch Set 1 #

Total comments: 24

Patch Set 2 : constructor #

Total comments: 6

Patch Set 3 : change + rebase #

Total comments: 2

Patch Set 4 : mojo #

Patch Set 5 : rebase #

Patch Set 6 : Android changes #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+278 lines, -108 lines) Patch
M content/renderer/media/android/media_source_delegate.h View 1 2 3 4 5 2 chunks +3 lines, -1 line 0 comments Download
M content/renderer/media/android/media_source_delegate.cc View 1 2 3 4 5 4 chunks +7 lines, -3 lines 2 comments Download
M content/renderer/media/android/webmediaplayer_android.h View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M content/renderer/media/android/webmediaplayer_android.cc View 1 2 3 4 5 2 chunks +11 lines, -0 lines 0 comments Download
M media/base/audio_renderer.h View 1 1 chunk +12 lines, -7 lines 0 comments Download
M media/base/mock_filters.h View 1 3 chunks +23 lines, -19 lines 0 comments Download
M media/base/pipeline.h View 1 3 chunks +5 lines, -1 line 0 comments Download
M media/base/pipeline.cc View 1 3 chunks +5 lines, -2 lines 0 comments Download
M media/base/pipeline_unittest.cc View 1 6 chunks +9 lines, -5 lines 0 comments Download
M media/base/renderer.h View 1 1 chunk +11 lines, -7 lines 0 comments Download
M media/base/video_renderer.h View 1 1 chunk +14 lines, -9 lines 0 comments Download
M media/blink/webmediaplayer_impl.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M media/blink/webmediaplayer_impl.cc View 1 2 3 4 2 chunks +11 lines, -1 line 0 comments Download
M media/filters/audio_decoder_selector_unittest.cc View 1 2 chunks +6 lines, -1 line 0 comments Download
M media/filters/decoder_selector.h View 1 2 chunks +3 lines, -1 line 0 comments Download
M media/filters/decoder_selector.cc View 1 3 chunks +6 lines, -4 lines 0 comments Download
M media/filters/decoder_stream.h View 1 2 chunks +3 lines, -1 line 0 comments Download
M media/filters/decoder_stream.cc View 1 3 chunks +5 lines, -2 lines 0 comments Download
M media/filters/decrypting_audio_decoder.h View 1 2 chunks +3 lines, -1 line 0 comments Download
M media/filters/decrypting_audio_decoder.cc View 1 2 chunks +6 lines, -2 lines 0 comments Download
M media/filters/decrypting_audio_decoder_unittest.cc View 1 3 chunks +6 lines, -1 line 0 comments Download
M media/filters/decrypting_demuxer_stream.h View 1 2 chunks +3 lines, -1 line 0 comments Download
M media/filters/decrypting_demuxer_stream.cc View 1 2 chunks +6 lines, -2 lines 0 comments Download
M media/filters/decrypting_demuxer_stream_unittest.cc View 1 3 chunks +6 lines, -1 line 0 comments Download
M media/filters/decrypting_video_decoder.h View 1 2 chunks +3 lines, -1 line 0 comments Download
M media/filters/decrypting_video_decoder.cc View 1 2 chunks +6 lines, -2 lines 0 comments Download
M media/filters/decrypting_video_decoder_unittest.cc View 1 5 chunks +8 lines, -2 lines 0 comments Download
M media/filters/video_decoder_selector_unittest.cc View 1 2 chunks +6 lines, -0 lines 0 comments Download
M media/filters/video_frame_stream_unittest.cc View 1 3 chunks +5 lines, -1 line 0 comments Download
M media/mojo/services/mojo_renderer_impl.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M media/mojo/services/mojo_renderer_impl.cc View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M media/mojo/services/mojo_renderer_service.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M media/renderers/audio_renderer_impl.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M media/renderers/audio_renderer_impl.cc View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M media/renderers/audio_renderer_impl_unittest.cc View 1 2 3 4 2 chunks +5 lines, -1 line 0 comments Download
M media/renderers/renderer_impl.h View 1 2 3 4 2 chunks +3 lines, -1 line 0 comments Download
M media/renderers/renderer_impl.cc View 1 2 3 4 4 chunks +14 lines, -9 lines 0 comments Download
M media/renderers/renderer_impl_unittest.cc View 1 2 3 4 5 chunks +8 lines, -4 lines 0 comments Download
M media/renderers/video_renderer_impl.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M media/renderers/video_renderer_impl.cc View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M media/renderers/video_renderer_impl_unittest.cc View 1 2 3 4 3 chunks +6 lines, -1 line 0 comments Download
M media/test/pipeline_integration_test.cc View 1 2 3 4 4 chunks +14 lines, -2 lines 0 comments Download
M media/test/pipeline_integration_test_base.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M media/test/pipeline_integration_test_base.cc View 1 2 3 4 2 chunks +7 lines, -1 line 0 comments Download
M media/tools/player_x11/player_x11.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 33 (10 generated)
jrummell
PTAL. This is mostly just passing the callback through various layers, down to decrypting_audio/video_decoders which ...
5 years, 10 months ago (2015-02-19 04:43:47 UTC) #2
ddorwin
I reviewed through WMPI then some other files. I think we can simplify this a ...
5 years, 10 months ago (2015-02-19 05:33:17 UTC) #3
jrummell
Updated, with question in webmediaplayer_impl.cc. https://codereview.chromium.org/935243002/diff/1/media/base/audio_decoder.h File media/base/audio_decoder.h (right): https://codereview.chromium.org/935243002/diff/1/media/base/audio_decoder.h#newcode59 media/base/audio_decoder.h:59: // |waiting_for_encryption_key_cb| is called ...
5 years, 10 months ago (2015-02-23 22:06:32 UTC) #4
ddorwin
lgtm % comments https://codereview.chromium.org/935243002/diff/20001/media/base/pipeline_unittest.cc File media/base/pipeline_unittest.cc (right): https://codereview.chromium.org/935243002/diff/20001/media/base/pipeline_unittest.cc#newcode204 media/base/pipeline_unittest.cc:204: base::Bind(&PipelineTest::OnWaitingForDecryptionKey, nit: There might be an ...
5 years, 10 months ago (2015-02-23 23:47:47 UTC) #5
DaleCurtis
A couple of questions first: - Did you guys consider some sort of EmeParams class ...
5 years, 10 months ago (2015-02-24 00:32:55 UTC) #6
jrummell
Updated to make the change in WebMediaPlayerImpl::OnWaitingForDecryptionKey(). Includes a rebase to get the latest blink ...
5 years, 10 months ago (2015-02-24 01:19:40 UTC) #7
ddorwin
https://codereview.chromium.org/935243002/diff/40001/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc (right): https://codereview.chromium.org/935243002/diff/40001/media/blink/webmediaplayer_impl.cc#newcode684 media/blink/webmediaplayer_impl.cc:684: // TODO(jrummell): didResumePlaybackBlockedForKey() should only be called Bug? We ...
5 years, 10 months ago (2015-02-24 01:36:52 UTC) #8
DaleCurtis
We're at the max parameters for a mock object method, so if any more are ...
5 years, 9 months ago (2015-02-24 23:24:54 UTC) #9
jrummell
Updated with mojo changes. https://codereview.chromium.org/935243002/diff/40001/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc (right): https://codereview.chromium.org/935243002/diff/40001/media/blink/webmediaplayer_impl.cc#newcode684 media/blink/webmediaplayer_impl.cc:684: // TODO(jrummell): didResumePlaybackBlockedForKey() should only ...
5 years, 9 months ago (2015-02-25 19:06:40 UTC) #10
DaleCurtis
lgtm, unless xhwang@ has anything to add :)
5 years, 9 months ago (2015-02-26 01:16:19 UTC) #12
xhwang
I have similar concerns as Dale: we are probably passing too many callbacks around... Can ...
5 years, 9 months ago (2015-02-26 18:55:53 UTC) #13
xhwang
On 2015/02/26 18:55:53, xhwang wrote: > I have similar concerns as Dale: we are probably ...
5 years, 9 months ago (2015-02-28 01:34:44 UTC) #14
jrummell
Thanks for the reviews. I opened http://crbug.com/462820 in case anybody wants to try to simplify ...
5 years, 9 months ago (2015-02-28 01:43:00 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/935243002/60001
5 years, 9 months ago (2015-02-28 01:44:32 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/811) ios_rel_device_ninja on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 9 months ago (2015-02-28 01:48:45 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/935243002/80001
5 years, 9 months ago (2015-02-28 02:18:42 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: android_aosp on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_aosp/builds/63227)
5 years, 9 months ago (2015-02-28 03:05:06 UTC) #25
jrummell
Updated with Android changes. xhwang@, can you take a look at the changes in content/renderer/media/android/ ...
5 years, 9 months ago (2015-03-02 21:50:39 UTC) #26
xhwang
lgtm % comment. https://codereview.chromium.org/935243002/diff/100001/content/renderer/media/android/media_source_delegate.cc File content/renderer/media/android/media_source_delegate.cc (right): https://codereview.chromium.org/935243002/diff/100001/content/renderer/media/android/media_source_delegate.cc#newcode541 content/renderer/media/android/media_source_delegate.cc:541: waiting_for_decryption_key_cb_)); This fixes the decrypting-only part ...
5 years, 9 months ago (2015-03-02 22:04:14 UTC) #27
jrummell
Thanks https://codereview.chromium.org/935243002/diff/100001/content/renderer/media/android/media_source_delegate.cc File content/renderer/media/android/media_source_delegate.cc (right): https://codereview.chromium.org/935243002/diff/100001/content/renderer/media/android/media_source_delegate.cc#newcode541 content/renderer/media/android/media_source_delegate.cc:541: waiting_for_decryption_key_cb_)); On 2015/03/02 22:04:14, xhwang wrote: > This ...
5 years, 9 months ago (2015-03-02 22:25:18 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/935243002/100001
5 years, 9 months ago (2015-03-02 22:40:54 UTC) #31
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 9 months ago (2015-03-02 22:48:35 UTC) #32
commit-bot: I haz the power
5 years, 9 months ago (2015-03-02 22:49:29 UTC) #33
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/74fc4f9447f3ea2e277350dccce4de67e5ee4ea4
Cr-Commit-Position: refs/heads/master@{#318787}

Powered by Google App Engine
This is Rietveld 408576698