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

Issue 2085063002: media: Add OutputProtectionProxy (Closed)

Created:
4 years, 6 months ago by xhwang
Modified:
4 years, 6 months ago
Reviewers:
jrummell, bbudge, kcwu, oshima, *ddorwin
CC:
chromium-reviews, oshima+watch_chromium.org, eme-reviews_chromium.org, feature-media-reviews_chromium.org, mcasas+watch+vc_chromium.org, davemoore+watch_chromium.org, miu+watch_chromium.org, miu, kcwu
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

media: Add OutputProtectionProxy This class handles output protection query and request in the browser process on all platforms. On ChromeOS, it delegates the operations on the hardware displays to OutputProtectionDelegate. On other platforms, it does not check hardware displays. On all platforms, it checks whether there is any network link and adds it to the existing link mask. This class will also be used to implement mojo OutputProtection service on all platforms. This CL also updated PPAPI cdm adapter and PPAPI code to enable output protection calls on all platforms. A unit test is added via external clear key tests. BUG=592122, 589618 TEST=Added new tests. Committed: https://crrev.com/22f8a43cae802c102b5e31211ca19466294a0157 Cr-Commit-Position: refs/heads/master@{#401896}

Patch Set 1 #

Total comments: 3

Patch Set 2 : add missing file (rename) #

Patch Set 3 : fix windows compile error #

Total comments: 24

Patch Set 4 : comments addressed #

Total comments: 2

Patch Set 5 : comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+330 lines, -142 lines) Patch
M chrome/browser/chromeos/display/output_protection_delegate.cc View 2 chunks +1 line, -13 lines 0 comments Download
M chrome/browser/media/encrypted_media_browsertest.cc View 1 2 3 3 chunks +17 lines, -3 lines 0 comments Download
A chrome/browser/media/output_protection_proxy.h View 1 2 3 1 chunk +70 lines, -0 lines 0 comments Download
A chrome/browser/media/output_protection_proxy.cc View 1 2 3 4 1 chunk +89 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/pepper/chrome_browser_pepper_host_factory.cc View 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/browser/renderer_host/pepper/pepper_output_protection_message_filter.h View 1 2 3 3 chunks +8 lines, -10 lines 0 comments Download
M chrome/browser/renderer_host/pepper/pepper_output_protection_message_filter.cc View 1 2 3 6 chunks +16 lines, -42 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/renderer/media/chrome_key_systems.cc View 1 2 3 2 chunks +7 lines, -1 line 0 comments Download
M media/cdm/ppapi/external_clear_key/clear_key_cdm.h View 2 chunks +6 lines, -0 lines 0 comments Download
M media/cdm/ppapi/external_clear_key/clear_key_cdm.cc View 1 2 3 9 chunks +49 lines, -11 lines 0 comments Download
M media/cdm/ppapi/ppapi_cdm_adapter.h View 4 chunks +9 lines, -5 lines 0 comments Download
M media/cdm/ppapi/ppapi_cdm_adapter.cc View 1 2 9 chunks +7 lines, -11 lines 0 comments Download
M media/test/data/eme_player_js/app_loader.js View 1 chunk +1 line, -1 line 0 comments Download
D media/test/data/eme_player_js/file_io_test_player.js View 1 chunk +0 lines, -39 lines 0 comments Download
M media/test/data/eme_player_js/globals.js View 2 chunks +5 lines, -3 lines 0 comments Download
M media/test/data/eme_player_js/player_utils.js View 1 chunk +2 lines, -1 line 0 comments Download
A media/test/data/eme_player_js/unit_test_player.js View 1 1 chunk +41 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (12 generated)
xhwang
4 years, 6 months ago (2016-06-21 20:03:12 UTC) #3
xhwang
ddorwin / jrummell: PTAL! I tried to do everything in OutputProtectionDelegate but it turns out ...
4 years, 6 months ago (2016-06-21 20:07:18 UTC) #4
kcwu
https://chromiumcodereview.appspot.com/2085063002/diff/1/media/cdm/ppapi/external_clear_key/clear_key_cdm.cc File media/cdm/ppapi/external_clear_key/clear_key_cdm.cc (right): https://chromiumcodereview.appspot.com/2085063002/diff/1/media/cdm/ppapi/external_clear_key/clear_key_cdm.cc#newcode717 media/cdm/ppapi/external_clear_key/clear_key_cdm.cc:717: // TODO(xhwang): Check how to make status query work ...
4 years, 6 months ago (2016-06-23 09:07:40 UTC) #8
jrummell
lgtm https://codereview.chromium.org/2085063002/diff/40001/chrome/browser/media/output_protection_proxy.cc File chrome/browser/media/output_protection_proxy.cc (right): https://codereview.chromium.org/2085063002/diff/40001/chrome/browser/media/output_protection_proxy.cc#newcode36 chrome/browser/media/output_protection_proxy.cc:36: content::RenderFrameHost::FromID(render_process_id_, render_frame_id_); It appears you just copied the ...
4 years, 6 months ago (2016-06-23 18:07:57 UTC) #9
ddorwin
Minor stuff. https://chromiumcodereview.appspot.com/2085063002/diff/40001/chrome/browser/media/encrypted_media_browsertest.cc File chrome/browser/media/encrypted_media_browsertest.cc (right): https://chromiumcodereview.appspot.com/2085063002/diff/40001/chrome/browser/media/encrypted_media_browsertest.cc#newcode38 chrome/browser/media/encrypted_media_browsertest.cc:38: // Variants of external clear key key ...
4 years, 6 months ago (2016-06-23 19:24:29 UTC) #10
xhwang
On 2016/06/23 09:07:40, kcwu wrote: > https://chromiumcodereview.appspot.com/2085063002/diff/1/media/cdm/ppapi/external_clear_key/clear_key_cdm.cc > File media/cdm/ppapi/external_clear_key/clear_key_cdm.cc (right): > > https://chromiumcodereview.appspot.com/2085063002/diff/1/media/cdm/ppapi/external_clear_key/clear_key_cdm.cc#newcode717 > ...
4 years, 6 months ago (2016-06-23 20:45:53 UTC) #11
xhwang
comments addressed
4 years, 6 months ago (2016-06-23 20:53:36 UTC) #12
xhwang
https://chromiumcodereview.appspot.com/2085063002/diff/40001/chrome/browser/media/encrypted_media_browsertest.cc File chrome/browser/media/encrypted_media_browsertest.cc (right): https://chromiumcodereview.appspot.com/2085063002/diff/40001/chrome/browser/media/encrypted_media_browsertest.cc#newcode38 chrome/browser/media/encrypted_media_browsertest.cc:38: // Variants of external clear key key system to ...
4 years, 6 months ago (2016-06-23 20:53:49 UTC) #13
xhwang
oshima@chromium.org: Please OWNERS review chrome/browser/chromeos/display/output_protection_delegate.cc. bbudge@chromium.org: Please OWNERS review chrome/browser/renderer_host/pepper/*
4 years, 6 months ago (2016-06-23 20:55:54 UTC) #15
ddorwin
LGTM % comment. https://chromiumcodereview.appspot.com/2085063002/diff/60001/chrome/browser/media/output_protection_proxy.cc File chrome/browser/media/output_protection_proxy.cc (right): https://chromiumcodereview.appspot.com/2085063002/diff/60001/chrome/browser/media/output_protection_proxy.cc#newcode67 chrome/browser/media/output_protection_proxy.cc:67: // TODO(xjz): Investigate whether this check ...
4 years, 6 months ago (2016-06-23 21:36:35 UTC) #16
xhwang
https://chromiumcodereview.appspot.com/2085063002/diff/60001/chrome/browser/media/output_protection_proxy.cc File chrome/browser/media/output_protection_proxy.cc (right): https://chromiumcodereview.appspot.com/2085063002/diff/60001/chrome/browser/media/output_protection_proxy.cc#newcode67 chrome/browser/media/output_protection_proxy.cc:67: // TODO(xjz): Investigate whether this check (and the other ...
4 years, 6 months ago (2016-06-23 21:52:35 UTC) #17
xhwang
comments addressed
4 years, 6 months ago (2016-06-23 21:53:14 UTC) #18
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2085063002/80001
4 years, 6 months ago (2016-06-24 16:21:01 UTC) #20
oshima
chrome/browser/chromeos/display lgtm
4 years, 6 months ago (2016-06-24 16:22:39 UTC) #21
bbudge
chrome/browser/renderer_host/pepper LGTM (rubber stamp)
4 years, 6 months ago (2016-06-24 16:33:13 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2085063002/80001
4 years, 6 months ago (2016-06-24 16:37:58 UTC) #26
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 6 months ago (2016-06-24 17:40:21 UTC) #28
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/22f8a43cae802c102b5e31211ca19466294a0157 Cr-Commit-Position: refs/heads/master@{#401896}
4 years, 6 months ago (2016-06-24 17:41:50 UTC) #30
xhwang
4 years, 6 months ago (2016-06-24 22:03:32 UTC) #31
Message was sent while issue was closed.
A revert of this CL (patchset #5 id:80001) has been created in
https://chromiumcodereview.appspot.com/2095963004/ by xhwang@chromium.org.

The reason for reverting is: This is breaking bots using --isolation-extensions

https://build.chromium.org/p/chromium.fyi/builders/Site%20Isolation%20Win/bui...

Also see issue 623214..

Powered by Google App Engine
This is Rietveld 408576698