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

Issue 11313016: Add "type" in GenerateKeyRequest() and OnNeedKey(). (Closed)

Created:
8 years, 1 month ago by xhwang
Modified:
8 years, 1 month ago
Reviewers:
ddorwin, Tom Finegan
CC:
chromium-reviews, feature-media-reviews_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Add "type" in GenerateKeyRequest() and OnNeedKey(). The "type" information could help the CDM to parse the initialization data correctly. See for details: https://www.w3.org/Bugs/Public/show_bug.cgi?id=19096 TBR=viettrungluu@chromium.org BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=164522

Patch Set 1 #

Total comments: 18

Patch Set 2 : fix ProxyDecryptorTest #

Patch Set 3 : rebase only #

Patch Set 4 : comments resolved #

Total comments: 8

Patch Set 5 : comments resolved #

Total comments: 2

Patch Set 6 : fix the DCHECK where init_data_type_ is set but NeedKey from decoder passes empty "type". #

Unified diffs Side-by-side diffs Delta from patch set Stats (+110 lines, -40 lines) Patch
M media/base/decryptor.h View 1 chunk +3 lines, -1 line 0 comments Download
M media/base/decryptor_client.h View 1 chunk +3 lines, -0 lines 0 comments Download
M media/base/mock_filters.h View 3 chunks +5 lines, -2 lines 0 comments Download
M media/base/mock_filters.cc View 1 chunk +2 lines, -1 line 0 comments Download
M media/base/stream_parser.h View 2 chunks +7 lines, -3 lines 0 comments Download
M media/crypto/aes_decryptor.h View 1 chunk +1 line, -0 lines 0 comments Download
M media/crypto/aes_decryptor.cc View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M media/crypto/aes_decryptor_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M media/filters/chunk_demuxer.h View 2 chunks +5 lines, -2 lines 0 comments Download
M media/filters/chunk_demuxer.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M media/filters/chunk_demuxer_unittest.cc View 1 2 3 4 3 chunks +8 lines, -4 lines 0 comments Download
M media/filters/pipeline_integration_test.cc View 3 chunks +5 lines, -3 lines 0 comments Download
M media/mp4/mp4_stream_parser.cc View 1 2 3 2 chunks +4 lines, -1 line 0 comments Download
M media/mp4/mp4_stream_parser_unittest.cc View 1 2 3 4 3 chunks +9 lines, -2 lines 0 comments Download
M media/webm/webm_stream_parser.cc View 1 2 3 2 chunks +4 lines, -1 line 0 comments Download
M webkit/media/crypto/ppapi/clear_key_cdm.h View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M webkit/media/crypto/ppapi/clear_key_cdm.cc View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M webkit/media/crypto/ppapi_decryptor.h View 1 chunk +1 line, -0 lines 0 comments Download
M webkit/media/crypto/ppapi_decryptor.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M webkit/media/crypto/proxy_decryptor.h View 1 chunk +1 line, -0 lines 0 comments Download
M webkit/media/crypto/proxy_decryptor.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M webkit/media/crypto/proxy_decryptor_unittest.cc View 1 10 chunks +11 lines, -10 lines 0 comments Download
M webkit/media/webmediaplayer_impl.h View 1 2 3 2 chunks +5 lines, -0 lines 0 comments Download
M webkit/media/webmediaplayer_impl.cc View 1 2 3 4 5 2 chunks +9 lines, -0 lines 0 comments Download
M webkit/media/webmediaplayer_proxy.h View 2 chunks +2 lines, -0 lines 0 comments Download
M webkit/media/webmediaplayer_proxy.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M webkit/plugins/ppapi/ppapi_plugin_instance.h View 1 chunk +1 line, -0 lines 0 comments Download
M webkit/plugins/ppapi/ppapi_plugin_instance.cc View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
xhwang
This is the brother CL of Tom's cl 11270057. Some TODOs are added which needs ...
8 years, 1 month ago (2012-10-26 22:59:14 UTC) #1
ddorwin
LG. Just minor comments. http://codereview.chromium.org/11313016/diff/1/media/base/stream_parser.h File media/base/stream_parser.h (right): http://codereview.chromium.org/11313016/diff/1/media/base/stream_parser.h#newcode62 media/base/stream_parser.h:62: // First parameter - The ...
8 years, 1 month ago (2012-10-27 00:08:26 UTC) #2
xhwang
comments resolved, PTAL again. http://codereview.chromium.org/11313016/diff/1/media/base/stream_parser.h File media/base/stream_parser.h (right): http://codereview.chromium.org/11313016/diff/1/media/base/stream_parser.h#newcode62 media/base/stream_parser.h:62: // First parameter - The ...
8 years, 1 month ago (2012-10-27 00:50:14 UTC) #3
ddorwin
lgtm % nits. Thanks. http://codereview.chromium.org/11313016/diff/12003/media/crypto/aes_decryptor.cc File media/crypto/aes_decryptor.cc (right): http://codereview.chromium.org/11313016/diff/12003/media/crypto/aes_decryptor.cc#newcode142 media/crypto/aes_decryptor.cc:142: // For now, the AesDecryptor ...
8 years, 1 month ago (2012-10-27 01:47:17 UTC) #4
xhwang
http://codereview.chromium.org/11313016/diff/12003/media/crypto/aes_decryptor.cc File media/crypto/aes_decryptor.cc (right): http://codereview.chromium.org/11313016/diff/12003/media/crypto/aes_decryptor.cc#newcode142 media/crypto/aes_decryptor.cc:142: // For now, the AesDecryptor does not care about ...
8 years, 1 month ago (2012-10-27 03:22:59 UTC) #5
ddorwin
lgtm http://codereview.chromium.org/11313016/diff/10034/media/mp4/mp4_stream_parser_unittest.cc File media/mp4/mp4_stream_parser_unittest.cc (right): http://codereview.chromium.org/11313016/diff/10034/media/mp4/mp4_stream_parser_unittest.cc#newcode60 media/mp4/mp4_stream_parser_unittest.cc:60: << ", dur=" << duration.InMilliseconds(); nit: space replacement, ...
8 years, 1 month ago (2012-10-27 03:26:00 UTC) #6
Tom Finegan
lgtm I'll rebase http://codereview.chromium.org/11270057 on this CL.
8 years, 1 month ago (2012-10-27 05:13:29 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/11313016/6009
8 years, 1 month ago (2012-10-27 05:31:48 UTC) #8
xhwang
http://codereview.chromium.org/11313016/diff/10034/media/mp4/mp4_stream_parser_unittest.cc File media/mp4/mp4_stream_parser_unittest.cc (right): http://codereview.chromium.org/11313016/diff/10034/media/mp4/mp4_stream_parser_unittest.cc#newcode60 media/mp4/mp4_stream_parser_unittest.cc:60: << ", dur=" << duration.InMilliseconds(); On 2012/10/27 03:26:00, ddorwin ...
8 years, 1 month ago (2012-10-27 05:32:51 UTC) #9
commit-bot: I haz the power
8 years, 1 month ago (2012-10-27 07:23:15 UTC) #10
Change committed as 164522

Powered by Google App Engine
This is Rietveld 408576698