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

Issue 1124863005: Restrict use of hardware-secure codecs based on the RendererPreference. (Closed)

Created:
5 years, 7 months ago by sandersd (OOO until July 31)
Modified:
5 years, 7 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, feature-media-reviews_chromium.org, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@setsecurity
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Restrict use of hardware-secure codecs based on the RendererPreference. This passes the value of |use_video_overlay_for_embedded_encrypted_video| from RendererPreferences to requestMediaKeySystemAccess() so that it can correctly block either non-hardware-secure codecs or hardware-secure codecs. BUG=467779 Committed: https://crrev.com/02d9aea8003449c921c5c4b41ab67b0f554b1a72 Cr-Commit-Position: refs/heads/master@{#329329}

Patch Set 1 #

Patch Set 2 : Pass result of CB into selector. #

Patch Set 3 : Rename secure_codec -> secure_surface in some cases. #

Total comments: 18

Patch Set 4 : Rebase. #

Patch Set 5 : Remove ifdefs. #

Total comments: 6

Patch Set 6 : Switch back to SECURE_CODECS. #

Total comments: 2

Patch Set 7 : Comment for base::Unretained(). #

Total comments: 2

Patch Set 8 : Move into anonymous namespace. #

Patch Set 9 : Constructor initialization ordering. #

Patch Set 10 : Enum name typo. #

Patch Set 11 : Read renderer preference correctly. #

Patch Set 12 : Correct unittests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -34 lines) Patch
M components/html_viewer/html_document.cc View 1 2 3 4 5 6 7 2 chunks +8 lines, -1 line 0 comments Download
M content/renderer/render_frame_impl.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +15 lines, -0 lines 0 comments Download
M media/base/eme_constants.h View 1 2 3 4 5 1 chunk +6 lines, -7 lines 0 comments Download
M media/base/key_systems.cc View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -3 lines 0 comments Download
M media/blink/key_system_config_selector.h View 1 2 3 4 5 3 chunks +8 lines, -4 lines 0 comments Download
M media/blink/key_system_config_selector.cc View 1 2 3 4 5 10 chunks +17 lines, -11 lines 0 comments Download
M media/blink/key_system_config_selector_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -2 lines 0 comments Download
M media/blink/webencryptedmediaclient_impl.h View 1 2 3 4 5 4 chunks +8 lines, -3 lines 0 comments Download
M media/blink/webencryptedmediaclient_impl.cc View 1 2 3 4 5 6 7 8 3 chunks +8 lines, -3 lines 0 comments Download

Messages

Total messages: 52 (18 generated)
sandersd (OOO until July 31)
5 years, 7 months ago (2015-05-05 23:51:24 UTC) #2
ddorwin
Thanks. https://codereview.chromium.org/1124863005/diff/40002/components/html_viewer/html_document.cc File components/html_viewer/html_document.cc (right): https://codereview.chromium.org/1124863005/diff/40002/components/html_viewer/html_document.cc#newcode390 components/html_viewer/html_document.cc:390: bool AllowSecureSurfaces() { This could be interrupted as ...
5 years, 7 months ago (2015-05-06 02:17:12 UTC) #4
sandersd (OOO until July 31)
https://codereview.chromium.org/1124863005/diff/40002/components/html_viewer/html_document.cc File components/html_viewer/html_document.cc (right): https://codereview.chromium.org/1124863005/diff/40002/components/html_viewer/html_document.cc#newcode390 components/html_viewer/html_document.cc:390: bool AllowSecureSurfaces() { On 2015/05/06 02:17:11, ddorwin wrote: > ...
5 years, 7 months ago (2015-05-08 00:37:42 UTC) #5
ddorwin
LG https://codereview.chromium.org/1124863005/diff/40002/media/blink/webencryptedmediaclient_impl.cc File media/blink/webencryptedmediaclient_impl.cc (right): https://codereview.chromium.org/1124863005/diff/40002/media/blink/webencryptedmediaclient_impl.cc#newcode134 media/blink/webencryptedmediaclient_impl.cc:134: // TODO(sandersd): Pass |require_secure_surfaces| along and use it ...
5 years, 7 months ago (2015-05-08 03:18:31 UTC) #6
sandersd (OOO until July 31)
https://codereview.chromium.org/1124863005/diff/40002/media/blink/webencryptedmediaclient_impl.cc File media/blink/webencryptedmediaclient_impl.cc (right): https://codereview.chromium.org/1124863005/diff/40002/media/blink/webencryptedmediaclient_impl.cc#newcode134 media/blink/webencryptedmediaclient_impl.cc:134: // TODO(sandersd): Pass |require_secure_surfaces| along and use it to ...
5 years, 7 months ago (2015-05-08 18:04:46 UTC) #7
ddorwin
LGTM with a new PS containing the #else fix.
5 years, 7 months ago (2015-05-08 18:14:00 UTC) #8
sandersd (OOO until July 31)
On 2015/05/08 18:14:00, ddorwin wrote: > LGTM with a new PS containing the #else fix. ...
5 years, 7 months ago (2015-05-08 20:42:23 UTC) #9
sandersd (OOO until July 31)
erikwright@chromium.org: Please review changes in components/html_viewer. nasko@chromium.org: Please review changes in content/renderer.
5 years, 7 months ago (2015-05-08 20:50:03 UTC) #11
nasko
https://codereview.chromium.org/1124863005/diff/110001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/1124863005/diff/110001/content/renderer/render_frame_impl.cc#newcode3590 content/renderer/render_frame_impl.cc:3590: base::Unretained(this)), nit: Put a comment explaining why using base::Unretained ...
5 years, 7 months ago (2015-05-08 22:17:23 UTC) #12
sandersd (OOO until July 31)
https://codereview.chromium.org/1124863005/diff/110001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/1124863005/diff/110001/content/renderer/render_frame_impl.cc#newcode3590 content/renderer/render_frame_impl.cc:3590: base::Unretained(this)), On 2015/05/08 22:17:23, nasko wrote: > nit: Put ...
5 years, 7 months ago (2015-05-08 22:29:37 UTC) #13
nasko
Thanks! LGTM
5 years, 7 months ago (2015-05-08 22:30:53 UTC) #14
ddorwin
lgtm
5 years, 7 months ago (2015-05-09 02:04:12 UTC) #15
sandersd (OOO until July 31)
sky@: Please review changes in components/html_viewer.
5 years, 7 months ago (2015-05-11 17:56:12 UTC) #17
sky
LGTM https://codereview.chromium.org/1124863005/diff/130001/components/html_viewer/html_document.cc File components/html_viewer/html_document.cc (right): https://codereview.chromium.org/1124863005/diff/130001/components/html_viewer/html_document.cc#newcode386 components/html_viewer/html_document.cc:386: bool AreSecureCodecsSupported() { nit: move this into anonymous ...
5 years, 7 months ago (2015-05-11 19:13:05 UTC) #18
sandersd (OOO until July 31)
https://codereview.chromium.org/1124863005/diff/130001/components/html_viewer/html_document.cc File components/html_viewer/html_document.cc (right): https://codereview.chromium.org/1124863005/diff/130001/components/html_viewer/html_document.cc#newcode386 components/html_viewer/html_document.cc:386: bool AreSecureCodecsSupported() { On 2015/05/11 19:13:05, sky wrote: > ...
5 years, 7 months ago (2015-05-11 19:53:27 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1124863005/150001
5 years, 7 months ago (2015-05-11 19:54:41 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_dbg on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_dbg/builds/70679)
5 years, 7 months ago (2015-05-11 20:01:33 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1124863005/170001
5 years, 7 months ago (2015-05-11 20:19:41 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_dbg on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_dbg/builds/70715) linux_chromium_gn_rel on tryserver.chromium.linux (JOB_FAILED, ...
5 years, 7 months ago (2015-05-11 20:27:53 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1124863005/190001
5 years, 7 months ago (2015-05-11 20:51:40 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: android_compile_dbg on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_compile_dbg/builds/15087) linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, ...
5 years, 7 months ago (2015-05-11 21:26:27 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1124863005/210001
5 years, 7 months ago (2015-05-11 22:28:24 UTC) #37
commit-bot: I haz the power
Committed patchset #11 (id:210001)
5 years, 7 months ago (2015-05-12 00:29:44 UTC) #38
commit-bot: I haz the power
Patchset 11 (id:??) landed as https://crrev.com/491fea8c41977b1557a79cf2f53d4b60ecd159d9 Cr-Commit-Position: refs/heads/master@{#329296}
5 years, 7 months ago (2015-05-12 00:31:46 UTC) #39
mdempsky
On 2015/05/12 00:31:46, I haz the power (commit-bot) wrote: > Patchset 11 (id:??) landed as ...
5 years, 7 months ago (2015-05-12 01:12:45 UTC) #40
mdempsky
A revert of this CL (patchset #11 id:210001) has been created in https://codereview.chromium.org/1137993004/ by mdempsky@chromium.org. ...
5 years, 7 months ago (2015-05-12 01:15:56 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1124863005/230001
5 years, 7 months ago (2015-05-12 01:26:12 UTC) #44
commit-bot: I haz the power
Committed patchset #12 (id:230001)
5 years, 7 months ago (2015-05-12 02:29:37 UTC) #45
commit-bot: I haz the power
Patchset 12 (id:??) landed as https://crrev.com/02d9aea8003449c921c5c4b41ab67b0f554b1a72 Cr-Commit-Position: refs/heads/master@{#329329}
5 years, 7 months ago (2015-05-12 02:30:28 UTC) #46
mdempsky
On 2015/05/12 02:30:28, I haz the power (commit-bot) wrote: > Patchset 12 (id:??) landed as ...
5 years, 7 months ago (2015-05-12 03:00:42 UTC) #47
DaleCurtis
This comes up on chromium-dev every once in and while and I've never seen consensus; ...
5 years, 7 months ago (2015-05-12 03:09:19 UTC) #49
ddorwin
Anyone know why PS11 passed all bots and was allowed to commit? Are media_blink_unittests not ...
5 years, 7 months ago (2015-05-12 03:26:41 UTC) #50
DaleCurtis
I believe they aren't, I ran into this issue the other day but haven't had ...
5 years, 7 months ago (2015-05-12 03:27:42 UTC) #51
ddorwin
5 years, 7 months ago (2015-05-12 17:11:12 UTC) #52
Message was sent while issue was closed.
On 2015/05/12 03:27:42, DaleCurtis wrote:
> I believe they aren't, I ran into this issue the other day but haven't had
time
> to track it down.

Filed https://code.google.com/p/chromium/issues/detail?id=487300

Powered by Google App Engine
This is Rietveld 408576698