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

Issue 11492003: Encrypted Media: Support Audio Decrypt-Only. (Closed)

Created:
8 years ago by xhwang
Modified:
8 years ago
CC:
chromium-reviews, feature-media-reviews_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Encrypted Media: Support Audio Decrypt-Only. - Add AudioDecoderSelector to facilitate AudioDecoder selection. - Add AudioDecoderSelectorTest. - Update key_system.cc to support audio in clearkey key system. - Update content_browsertests to test audio decrypt-only. BUG=123421 TEST=both decrypt-only and decrypt-and-decode works for audio! Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=173235

Patch Set 1 #

Total comments: 1

Patch Set 2 : this CL is working now, in a very hacky way though ;) #

Patch Set 3 : working and not hacky; need to update comments and tests #

Total comments: 52

Patch Set 4 : comments mostly resolved (I believe); need to add/update tests if this looks good #

Total comments: 21

Patch Set 5 : resolved comments and fixed unittest #

Total comments: 22

Patch Set 6 : added unittest; no comments resolved yet #

Patch Set 7 : rebase only #

Patch Set 8 : comments resolved; will update key_system #

Patch Set 9 : updated key_system.cc and content_browsertests #

Total comments: 8

Patch Set 10 : update player_x11 and key_system unittest #

Patch Set 11 : comments resolved #

Total comments: 7

Patch Set 12 : nits #

Patch Set 13 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+586 lines, -88 lines) Patch
M content/browser/encrypted_media_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +6 lines, -8 lines 0 comments Download
A media/filters/audio_decoder_selector.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +86 lines, -0 lines 0 comments Download
A media/filters/audio_decoder_selector.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +155 lines, -0 lines 0 comments Download
A media/filters/audio_decoder_selector_unittest.cc View 1 2 3 4 5 6 7 1 chunk +242 lines, -0 lines 0 comments Download
M media/filters/audio_renderer_impl.h View 1 2 3 4 3 chunks +22 lines, -15 lines 0 comments Download
M media/filters/audio_renderer_impl.cc View 1 2 3 4 5 6 4 chunks +39 lines, -30 lines 0 comments Download
M media/filters/audio_renderer_impl_unittest.cc View 1 2 3 4 4 chunks +11 lines, -4 lines 0 comments Download
M media/filters/pipeline_integration_test_base.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M media/media.gyp View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
M media/tools/player_x11/player_x11.cc View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -1 line 0 comments Download
M webkit/media/crypto/key_systems.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +0 lines, -10 lines 0 comments Download
M webkit/media/crypto/key_systems_unittest.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +8 lines, -12 lines 0 comments Download
M webkit/media/webmediaplayer_impl.cc View 1 2 3 4 5 6 7 1 chunk +10 lines, -7 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
xhwang
Hello, This CL only compiles and needs a lot of work. Please review it only ...
8 years ago (2012-12-10 05:41:01 UTC) #1
xhwang
This CL looks much better (IMHO) now. PTAL! https://codereview.chromium.org/11492003/diff/5001/media/base/decryptor.h File media/base/decryptor.h (right): https://codereview.chromium.org/11492003/diff/5001/media/base/decryptor.h#newcode207 media/base/decryptor.h:207: // ...
8 years ago (2012-12-11 02:27:40 UTC) #2
ddorwin
Thanks. I like this approach better. I did not review ADF.cc closely. I will look ...
8 years ago (2012-12-11 05:13:34 UTC) #3
xhwang
replied to comments only. no updates yet. PTAL! https://codereview.chromium.org/11492003/diff/5001/media/base/decryptor.h File media/base/decryptor.h (right): https://codereview.chromium.org/11492003/diff/5001/media/base/decryptor.h#newcode216 media/base/decryptor.h:216: typedef ...
8 years ago (2012-12-11 19:43:03 UTC) #4
scherkus (not reviewing)
https://codereview.chromium.org/11492003/diff/5001/media/base/decryptor.h File media/base/decryptor.h (right): https://codereview.chromium.org/11492003/diff/5001/media/base/decryptor.h#newcode216 media/base/decryptor.h:216: typedef base::Callback<void(const DecryptorNotificationCB&)> On 2012/12/11 19:43:04, xhwang wrote: > ...
8 years ago (2012-12-11 20:52:15 UTC) #5
ddorwin
Mostly replies, but at least one new comment. https://codereview.chromium.org/11492003/diff/5001/media/base/decryptor.h File media/base/decryptor.h (right): https://codereview.chromium.org/11492003/diff/5001/media/base/decryptor.h#newcode216 media/base/decryptor.h:216: typedef ...
8 years ago (2012-12-12 00:30:24 UTC) #6
xhwang
Most comments resolved. PTAL! If you have comments that is a followup of an old ...
8 years ago (2012-12-12 23:43:28 UTC) #7
scherkus (not reviewing)
(only replying to single question) Re: Initialize() versus ARI()... you should take a look at ...
8 years ago (2012-12-13 03:05:43 UTC) #8
xhwang
On 2012/12/13 03:05:43, scherkus wrote: > (only replying to single question) > > Re: Initialize() ...
8 years ago (2012-12-13 04:01:34 UTC) #9
ddorwin
Thanks! LG. Just some minor stuff. https://codereview.chromium.org/11492003/diff/18001/media/base/pipeline.h File media/base/pipeline.h (right): https://codereview.chromium.org/11492003/diff/18001/media/base/pipeline.h#newcode131 media/base/pipeline.h:131: // pipeline's buffering ...
8 years ago (2012-12-13 05:08:25 UTC) #10
xhwang
SetDecryptorReadyCB renaming is moved to another CL to reduce the noise level of this CL. ...
8 years ago (2012-12-13 11:24:35 UTC) #11
ddorwin
I'm a little confused about the sink changes. We should probably address those in a ...
8 years ago (2012-12-13 23:09:43 UTC) #12
scherkus (not reviewing)
https://codereview.chromium.org/11492003/diff/26003/media/filters/audio_decoder_selector.cc File media/filters/audio_decoder_selector.cc (right): https://codereview.chromium.org/11492003/diff/26003/media/filters/audio_decoder_selector.cc#newcode28 media/filters/audio_decoder_selector.cc:28: weak_this_(weak_ptr_factory_.GetWeakPtr()) { nit: if this is created on the ...
8 years ago (2012-12-13 23:39:07 UTC) #13
xhwang
https://codereview.chromium.org/11492003/diff/26003/media/filters/audio_decoder_selector.cc File media/filters/audio_decoder_selector.cc (right): https://codereview.chromium.org/11492003/diff/26003/media/filters/audio_decoder_selector.cc#newcode28 media/filters/audio_decoder_selector.cc:28: weak_this_(weak_ptr_factory_.GetWeakPtr()) { On 2012/12/13 23:39:07, scherkus wrote: > nit: ...
8 years ago (2012-12-14 03:16:21 UTC) #14
xhwang
Added unittest, rebased, resolved comments, updated key_system.cc and updated content_browser test. PTAL!
8 years ago (2012-12-14 03:39:16 UTC) #15
ddorwin
Thanks. Just a few more things. https://codereview.chromium.org/11492003/diff/31012/content/browser/encrypted_media_browsertest.cc File content/browser/encrypted_media_browsertest.cc (right): https://codereview.chromium.org/11492003/diff/31012/content/browser/encrypted_media_browsertest.cc#newcode133 content/browser/encrypted_media_browsertest.cc:133: // TODO(shadi): Make ...
8 years ago (2012-12-14 05:17:01 UTC) #16
xhwang
https://codereview.chromium.org/11492003/diff/31012/content/browser/encrypted_media_browsertest.cc File content/browser/encrypted_media_browsertest.cc (right): https://codereview.chromium.org/11492003/diff/31012/content/browser/encrypted_media_browsertest.cc#newcode133 content/browser/encrypted_media_browsertest.cc:133: // TODO(shadi): Make these three IN_PROC_BROWSER_TEST_P() when internal Clear ...
8 years ago (2012-12-14 05:50:07 UTC) #17
ddorwin
lgtm
8 years ago (2012-12-14 06:11:56 UTC) #18
scherkus (not reviewing)
lgtm w/ nits https://codereview.chromium.org/11492003/diff/37030/media/filters/audio_decoder_selector.cc File media/filters/audio_decoder_selector.cc (right): https://codereview.chromium.org/11492003/diff/37030/media/filters/audio_decoder_selector.cc#newcode40 media/filters/audio_decoder_selector.cc:40: // Make sure the |selected_decoder_cb| on ...
8 years ago (2012-12-14 06:39:12 UTC) #19
xhwang
https://codereview.chromium.org/11492003/diff/37030/media/filters/audio_decoder_selector.cc File media/filters/audio_decoder_selector.cc (right): https://codereview.chromium.org/11492003/diff/37030/media/filters/audio_decoder_selector.cc#newcode40 media/filters/audio_decoder_selector.cc:40: // Make sure the |selected_decoder_cb| on a different execution ...
8 years ago (2012-12-14 07:45:06 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xhwang@chromium.org/11492003/32011
8 years ago (2012-12-14 07:47:03 UTC) #21
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests
8 years ago (2012-12-14 11:20:27 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xhwang@chromium.org/11492003/32011
8 years ago (2012-12-14 15:41:00 UTC) #23
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
8 years ago (2012-12-14 16:09:31 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xhwang@chromium.org/11492003/32011
8 years ago (2012-12-14 17:01:30 UTC) #25
scherkus (not reviewing)
https://codereview.chromium.org/11492003/diff/37030/media/filters/audio_renderer_impl.h File media/filters/audio_renderer_impl.h (right): https://codereview.chromium.org/11492003/diff/37030/media/filters/audio_renderer_impl.h#newcode48 media/filters/audio_renderer_impl.h:48: const SetDecryptorReadyCB& set_decryptor_ready_cb); On 2012/12/14 07:45:06, xhwang wrote: > ...
8 years ago (2012-12-14 19:43:45 UTC) #26
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests
8 years ago (2012-12-14 22:07:28 UTC) #27
commit-bot: I haz the power
8 years ago (2012-12-14 22:10:46 UTC) #28

Powered by Google App Engine
This is Rietveld 408576698