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

Issue 1490613005: media config: expand is_encrypted to a struct. (Closed)

Created:
5 years ago by dougsteed
Modified:
4 years, 9 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org, gunsch+watch_chromium.org, halliwell+watch_chromium.org, lcwu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

media config: expand is_encrypted to a struct. Provide more complete encryption metadata, rather than just a bool. EncryptionScheme also allows specification of the mode and the pattern, as will be allowed by CENC (ISO's Common Encryption standard), 3rd Edition. BUG=568326 Committed: https://crrev.com/c9d2206c62f65e29b141e08df2b2dcb88f54162f Cr-Commit-Position: refs/heads/master@{#380710} Committed: https://crrev.com/8d5275f7bbb6f79c83829a7931f1500128ef3f8f Cr-Commit-Position: refs/heads/master@{#380791}

Patch Set 1 #

Total comments: 81

Patch Set 2 : #

Patch Set 3 : accommodate comments on patchset 1 #

Patch Set 4 : missed one change #

Patch Set 5 : rebasing #

Patch Set 6 : pepper depends on VideoDecoderConfig #

Patch Set 7 : one more tweak in chromecast/common #

Total comments: 40

Patch Set 8 : #

Patch Set 9 : rebase #

Patch Set 10 : #

Patch Set 11 : rebase #

Patch Set 12 : rebase redux #

Patch Set 13 : mojo changes; Message->base::Pickle #

Total comments: 52

Patch Set 14 : ddorwin comments #

Total comments: 25

Patch Set 15 : more ddorwin comments #

Total comments: 41

Patch Set 16 : xhwang comments mainly #

Patch Set 17 : missed a couple comments #

Total comments: 11

Patch Set 18 : more xhwang comments #

Total comments: 10

Patch Set 19 : "tiny nits" #

Patch Set 20 : rebase from master #

Patch Set 21 : missed some mojo tweaks #

Patch Set 22 : missed a change needed in content #

Patch Set 23 : rebase needed #

Patch Set 24 : add MEDIA_EXPORT to inner class #

Patch Set 25 : oops #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -1 line) Patch
M media/cast/sender/h264_vt_encoder_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +1 line, -1 line 0 comments Download
M media/formats/mp2t/es_parser_adts.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +1 line, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 79 (31 generated)
dougsteed
5 years ago (2015-12-09 23:44:55 UTC) #5
DaleCurtis
=> ddorwin
5 years ago (2015-12-09 23:47:59 UTC) #7
yucliu1
https://codereview.chromium.org/1490613005/diff/1/chromecast/common/media/cma_param_traits.cc File chromecast/common/media/cma_param_traits.cc (right): https://codereview.chromium.org/1490613005/diff/1/chromecast/common/media/cma_param_traits.cc#newcode28 chromecast/common/media/cma_param_traits.cc:28: IPC_ENUM_TRAITS_MAX_VALUE(media::CipherMode, media::kCipherModeMax); This line should be in cma_param_traits_macros.h I ...
5 years ago (2015-12-10 00:12:19 UTC) #9
ddorwin
Most of my comments relate to the design of EncryptionScheme (encryption_scheme.h). What do others think? ...
5 years ago (2015-12-10 18:36:02 UTC) #11
ddorwin
Please also be specific about which version of CENC adds this in the description.
5 years ago (2015-12-10 18:39:57 UTC) #12
xhwang
https://codereview.chromium.org/1490613005/diff/1/media/base/encryption_scheme.h File media/base/encryption_scheme.h (right): https://codereview.chromium.org/1490613005/diff/1/media/base/encryption_scheme.h#newcode72 media/base/encryption_scheme.h:72: bool is_encrypted_; It's a bit odd that you have ...
5 years ago (2015-12-10 20:03:39 UTC) #13
xhwang
I only skimmed the CL and provided a suggestion. I'll take a look again after ...
5 years ago (2015-12-10 20:04:18 UTC) #14
dougsteed
PTAL https://codereview.chromium.org/1490613005/diff/1/chromecast/common/media/cma_param_traits.cc File chromecast/common/media/cma_param_traits.cc (right): https://codereview.chromium.org/1490613005/diff/1/chromecast/common/media/cma_param_traits.cc#newcode28 chromecast/common/media/cma_param_traits.cc:28: IPC_ENUM_TRAITS_MAX_VALUE(media::CipherMode, media::kCipherModeMax); On 2015/12/10 00:12:19, yucliu1 wrote: > ...
5 years ago (2015-12-14 21:19:02 UTC) #15
halliwell
I just reviewed chromecast/ and media/base/encryption_scheme.h https://codereview.chromium.org/1490613005/diff/120001/chromecast/common/media/cma_param_traits.cc File chromecast/common/media/cma_param_traits.cc (right): https://codereview.chromium.org/1490613005/diff/120001/chromecast/common/media/cma_param_traits.cc#newcode33 chromecast/common/media/cma_param_traits.cc:33: typedef media::EncryptionScheme::PatternSpec param_type; ...
4 years, 11 months ago (2016-01-13 03:29:42 UTC) #17
dougsteed
https://codereview.chromium.org/1490613005/diff/120001/chromecast/common/media/cma_param_traits.cc File chromecast/common/media/cma_param_traits.cc (right): https://codereview.chromium.org/1490613005/diff/120001/chromecast/common/media/cma_param_traits.cc#newcode33 chromecast/common/media/cma_param_traits.cc:33: typedef media::EncryptionScheme::PatternSpec param_type; On 2016/01/13 03:29:40, halliwell wrote: > ...
4 years, 10 months ago (2016-02-09 22:58:54 UTC) #18
halliwell
On 2016/02/09 22:58:54, dougsteed wrote: > https://codereview.chromium.org/1490613005/diff/120001/chromecast/common/media/cma_param_traits.cc > File chromecast/common/media/cma_param_traits.cc (right): > > https://codereview.chromium.org/1490613005/diff/120001/chromecast/common/media/cma_param_traits.cc#newcode33 > ...
4 years, 10 months ago (2016-02-11 02:44:28 UTC) #19
ddorwin
Thanks for addressing my feedback in PS1. I think there a few more opportunities for ...
4 years, 9 months ago (2016-03-01 02:17:42 UTC) #21
xhwang
Sorry for the delay. It seems ddorwin has some comments that need to be addressed ...
4 years, 9 months ago (2016-03-01 22:47:28 UTC) #22
dougsteed
David, Xiaohan: PTAL https://codereview.chromium.org/1490613005/diff/1/media/base/encryption_scheme.cc File media/base/encryption_scheme.cc (right): https://codereview.chromium.org/1490613005/diff/1/media/base/encryption_scheme.cc#newcode7 media/base/encryption_scheme.cc:7: #include "base/logging.h" On 2015/12/10 18:36:01, ddorwin ...
4 years, 9 months ago (2016-03-02 18:07:53 UTC) #23
ddorwin
https://codereview.chromium.org/1490613005/diff/240001/media/base/audio_decoder_config.h File media/base/audio_decoder_config.h (right): https://codereview.chromium.org/1490613005/diff/240001/media/base/audio_decoder_config.h#newcode113 media/base/audio_decoder_config.h:113: bool is_encrypted() const; On 2016/03/02 18:07:52, dougsteed wrote: > ...
4 years, 9 months ago (2016-03-02 23:24:06 UTC) #24
halliwell
https://codereview.chromium.org/1490613005/diff/260001/chromecast/public/media/decoder_config.h File chromecast/public/media/decoder_config.h (right): https://codereview.chromium.org/1490613005/diff/260001/chromecast/public/media/decoder_config.h#newcode146 chromecast/public/media/decoder_config.h:146: inline EncryptionScheme::PatternSpec::~PatternSpec() {} On 2016/03/02 23:24:05, ddorwin wrote: > ...
4 years, 9 months ago (2016-03-02 23:39:53 UTC) #25
dougsteed
https://codereview.chromium.org/1490613005/diff/260001/chromecast/public/media/decoder_config.h File chromecast/public/media/decoder_config.h (right): https://codereview.chromium.org/1490613005/diff/260001/chromecast/public/media/decoder_config.h#newcode105 chromecast/public/media/decoder_config.h:105: // V3 of the CENC standard adds pattern encryption, ...
4 years, 9 months ago (2016-03-03 04:45:00 UTC) #26
ddorwin
LG with a few comments. Thank you! xhwang and/or I will give another full pass ...
4 years, 9 months ago (2016-03-03 18:38:05 UTC) #27
xhwang
https://chromiumcodereview.appspot.com/1490613005/diff/280001/chromecast/media/cma/backend/audio_video_pipeline_device_unittest.cc File chromecast/media/cma/backend/audio_video_pipeline_device_unittest.cc (right): https://chromiumcodereview.appspot.com/1490613005/diff/280001/chromecast/media/cma/backend/audio_video_pipeline_device_unittest.cc#newcode72 chromecast/media/cma/backend/audio_video_pipeline_device_unittest.cc:72: default_config.encryption_scheme = EncryptionScheme::unencrypted(); Should this be Unencrypted()? https://chromiumcodereview.appspot.com/1490613005/diff/280001/chromecast/public/media/decoder_config.h File ...
4 years, 9 months ago (2016-03-03 22:33:01 UTC) #28
xhwang
ddorwin and I also chat about the idea of holding a scoped_ptr<EncryptionScheme> in the configs ...
4 years, 9 months ago (2016-03-03 22:39:39 UTC) #29
halliwell
https://chromiumcodereview.appspot.com/1490613005/diff/280001/chromecast/public/media/decoder_config.h File chromecast/public/media/decoder_config.h (right): https://chromiumcodereview.appspot.com/1490613005/diff/280001/chromecast/public/media/decoder_config.h#newcode97 chromecast/public/media/decoder_config.h:97: struct EncryptionScheme { On 2016/03/03 22:33:00, xhwang wrote: > ...
4 years, 9 months ago (2016-03-03 22:56:44 UTC) #30
dougsteed
https://chromiumcodereview.appspot.com/1490613005/diff/260001/media/base/audio_decoder_config.h File media/base/audio_decoder_config.h (right): https://chromiumcodereview.appspot.com/1490613005/diff/260001/media/base/audio_decoder_config.h#newcode83 media/base/audio_decoder_config.h:83: bool is_encrypted() const; On 2016/03/03 18:38:04, ddorwin wrote: > ...
4 years, 9 months ago (2016-03-04 19:07:30 UTC) #31
xhwang
looking good, just a few nits left. https://chromiumcodereview.appspot.com/1490613005/diff/280001/chromecast/public/media/decoder_config.h File chromecast/public/media/decoder_config.h (right): https://chromiumcodereview.appspot.com/1490613005/diff/280001/chromecast/public/media/decoder_config.h#newcode97 chromecast/public/media/decoder_config.h:97: struct EncryptionScheme ...
4 years, 9 months ago (2016-03-04 20:00:48 UTC) #32
ddorwin
My last few comments have been addressed. I'll let xhwang take it from here. https://chromiumcodereview.appspot.com/1490613005/diff/320001/media/base/encryption_scheme.h ...
4 years, 9 months ago (2016-03-04 20:24:36 UTC) #33
dougsteed
raymes@: please check the one change in pepper https://codereview.chromium.org/1490613005/diff/280001/chromecast/public/media/decoder_config.h File chromecast/public/media/decoder_config.h (right): https://codereview.chromium.org/1490613005/diff/280001/chromecast/public/media/decoder_config.h#newcode97 chromecast/public/media/decoder_config.h:97: struct ...
4 years, 9 months ago (2016-03-07 17:49:13 UTC) #35
xhwang
Thanks! I only have some tiny nits left. https://chromiumcodereview.appspot.com/1490613005/diff/320001/media/base/encryption_scheme.h File media/base/encryption_scheme.h (right): https://chromiumcodereview.appspot.com/1490613005/diff/320001/media/base/encryption_scheme.h#newcode60 media/base/encryption_scheme.h:60: // ...
4 years, 9 months ago (2016-03-07 18:39:52 UTC) #36
dougsteed
https://codereview.chromium.org/1490613005/diff/320001/media/base/encryption_scheme.h File media/base/encryption_scheme.h (right): https://codereview.chromium.org/1490613005/diff/320001/media/base/encryption_scheme.h#newcode60 media/base/encryption_scheme.h:60: // This constructor allows specification of the cipher mode ...
4 years, 9 months ago (2016-03-07 21:12:40 UTC) #37
xhwang
LGTM! Thanks!
4 years, 9 months ago (2016-03-07 21:15:27 UTC) #38
raymes
lgtm
4 years, 9 months ago (2016-03-07 22:48:28 UTC) #39
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1490613005/400001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1490613005/400001
4 years, 9 months ago (2016-03-08 17:45:33 UTC) #41
commit-bot: I haz the power
Dry run: Exceeded global retry quota
4 years, 9 months ago (2016-03-08 17:58:14 UTC) #43
dougsteed
dalecurtis@ need to add you back in, since there is a change needed in //content ...
4 years, 9 months ago (2016-03-08 22:10:07 UTC) #45
DaleCurtis
lgtm
4 years, 9 months ago (2016-03-09 00:11:07 UTC) #46
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1490613005/420001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1490613005/420001
4 years, 9 months ago (2016-03-11 00:19:29 UTC) #48
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/129192)
4 years, 9 months ago (2016-03-11 01:04:53 UTC) #50
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1490613005/420001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1490613005/420001
4 years, 9 months ago (2016-03-11 02:12:25 UTC) #53
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/129350) linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, ...
4 years, 9 months ago (2016-03-11 02:41:27 UTC) #55
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1490613005/420001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1490613005/420001
4 years, 9 months ago (2016-03-11 16:26:01 UTC) #57
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/156134) linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, ...
4 years, 9 months ago (2016-03-11 16:30:24 UTC) #59
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1490613005/440001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1490613005/440001
4 years, 9 months ago (2016-03-11 17:02:28 UTC) #62
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/129817)
4 years, 9 months ago (2016-03-11 18:46:49 UTC) #64
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1490613005/440001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1490613005/440001
4 years, 9 months ago (2016-03-11 19:07:32 UTC) #66
commit-bot: I haz the power
Committed patchset #23 (id:440001)
4 years, 9 months ago (2016-03-11 19:55:13 UTC) #68
commit-bot: I haz the power
Patchset 23 (id:??) landed as https://crrev.com/c9d2206c62f65e29b141e08df2b2dcb88f54162f Cr-Commit-Position: refs/heads/master@{#380710}
4 years, 9 months ago (2016-03-11 19:56:43 UTC) #70
alexmos
A revert of this CL (patchset #23 id:440001) has been created in https://codereview.chromium.org/1786733004/ by alexmos@chromium.org. ...
4 years, 9 months ago (2016-03-11 21:16:24 UTC) #71
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1490613005/460001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1490613005/460001
4 years, 9 months ago (2016-03-11 23:56:30 UTC) #75
commit-bot: I haz the power
Committed patchset #24 (id:460001)
4 years, 9 months ago (2016-03-12 00:04:43 UTC) #77
commit-bot: I haz the power
4 years, 9 months ago (2016-03-12 00:05:32 UTC) #79
Message was sent while issue was closed.
Patchset 24 (id:??) landed as
https://crrev.com/8d5275f7bbb6f79c83829a7931f1500128ef3f8f
Cr-Commit-Position: refs/heads/master@{#380791}

Powered by Google App Engine
This is Rietveld 408576698