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

Issue 1106263004: Support Android secure codecs in requestMediaKeySystemAccess(). (Closed)

Created:
5 years, 7 months ago by sandersd (OOO until July 31)
Modified:
5 years, 7 months ago
Reviewers:
jrummell, boliu, ddorwin, gunsch
CC:
chromium-reviews, feature-media-reviews_chromium.org, android-webview-reviews_chromium.org, eme-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Support Android secure codecs in requestMediaKeySystemAccess(). This adds the bits necessary to determine if a configuration requires hardware-secure codecs. It does not add the logic to actually enable secure surfaces based on the requirement, that decision is still based on the renderer preference. BUG=467779 Committed: https://crrev.com/a6bf8b52a70dafe95e8e2d8827f5e1283ec1bf56 Cr-Commit-Position: refs/heads/master@{#328464}

Patch Set 1 #

Total comments: 32

Patch Set 2 : Fix Android. #

Patch Set 3 : Address comments. #

Total comments: 22

Patch Set 4 : Update tests. #

Patch Set 5 : Cast key systems. #

Patch Set 6 : Comments. #

Total comments: 6

Patch Set 7 : Include build_config.h. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+195 lines, -143 lines) Patch
M android_webview/renderer/aw_key_systems.cc View 1 chunk +1 line, -5 lines 0 comments Download
M chrome/renderer/media/chrome_key_systems.cc View 1 chunk +1 line, -5 lines 0 comments Download
M chromecast/renderer/key_systems_cast.cc View 1 2 3 4 5 2 chunks +19 lines, -11 lines 0 comments Download
M components/cdm/renderer/android_key_systems.h View 1 chunk +1 line, -6 lines 0 comments Download
M components/cdm/renderer/android_key_systems.cc View 1 2 3 4 5 3 chunks +38 lines, -45 lines 0 comments Download
M components/cdm/renderer/widevine_key_systems.h View 1 chunk +3 lines, -0 lines 0 comments Download
M components/cdm/renderer/widevine_key_systems.cc View 2 chunks +6 lines, -0 lines 0 comments Download
M media/base/eme_constants.h View 1 2 3 4 5 1 chunk +9 lines, -0 lines 0 comments Download
M media/base/key_system_info.h View 1 2 3 4 5 6 3 chunks +15 lines, -9 lines 0 comments Download
M media/base/key_system_info.cc View 1 chunk +1 line, -10 lines 0 comments Download
M media/base/key_systems.h View 1 chunk +3 lines, -4 lines 0 comments Download
M media/base/key_systems.cc View 1 2 3 4 5 6 chunks +30 lines, -10 lines 0 comments Download
M media/base/key_systems_unittest.cc View 1 2 3 1 chunk +6 lines, -4 lines 0 comments Download
M media/blink/key_system_config_selector.h View 1 chunk +2 lines, -1 line 0 comments Download
M media/blink/key_system_config_selector.cc View 1 2 3 4 5 9 chunks +55 lines, -29 lines 0 comments Download
M media/blink/key_system_config_selector_unittest.cc View 1 chunk +5 lines, -4 lines 0 comments Download

Messages

Total messages: 52 (21 generated)
sandersd (OOO until July 31)
This is not quite done yet, there are two places I need to read the ...
5 years, 7 months ago (2015-04-30 01:13:30 UTC) #2
jrummell
LG. https://codereview.chromium.org/1106263004/diff/1/components/cdm/renderer/android_key_systems.cc File components/cdm/renderer/android_key_systems.cc (right): https://codereview.chromium.org/1106263004/diff/1/components/cdm/renderer/android_key_systems.cc#newcode57 components/cdm/renderer/android_key_systems.cc:57: media::EME_SESSION_TYPE_NOT_SUPPORTED, // persistent-license. Shouldn't these be media::EmeSessionTypeSupport::? https://codereview.chromium.org/1106263004/diff/1/components/cdm/renderer/android_key_systems.cc#newcode74 ...
5 years, 7 months ago (2015-04-30 02:08:37 UTC) #3
ddorwin
LG. Thanks. https://codereview.chromium.org/1106263004/diff/1/components/cdm/renderer/android_key_systems.cc File components/cdm/renderer/android_key_systems.cc (right): https://codereview.chromium.org/1106263004/diff/1/components/cdm/renderer/android_key_systems.cc#newcode50 components/cdm/renderer/android_key_systems.cc:50: if (response.compositing_codecs != media::EME_CODEC_NONE) { Should we ...
5 years, 7 months ago (2015-04-30 18:18:05 UTC) #4
sandersd (OOO until July 31)
https://codereview.chromium.org/1106263004/diff/1/components/cdm/renderer/android_key_systems.cc File components/cdm/renderer/android_key_systems.cc (right): https://codereview.chromium.org/1106263004/diff/1/components/cdm/renderer/android_key_systems.cc#newcode57 components/cdm/renderer/android_key_systems.cc:57: media::EME_SESSION_TYPE_NOT_SUPPORTED, // persistent-license. On 2015/04/30 02:08:37, jrummell wrote: > ...
5 years, 7 months ago (2015-04-30 18:19:34 UTC) #5
sandersd (OOO until July 31)
https://codereview.chromium.org/1106263004/diff/1/components/cdm/renderer/android_key_systems.cc File components/cdm/renderer/android_key_systems.cc (right): https://codereview.chromium.org/1106263004/diff/1/components/cdm/renderer/android_key_systems.cc#newcode50 components/cdm/renderer/android_key_systems.cc:50: if (response.compositing_codecs != media::EME_CODEC_NONE) { On 2015/04/30 18:18:04, ddorwin ...
5 years, 7 months ago (2015-04-30 19:57:45 UTC) #6
jrummell
lgtm
5 years, 7 months ago (2015-05-01 18:08:32 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1106263004/40001
5 years, 7 months ago (2015-05-01 18:11:11 UTC) #9
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_gn_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_rel/builds/84480)
5 years, 7 months ago (2015-05-01 18:33:23 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1106263004/60001
5 years, 7 months ago (2015-05-01 19:40:18 UTC) #14
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: cast_shell_android on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_android/builds/6578)
5 years, 7 months ago (2015-05-01 20:11:27 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1106263004/80001
5 years, 7 months ago (2015-05-01 20:21:40 UTC) #19
ddorwin
LG. Just comments on comments. https://codereview.chromium.org/1106263004/diff/40001/components/cdm/renderer/android_key_systems.cc File components/cdm/renderer/android_key_systems.cc (right): https://codereview.chromium.org/1106263004/diff/40001/components/cdm/renderer/android_key_systems.cc#newcode48 components/cdm/renderer/android_key_systems.cc:48: // Since we do ...
5 years, 7 months ago (2015-05-01 20:39:12 UTC) #20
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/6589)
5 years, 7 months ago (2015-05-01 20:52:55 UTC) #22
sandersd (OOO until July 31)
https://codereview.chromium.org/1106263004/diff/40001/components/cdm/renderer/android_key_systems.cc File components/cdm/renderer/android_key_systems.cc (right): https://codereview.chromium.org/1106263004/diff/40001/components/cdm/renderer/android_key_systems.cc#newcode48 components/cdm/renderer/android_key_systems.cc:48: // Since we do not control the implementation of ...
5 years, 7 months ago (2015-05-01 21:57:02 UTC) #23
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1106263004/100001
5 years, 7 months ago (2015-05-01 21:58:35 UTC) #26
ddorwin
LGTM % comments. https://codereview.chromium.org/1106263004/diff/100001/chromecast/renderer/key_systems_cast.cc File chromecast/renderer/key_systems_cast.cc (right): https://codereview.chromium.org/1106263004/diff/100001/chromecast/renderer/key_systems_cast.cc#newcode53 chromecast/renderer/key_systems_cast.cc:53: codecs, // Hardware-secure codecs. Hmm. We ...
5 years, 7 months ago (2015-05-01 22:26:13 UTC) #27
sandersd (OOO until July 31)
https://codereview.chromium.org/1106263004/diff/100001/chromecast/renderer/key_systems_cast.cc File chromecast/renderer/key_systems_cast.cc (right): https://codereview.chromium.org/1106263004/diff/100001/chromecast/renderer/key_systems_cast.cc#newcode53 chromecast/renderer/key_systems_cast.cc:53: codecs, // Hardware-secure codecs. On 2015/05/01 22:26:13, ddorwin wrote: ...
5 years, 7 months ago (2015-05-01 22:33:21 UTC) #28
ddorwin
lgtm https://codereview.chromium.org/1106263004/diff/100001/chromecast/renderer/key_systems_cast.cc File chromecast/renderer/key_systems_cast.cc (right): https://codereview.chromium.org/1106263004/diff/100001/chromecast/renderer/key_systems_cast.cc#newcode53 chromecast/renderer/key_systems_cast.cc:53: codecs, // Hardware-secure codecs. On 2015/05/01 22:33:21, sandersd ...
5 years, 7 months ago (2015-05-01 23:08:46 UTC) #29
sandersd (OOO until July 31)
boliu@chromium.org: Please review changes in android_webview/renderer/aw_key_systems.cc gunsch@chromium.org: Please review changes in chromecast/renderer/key_systems_cast.cc
5 years, 7 months ago (2015-05-01 23:42:43 UTC) #31
gunsch
lgtm for chromecast/ Out of curiosity, what are the future plans for "secure" codec detection? ...
5 years, 7 months ago (2015-05-02 22:06:06 UTC) #32
boliu
rs lgtm
5 years, 7 months ago (2015-05-04 04:10:14 UTC) #33
sandersd (OOO until July 31)
> 1) Are there plans to actually query the Android platform for secure audio > ...
5 years, 7 months ago (2015-05-04 18:19:53 UTC) #34
gunsch
On 2015/05/04 18:19:53, sandersd wrote: > > 1) Are there plans to actually query the ...
5 years, 7 months ago (2015-05-04 18:33:37 UTC) #35
chromium-reviews
> > Are there plans to query the Android platform for secure > _video_ codecs? ...
5 years, 7 months ago (2015-05-04 19:50:57 UTC) #36
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1106263004/140001
5 years, 7 months ago (2015-05-04 22:35:56 UTC) #40
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_gn_chromeos_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_chromeos_rel/builds/33935)
5 years, 7 months ago (2015-05-04 22:55:01 UTC) #42
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1106263004/160001
5 years, 7 months ago (2015-05-04 23:26:46 UTC) #46
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 7 months ago (2015-05-05 01:07:09 UTC) #48
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1106263004/160001
5 years, 7 months ago (2015-05-05 23:06:26 UTC) #50
commit-bot: I haz the power
Committed patchset #7 (id:160001)
5 years, 7 months ago (2015-05-06 01:51:06 UTC) #51
commit-bot: I haz the power
5 years, 7 months ago (2015-05-06 01:52:47 UTC) #52
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/a6bf8b52a70dafe95e8e2d8827f5e1283ec1bf56
Cr-Commit-Position: refs/heads/master@{#328464}

Powered by Google App Engine
This is Rietveld 408576698