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

Issue 557723003: Implement Chromium side of MediaKeys.isTypeSupported(). (Closed)

Created:
6 years, 3 months ago by sandersd (OOO until July 31)
Modified:
6 years, 2 months ago
CC:
chromium-reviews, eme-reviews_chromium.org, posciak+watch_chromium.org, jam, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, wjia+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Implement Chromium side of MediaKeys.isTypeSupported(). BUG=405731 Committed: https://crrev.com/3573622da943ccb017e1dd93791a7efad5a3bcc8 Cr-Commit-Position: refs/heads/master@{#297550}

Patch Set 1 #

Patch Set 2 : Add DEP from components/cdm/renderer to content/public/common. #

Total comments: 75

Patch Set 3 : Requested changes. #

Total comments: 83

Patch Set 4 : More requested changes. #

Total comments: 24

Patch Set 5 : Small fixes. #

Total comments: 2

Patch Set 6 : Comment #

Total comments: 2

Patch Set 7 : Fix #endif comment. #

Total comments: 2

Patch Set 8 : Spelling #

Patch Set 9 : Remove Blink interfaces. #

Patch Set 10 : Fix key_systems_unittest. #

Patch Set 11 : Work around performance warning. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+250 lines, -109 lines) Patch
M chrome/renderer/media/chrome_key_systems.cc View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M components/cdm/common/cdm_messages_android.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M components/cdm/renderer/DEPS View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/cdm/renderer/android_key_systems.cc View 1 2 3 4 2 chunks +10 lines, -0 lines 0 comments Download
M components/cdm/renderer/widevine_key_systems.cc View 1 2 3 2 chunks +11 lines, -0 lines 0 comments Download
M content/content_common.gypi View 1 2 1 chunk +1 line, -1 line 0 comments Download
D content/public/common/eme_codec.h View 1 2 1 chunk +0 lines, -37 lines 0 comments Download
A + content/public/common/eme_constants.h View 1 2 3 4 5 6 2 chunks +20 lines, -4 lines 0 comments Download
M content/public/renderer/key_system_info.h View 1 2 3 4 2 chunks +4 lines, -1 line 0 comments Download
M content/public/renderer/key_system_info.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/media/crypto/key_systems.h View 1 2 3 4 5 6 7 1 chunk +18 lines, -0 lines 0 comments Download
M content/renderer/media/crypto/key_systems.cc View 1 2 3 4 5 6 7 8 9 10 22 chunks +175 lines, -65 lines 0 comments Download
M content/renderer/media/crypto/key_systems_unittest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 41 (11 generated)
sandersd (OOO until July 31)
Test and components DEPS are being refactored in separate CLs.
6 years, 3 months ago (2014-09-12 21:03:05 UTC) #2
ddorwin
Thanks. The approach LG. Mostly minor issues and nits. https://codereview.chromium.org/557723003/diff/20001/chrome/renderer/media/chrome_key_systems.cc File chrome/renderer/media/chrome_key_systems.cc (right): https://codereview.chromium.org/557723003/diff/20001/chrome/renderer/media/chrome_key_systems.cc#newcode17 chrome/renderer/media/chrome_key_systems.cc:17: ...
6 years, 3 months ago (2014-09-13 01:20:47 UTC) #3
ddorwin
A couple more comments for discussion. https://codereview.chromium.org/557723003/diff/20001/content/renderer/media/crypto/key_systems.cc File content/renderer/media/crypto/key_systems.cc (right): https://codereview.chromium.org/557723003/diff/20001/content/renderer/media/crypto/key_systems.cc#newcode48 content/renderer/media/crypto/key_systems.cc:48: {"audio/webm", EME_CODEC_WEBM_AUDIO_ALL}, I ...
6 years, 3 months ago (2014-09-13 03:51:05 UTC) #4
sandersd (OOO until July 31)
https://codereview.chromium.org/557723003/diff/20001/chrome/renderer/media/chrome_key_systems.cc File chrome/renderer/media/chrome_key_systems.cc (right): https://codereview.chromium.org/557723003/diff/20001/chrome/renderer/media/chrome_key_systems.cc#newcode17 chrome/renderer/media/chrome_key_systems.cc:17: #include "content/public/common/eme_init_data_type.h" On 2014/09/13 01:20:44, ddorwin wrote: > Does ...
6 years, 3 months ago (2014-09-22 23:45:54 UTC) #5
ddorwin
https://codereview.chromium.org/557723003/diff/20001/content/renderer/media/crypto/key_systems.cc File content/renderer/media/crypto/key_systems.cc (right): https://codereview.chromium.org/557723003/diff/20001/content/renderer/media/crypto/key_systems.cc#newcode48 content/renderer/media/crypto/key_systems.cc:48: {"audio/webm", EME_CODEC_WEBM_AUDIO_ALL}, On 2014/09/22 23:45:53, sandersd wrote: > On ...
6 years, 3 months ago (2014-09-23 22:48:18 UTC) #6
ddorwin
xhwang, please see the two comments for you in https://codereview.chromium.org/557723003/diff/40001/content/renderer/media/crypto/key_systems.cc#newcode407.
6 years, 3 months ago (2014-09-23 23:15:48 UTC) #8
sandersd (OOO until July 31)
https://codereview.chromium.org/557723003/diff/40001/components/cdm/renderer/android_key_systems.cc File components/cdm/renderer/android_key_systems.cc (right): https://codereview.chromium.org/557723003/diff/40001/components/cdm/renderer/android_key_systems.cc#newcode69 components/cdm/renderer/android_key_systems.cc:69: // Assume that WebM and CENC are supported by ...
6 years, 2 months ago (2014-09-24 22:22:35 UTC) #9
ddorwin
Looks pretty good. After you make these changes, let's get input from xhwang on my ...
6 years, 2 months ago (2014-09-27 00:41:25 UTC) #10
sandersd (OOO until July 31)
https://codereview.chromium.org/557723003/diff/60001/components/cdm/renderer/android_key_systems.cc File components/cdm/renderer/android_key_systems.cc (right): https://codereview.chromium.org/557723003/diff/60001/components/cdm/renderer/android_key_systems.cc#newcode70 components/cdm/renderer/android_key_systems.cc:70: // CDMs. KeySystems validates that they match with the ...
6 years, 2 months ago (2014-09-29 17:49:24 UTC) #11
ddorwin
LG % nit. xhwang, please see my three comments for you in https://codereview.chromium.org/557723003/diff/40001/content/renderer/media/crypto/key_systems.cc (an older ...
6 years, 2 months ago (2014-09-29 18:53:52 UTC) #12
sandersd (OOO until July 31)
https://codereview.chromium.org/557723003/diff/80001/content/renderer/media/crypto/key_systems.h File content/renderer/media/crypto/key_systems.h (right): https://codereview.chromium.org/557723003/diff/80001/content/renderer/media/crypto/key_systems.h#newcode36 content/renderer/media/crypto/key_systems.h:36: // Note: Shouldn't be used for prefixed API as ...
6 years, 2 months ago (2014-09-29 19:52:13 UTC) #13
xhwang
I didn't fully review this CL. Just provide some info/comments... https://codereview.chromium.org/557723003/diff/40001/content/renderer/media/crypto/key_systems.cc File content/renderer/media/crypto/key_systems.cc (right): https://codereview.chromium.org/557723003/diff/40001/content/renderer/media/crypto/key_systems.cc#newcode407 ...
6 years, 2 months ago (2014-09-29 21:27:18 UTC) #14
sandersd (OOO until July 31)
https://codereview.chromium.org/557723003/diff/40001/content/renderer/media/crypto/key_systems.cc File content/renderer/media/crypto/key_systems.cc (right): https://codereview.chromium.org/557723003/diff/40001/content/renderer/media/crypto/key_systems.cc#newcode407 content/renderer/media/crypto/key_systems.cc:407: EmeCodec codec = LookupCodec(codecs[i]); On 2014/09/29 21:27:17, xhwang wrote: ...
6 years, 2 months ago (2014-09-29 21:38:48 UTC) #15
ddorwin
LGTM. We'll need to revisit UMAs for unprefixed. Do we have a bug for that?
6 years, 2 months ago (2014-09-29 22:13:22 UTC) #16
sandersd (OOO until July 31)
On 2014/09/29 22:13:22, ddorwin wrote: > LGTM. We'll need to revisit UMAs for unprefixed. Do ...
6 years, 2 months ago (2014-09-29 22:42:12 UTC) #17
sandersd (OOO until July 31)
nasko@chromium.org: Please review changes in components/cdm/common. ben@chromium.org: Please review changes in content/public and content/renderer.
6 years, 2 months ago (2014-09-29 22:58:59 UTC) #19
sandersd (OOO until July 31)
bin: Ignore previous. avi: Please review changes in content/public and content/renderer.
6 years, 2 months ago (2014-09-29 23:12:05 UTC) #21
nasko
components/cdm/common/cdm_messages_android.h LGTM
6 years, 2 months ago (2014-09-29 23:18:00 UTC) #22
Avi (use Gerrit)
lgtm stamp https://codereview.chromium.org/557723003/diff/120001/content/renderer/media/crypto/key_systems.h File content/renderer/media/crypto/key_systems.h (right): https://codereview.chromium.org/557723003/diff/120001/content/renderer/media/crypto/key_systems.h#newcode29 content/renderer/media/crypto/key_systems.h:29: // TODO(sandersd): Remove this essentailly internal detail ...
6 years, 2 months ago (2014-09-30 05:13:54 UTC) #23
sandersd (OOO until July 31)
https://codereview.chromium.org/557723003/diff/120001/content/renderer/media/crypto/key_systems.h File content/renderer/media/crypto/key_systems.h (right): https://codereview.chromium.org/557723003/diff/120001/content/renderer/media/crypto/key_systems.h#newcode29 content/renderer/media/crypto/key_systems.h:29: // TODO(sandersd): Remove this essentailly internal detail if the ...
6 years, 2 months ago (2014-09-30 16:41:29 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/557723003/140001
6 years, 2 months ago (2014-09-30 19:46:18 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_dbg on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_dbg/builds/3743)
6 years, 2 months ago (2014-09-30 20:00:41 UTC) #28
sandersd (OOO until July 31)
FYI, I have removed the portions of this CL that expose it to Blink, as ...
6 years, 2 months ago (2014-09-30 20:38:51 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/557723003/160001
6 years, 2 months ago (2014-09-30 20:39:39 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_tests_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg_tests_recipe/builds/13985)
6 years, 2 months ago (2014-09-30 20:57:46 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/557723003/180001
6 years, 2 months ago (2014-09-30 21:02:52 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: win_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu/builds/67568) win_chromium_rel_swarming on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_swarming/builds/17689)
6 years, 2 months ago (2014-09-30 21:35:15 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/557723003/200001
6 years, 2 months ago (2014-09-30 22:06:57 UTC) #39
commit-bot: I haz the power
Committed patchset #11 (id:200001) as 78021a0ed663fc3f62b10751eb0c4f8806d0cdab
6 years, 2 months ago (2014-09-30 23:55:19 UTC) #40
commit-bot: I haz the power
6 years, 2 months ago (2014-09-30 23:55:53 UTC) #41
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/3573622da943ccb017e1dd93791a7efad5a3bcc8
Cr-Commit-Position: refs/heads/master@{#297550}

Powered by Google App Engine
This is Rietveld 408576698