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

Issue 1072403009: Use std::vector<uint8_t> instead of uint8*/int for MediaKeys interface (Closed)

Created:
5 years, 8 months ago by jrummell
Modified:
5 years, 8 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, feature-media-reviews_chromium.org, posciak+watch_chromium.org, jam, mcasas+watch_chromium.org, eme-reviews_chromium.org, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, wjia+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use std::vector<uint8_t> instead of uint8*/int for MediaKeys interface BUG=433446 TEST=media_unittests and EME layout tests pass Committed: https://crrev.com/f52b16ac4740888ce847620da41357824286a719 Cr-Commit-Position: refs/heads/master@{#326824}

Patch Set 1 #

Total comments: 12

Patch Set 2 : uint8_t + mojo changes #

Patch Set 3 : rebase + more Android #

Patch Set 4 : cast changes #

Total comments: 2

Patch Set 5 : add includes #

Total comments: 4

Patch Set 6 : checked_cast #

Unified diffs Side-by-side diffs Delta from patch set Stats (+338 lines, -441 lines) Patch
M chromecast/media/cdm/browser_cdm_cast.h View 1 2 3 4 chunks +5 lines, -20 lines 0 comments Download
M chromecast/media/cdm/browser_cdm_cast.cc View 1 2 3 4 chunks +10 lines, -39 lines 0 comments Download
M content/browser/media/cdm/browser_cdm_manager.cc View 1 2 3 chunks +4 lines, -5 lines 0 comments Download
M content/renderer/media/crypto/ppapi_decryptor.h View 1 3 chunks +5 lines, -8 lines 0 comments Download
M content/renderer/media/crypto/ppapi_decryptor.cc View 1 7 chunks +8 lines, -14 lines 0 comments Download
M content/renderer/media/crypto/proxy_media_keys.h View 1 3 chunks +6 lines, -8 lines 0 comments Download
M content/renderer/media/crypto/proxy_media_keys.cc View 1 5 chunks +8 lines, -17 lines 0 comments Download
M content/renderer/pepper/content_decryptor_delegate.h View 1 4 chunks +9 lines, -11 lines 0 comments Download
M content/renderer/pepper/content_decryptor_delegate.cc View 1 2 3 4 5 17 chunks +30 lines, -30 lines 0 comments Download
M media/base/android/media_drm_bridge.h View 1 2 1 chunk +3 lines, -6 lines 0 comments Download
M media/base/android/media_drm_bridge.cc View 1 2 3 4 5 6 chunks +16 lines, -18 lines 0 comments Download
M media/base/media_keys.h View 1 5 chunks +5 lines, -8 lines 0 comments Download
M media/blink/cdm_session_adapter.h View 1 6 chunks +6 lines, -8 lines 0 comments Download
M media/blink/cdm_session_adapter.cc View 1 5 chunks +8 lines, -12 lines 0 comments Download
M media/blink/webcontentdecryptionmodule_impl.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M media/blink/webcontentdecryptionmodulesession_impl.cc View 1 2 3 4 5 chunks +6 lines, -7 lines 0 comments Download
M media/cdm/aes_decryptor.h View 1 3 chunks +5 lines, -7 lines 0 comments Download
M media/cdm/aes_decryptor.cc View 1 11 chunks +21 lines, -26 lines 0 comments Download
M media/cdm/aes_decryptor_unittest.cc View 5 chunks +20 lines, -20 lines 0 comments Download
M media/cdm/cenc_utils.h View 1 2 2 chunks +4 lines, -5 lines 0 comments Download
M media/cdm/cenc_utils.cc View 1 2 7 chunks +24 lines, -25 lines 0 comments Download
M media/cdm/cenc_utils_unittest.cc View 1 2 11 chunks +94 lines, -84 lines 0 comments Download
M media/cdm/ppapi/external_clear_key/clear_key_cdm.cc View 1 4 chunks +8 lines, -7 lines 0 comments Download
M media/cdm/proxy_decryptor.cc View 1 2 3 4 3 chunks +8 lines, -6 lines 0 comments Download
M media/mojo/services/mojo_cdm.h View 1 2 chunks +5 lines, -6 lines 0 comments Download
M media/mojo/services/mojo_cdm.cc View 1 4 chunks +6 lines, -18 lines 0 comments Download
M media/mojo/services/mojo_cdm_service.cc View 1 3 chunks +3 lines, -12 lines 0 comments Download
M media/test/pipeline_integration_test.cc View 1 2 3 4 5 chunks +9 lines, -12 lines 0 comments Download

Messages

Total messages: 22 (6 generated)
jrummell
PTAL.
5 years, 8 months ago (2015-04-21 01:03:28 UTC) #2
xhwang
Looking good. Just have a few nits. You also need to update Android, Mojo and ...
5 years, 8 months ago (2015-04-21 04:47:11 UTC) #3
jrummell
Updated to use uint8_t plus mojo changes. Android should already be covered with ProxyMediaKeys, cast ...
5 years, 8 months ago (2015-04-21 22:59:36 UTC) #4
jrummell
Updated (rebase + more Android changes)
5 years, 8 months ago (2015-04-22 23:09:45 UTC) #5
xhwang
On 2015/04/22 23:09:45, jrummell wrote: > Updated (rebase + more Android changes) Seems like some ...
5 years, 8 months ago (2015-04-23 00:09:08 UTC) #6
xhwang
lgtm % nit https://codereview.chromium.org/1072403009/diff/60001/content/renderer/pepper/content_decryptor_delegate.cc File content/renderer/pepper/content_decryptor_delegate.cc (right): https://codereview.chromium.org/1072403009/diff/60001/content/renderer/pepper/content_decryptor_delegate.cc#newcode420 content/renderer/pepper/content_decryptor_delegate.cc:420: certificate.size(), vector_as_array(&certificate)); Here and wherever applicable, ...
5 years, 8 months ago (2015-04-23 04:25:32 UTC) #7
jrummell
+bbudge@ for changes in content/renderer/pepper/ +gunsch@ for changes in chromecast/media/cdm/ https://codereview.chromium.org/1072403009/diff/60001/content/renderer/pepper/content_decryptor_delegate.cc File content/renderer/pepper/content_decryptor_delegate.cc (right): https://codereview.chromium.org/1072403009/diff/60001/content/renderer/pepper/content_decryptor_delegate.cc#newcode420 ...
5 years, 8 months ago (2015-04-23 17:25:16 UTC) #9
bbudge
https://codereview.chromium.org/1072403009/diff/80001/content/renderer/pepper/content_decryptor_delegate.cc File content/renderer/pepper/content_decryptor_delegate.cc (right): https://codereview.chromium.org/1072403009/diff/80001/content/renderer/pepper/content_decryptor_delegate.cc#newcode421 content/renderer/pepper/content_decryptor_delegate.cc:421: certificate.size(), vector_as_array(&certificate)); You should probably have a base::checked_cast to ...
5 years, 8 months ago (2015-04-23 17:35:39 UTC) #10
jrummell
Updated. https://codereview.chromium.org/1072403009/diff/80001/content/renderer/pepper/content_decryptor_delegate.cc File content/renderer/pepper/content_decryptor_delegate.cc (right): https://codereview.chromium.org/1072403009/diff/80001/content/renderer/pepper/content_decryptor_delegate.cc#newcode421 content/renderer/pepper/content_decryptor_delegate.cc:421: certificate.size(), vector_as_array(&certificate)); On 2015/04/23 17:35:39, bbudge wrote: > ...
5 years, 8 months ago (2015-04-23 20:22:43 UTC) #11
bbudge
LGTM
5 years, 8 months ago (2015-04-23 22:00:15 UTC) #12
gunsch
lgtm
5 years, 8 months ago (2015-04-23 22:50:45 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1072403009/100001
5 years, 8 months ago (2015-04-24 00:45:59 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_rel/builds/81325)
5 years, 8 months ago (2015-04-24 00:53:36 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1072403009/100001
5 years, 8 months ago (2015-04-24 17:10:27 UTC) #20
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 8 months ago (2015-04-24 17:15:51 UTC) #21
commit-bot: I haz the power
5 years, 8 months ago (2015-04-24 17:16:50 UTC) #22
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/f52b16ac4740888ce847620da41357824286a719
Cr-Commit-Position: refs/heads/master@{#326824}

Powered by Google App Engine
This is Rietveld 408576698