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

Issue 11342031: Add DecryptingDemuxerStream. (Closed)

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

Description

Add DecryptingDemuxerStream. DecryptingDemuxerStream transforms an encrypted demuxer stream into a clear demuxer stream with the same stream type (audio/video) and codec config. It may be blocking because it relies on a Decryptor for decryption. Thus other than implementing the DemuxerStream interface, it also exposes a Reset() methods so that caller can cancel the decryption operation. BUG=123421, 141786 TEST=media_unittests pass Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=167852

Patch Set 1 #

Patch Set 2 : also copy the unittests #

Patch Set 3 : needs to add RegisterKeyAddedCB() #

Total comments: 20

Patch Set 4 : rebase and use RunUntilIdel; no comments resolved yet #

Patch Set 5 : Use RunCallback in unittest; no comments resolved yet #

Patch Set 6 : ddorwin's comments mostly resolved #

Total comments: 2

Patch Set 7 : resolve ddorwin's comments #

Total comments: 4

Patch Set 8 : nits #

Patch Set 9 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+993 lines, -36 lines) Patch
M media/base/decryptor.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M media/filters/decrypting_audio_decoder.h View 1 2 3 4 5 4 chunks +5 lines, -6 lines 0 comments Download
M media/filters/decrypting_audio_decoder.cc View 1 2 3 4 5 4 chunks +5 lines, -5 lines 0 comments Download
M media/filters/decrypting_audio_decoder_unittest.cc View 1 2 3 4 5 6 7 8 6 chunks +10 lines, -12 lines 0 comments Download
A media/filters/decrypting_demuxer_stream.h View 1 2 3 4 5 6 7 1 chunk +148 lines, -0 lines 0 comments Download
A media/filters/decrypting_demuxer_stream.cc View 1 2 3 4 5 6 7 1 chunk +350 lines, -0 lines 0 comments Download
A media/filters/decrypting_demuxer_stream_unittest.cc View 1 2 3 4 5 6 1 chunk +459 lines, -0 lines 0 comments Download
M media/filters/decrypting_video_decoder.h View 1 2 3 4 5 4 chunks +5 lines, -6 lines 0 comments Download
M media/filters/decrypting_video_decoder.cc View 1 2 3 4 5 4 chunks +5 lines, -4 lines 0 comments Download
M media/filters/decrypting_video_decoder_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +2 lines, -3 lines 0 comments Download
M media/media.gyp View 1 2 3 4 5 6 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
xhwang
Please compare to patch set 1 for a comparison between DDS and DAD, which may ...
8 years, 1 month ago (2012-11-05 23:41:10 UTC) #1
ddorwin
Reviewed everything but the new unit test. Thanks for making the new files easy to ...
8 years, 1 month ago (2012-11-13 01:08:49 UTC) #2
xhwang
PTAL again! http://codereview.chromium.org/11342031/diff/8001/media/filters/decrypting_audio_decoder_unittest.cc File media/filters/decrypting_audio_decoder_unittest.cc (right): http://codereview.chromium.org/11342031/diff/8001/media/filters/decrypting_audio_decoder_unittest.cc#newcode89 media/filters/decrypting_audio_decoder_unittest.cc:89: : decoder_(new DecryptingAudioDecoder( On 2012/11/13 01:08:49, ddorwin ...
8 years, 1 month ago (2012-11-13 21:10:21 UTC) #3
ddorwin
lgtm http://codereview.chromium.org/11342031/diff/8001/media/filters/decrypting_demuxer_stream.h File media/filters/decrypting_demuxer_stream.h (right): http://codereview.chromium.org/11342031/diff/8001/media/filters/decrypting_demuxer_stream.h#newcode22 media/filters/decrypting_demuxer_stream.h:22: // demuxer stream to a clear demuxer stream. ...
8 years, 1 month ago (2012-11-13 22:52:33 UTC) #4
xhwang
scherkus@: please also take a look! (Sorry for minor rebase noise.) http://codereview.chromium.org/11342031/diff/8001/media/filters/decrypting_demuxer_stream.h File media/filters/decrypting_demuxer_stream.h (right): ...
8 years, 1 month ago (2012-11-14 18:01:52 UTC) #5
scherkus (not reviewing)
lgtm w/ nits good stuff! http://codereview.chromium.org/11342031/diff/7018/media/filters/decrypting_demuxer_stream.cc File media/filters/decrypting_demuxer_stream.cc (right): http://codereview.chromium.org/11342031/diff/7018/media/filters/decrypting_demuxer_stream.cc#newcode49 media/filters/decrypting_demuxer_stream.cc:49: DCHECK(state_ == kIdle) << ...
8 years, 1 month ago (2012-11-14 22:22:30 UTC) #6
xhwang
http://codereview.chromium.org/11342031/diff/7018/media/filters/decrypting_demuxer_stream.cc File media/filters/decrypting_demuxer_stream.cc (right): http://codereview.chromium.org/11342031/diff/7018/media/filters/decrypting_demuxer_stream.cc#newcode49 media/filters/decrypting_demuxer_stream.cc:49: DCHECK(state_ == kIdle) << state_; On 2012/11/14 22:22:30, scherkus ...
8 years, 1 month ago (2012-11-15 00:09:59 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xhwang@chromium.org/11342031/12016
8 years, 1 month ago (2012-11-15 00:11:57 UTC) #8
commit-bot: I haz the power
Failed to apply patch for media/filters/decrypting_audio_decoder_unittest.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
8 years, 1 month ago (2012-11-15 00:12:01 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xhwang@chromium.org/11342031/12017
8 years, 1 month ago (2012-11-15 00:19:38 UTC) #10
commit-bot: I haz the power
8 years, 1 month ago (2012-11-15 03:57:59 UTC) #11
Change committed as 167852

Powered by Google App Engine
This is Rietveld 408576698