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

Issue 2675743002: PPAPI: Make output protection API work with mus+ash (Closed)

Created:
3 years, 10 months ago by Peng
Modified:
3 years, 10 months ago
Reviewers:
rjkroege, kcwu, oshima, sky, dcheng
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, oshima+watch_chromium.org, darin (slow to review), davemoore+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

PPAPI: Make output protection API work with mus+ash With mustash, mus process is responsible for controlling the display hardware instead of browser process. So the pepper output protection impl in browser process can not access DisplayConfigurator directly anymore. This CL adds several content protection related mojo IPC. The output protection impl will use those mojo IPC to access the DisplayConfigurator in mus process. PS. Netflix uses the pepper output protection API. BUG=684003 Review-Url: https://codereview.chromium.org/2675743002 Cr-Commit-Position: refs/heads/master@{#450858} Committed: https://chromium.googlesource.com/chromium/src/+/ae7972cadaacc1220283a8536061350046e82a3a

Patch Set 1 #

Patch Set 2 : Update #

Patch Set 3 : Update #

Patch Set 4 : Update #

Patch Set 5 : Fix build issues #

Patch Set 6 : Fix try bot #

Total comments: 4

Patch Set 7 : Fix review issues #

Total comments: 2

Patch Set 8 : Update #

Total comments: 2

Patch Set 9 : Update #

Total comments: 17

Patch Set 10 : Update #

Patch Set 11 : Update #

Patch Set 12 : Update #

Total comments: 18

Patch Set 13 : Update #

Total comments: 8

Patch Set 14 : Update #

Patch Set 15 : Fix build error #

Total comments: 4

Patch Set 16 : Update #

Patch Set 17 : Add it in ui's manifest #

Total comments: 2

Patch Set 18 : Fix review issues #

Patch Set 19 : Rebase #

Total comments: 2

Patch Set 20 : Fix review issue #

Total comments: 14

Patch Set 21 : Addressed review issues #

Unified diffs Side-by-side diffs Delta from patch set Stats (+516 lines, -235 lines) Patch
M chrome/browser/chromeos/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +4 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/display/output_protection_controller_ash.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +40 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/display/output_protection_controller_ash.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +45 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/display/output_protection_controller_mus.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +40 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/display/output_protection_controller_mus.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +38 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/display/output_protection_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +27 lines, -13 lines 0 comments Download
M chrome/browser/chromeos/display/output_protection_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +52 lines, -79 lines 0 comments Download
M chrome/browser/media/output_protection_proxy.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M content/public/app/mojo/content_browser_manifest.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +3 lines, -2 lines 0 comments Download
M services/ui/display/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +2 lines, -0 lines 0 comments Download
A services/ui/display/output_protection.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +44 lines, -0 lines 0 comments Download
A services/ui/display/output_protection.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +34 lines, -0 lines 0 comments Download
M services/ui/display/screen_manager_ozone_internal.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +6 lines, -0 lines 0 comments Download
M services/ui/display/screen_manager_ozone_internal.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +11 lines, -0 lines 0 comments Download
M services/ui/manifest.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +3 lines, -0 lines 0 comments Download
M services/ui/public/interfaces/display/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
A services/ui/public/interfaces/display/output_protection.mojom View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +32 lines, -0 lines 0 comments Download
M ui/display/manager/chromeos/display_configurator.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 7 chunks +31 lines, -39 lines 0 comments Download
M ui/display/manager/chromeos/display_configurator.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 9 chunks +31 lines, -32 lines 0 comments Download
M ui/display/manager/chromeos/display_configurator_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 11 chunks +71 lines, -69 lines 0 comments Download

Messages

Total messages: 106 (58 generated)
Peng
Hi Oshima, PTAL. Thanks.
3 years, 10 months ago (2017-02-03 17:49:45 UTC) #7
oshima
The change looks fine, but I want xhwang@ who worked on this to take a ...
3 years, 10 months ago (2017-02-06 21:51:23 UTC) #15
xhwang
+kcwu, who is the best person to review this change.
3 years, 10 months ago (2017-02-06 22:07:26 UTC) #17
xhwang
BTW, in the CL title/description, please provide summary/detail on what this CL is doing. AFAICT, ...
3 years, 10 months ago (2017-02-06 22:08:50 UTC) #18
kcwu
Could you give me a link explain what is mustash? This is the first time ...
3 years, 10 months ago (2017-02-07 01:35:45 UTC) #19
Peng
https://codereview.chromium.org/2675743002/diff/100001/chrome/browser/chromeos/display/output_protection_delegate.cc File chrome/browser/chromeos/display/output_protection_delegate.cc (right): https://codereview.chromium.org/2675743002/diff/100001/chrome/browser/chromeos/display/output_protection_delegate.cc#newcode154 chrome/browser/chromeos/display/output_protection_delegate.cc:154: display_id_(0), On 2017/02/06 21:51:23, oshima wrote: > nit: shouldn't ...
3 years, 10 months ago (2017-02-07 15:12:59 UTC) #21
Peng
On 2017/02/07 01:35:45, kcwu wrote: > Could you give me a link explain what is ...
3 years, 10 months ago (2017-02-07 15:13:38 UTC) #22
Peng
On 2017/02/07 15:13:38, Peng wrote: > On 2017/02/07 01:35:45, kcwu wrote: > > Could you ...
3 years, 10 months ago (2017-02-08 16:06:08 UTC) #27
kcwu
https://codereview.chromium.org/2675743002/diff/120001/chrome/browser/chromeos/display/output_protection_delegate.cc File chrome/browser/chromeos/display/output_protection_delegate.cc (right): https://codereview.chromium.org/2675743002/diff/120001/chrome/browser/chromeos/display/output_protection_delegate.cc#newcode274 chrome/browser/chromeos/display/output_protection_delegate.cc:274: controller_->EnableProtection(display_id_, desired_method_mask_, should be new_display_id.
3 years, 10 months ago (2017-02-08 23:06:02 UTC) #28
Peng
https://codereview.chromium.org/2675743002/diff/120001/chrome/browser/chromeos/display/output_protection_delegate.cc File chrome/browser/chromeos/display/output_protection_delegate.cc (right): https://codereview.chromium.org/2675743002/diff/120001/chrome/browser/chromeos/display/output_protection_delegate.cc#newcode274 chrome/browser/chromeos/display/output_protection_delegate.cc:274: controller_->EnableProtection(display_id_, desired_method_mask_, On 2017/02/08 23:06:02, kcwu wrote: > should ...
3 years, 10 months ago (2017-02-08 23:13:35 UTC) #29
kcwu
https://codereview.chromium.org/2675743002/diff/140001/chrome/browser/chromeos/display/output_protection_delegate.cc File chrome/browser/chromeos/display/output_protection_delegate.cc (right): https://codereview.chromium.org/2675743002/diff/140001/chrome/browser/chromeos/display/output_protection_delegate.cc#newcode272 chrome/browser/chromeos/display/output_protection_delegate.cc:272: bool result = InitializeControllerIfNecessary(); IIUC, I feel this could ...
3 years, 10 months ago (2017-02-08 23:29:53 UTC) #30
Peng
https://codereview.chromium.org/2675743002/diff/140001/chrome/browser/chromeos/display/output_protection_delegate.cc File chrome/browser/chromeos/display/output_protection_delegate.cc (right): https://codereview.chromium.org/2675743002/diff/140001/chrome/browser/chromeos/display/output_protection_delegate.cc#newcode272 chrome/browser/chromeos/display/output_protection_delegate.cc:272: bool result = InitializeControllerIfNecessary(); On 2017/02/08 23:29:53, kcwu wrote: ...
3 years, 10 months ago (2017-02-08 23:45:53 UTC) #31
kcwu
lgtm
3 years, 10 months ago (2017-02-08 23:49:26 UTC) #32
Peng
Hi Scott, PTAL. Thanks.
3 years, 10 months ago (2017-02-09 00:06:15 UTC) #33
Peng
Hi Scott, PTAL. Thanks.
3 years, 10 months ago (2017-02-09 00:13:59 UTC) #35
rjkroege
https://codereview.chromium.org/2675743002/diff/160001/chrome/browser/chromeos/display/output_protection_delegate.cc File chrome/browser/chromeos/display/output_protection_delegate.cc (right): https://codereview.chromium.org/2675743002/diff/160001/chrome/browser/chromeos/display/output_protection_delegate.cc#newcode46 chrome/browser/chromeos/display/output_protection_delegate.cc:46: // Display content protection controller for running on Aura. ...
3 years, 10 months ago (2017-02-09 00:44:44 UTC) #37
sadrul
Some drive-by comments https://codereview.chromium.org/2675743002/diff/160001/chrome/browser/chromeos/display/output_protection_delegate.cc File chrome/browser/chromeos/display/output_protection_delegate.cc (right): https://codereview.chromium.org/2675743002/diff/160001/chrome/browser/chromeos/display/output_protection_delegate.cc#newcode46 chrome/browser/chromeos/display/output_protection_delegate.cc:46: // Display content protection controller for ...
3 years, 10 months ago (2017-02-09 02:51:10 UTC) #38
Peng
https://codereview.chromium.org/2675743002/diff/160001/services/ui/public/interfaces/display/display_controller.mojom File services/ui/public/interfaces/display/display_controller.mojom (right): https://codereview.chromium.org/2675743002/diff/160001/services/ui/public/interfaces/display/display_controller.mojom#newcode56 services/ui/public/interfaces/display/display_controller.mojom:56: // ========================= Content Protection ============================== On 2017/02/09 00:44:43, rjkroege ...
3 years, 10 months ago (2017-02-09 14:27:15 UTC) #39
kcwu
https://codereview.chromium.org/2675743002/diff/160001/services/ui/public/interfaces/display/display_controller.mojom File services/ui/public/interfaces/display/display_controller.mojom (right): https://codereview.chromium.org/2675743002/diff/160001/services/ui/public/interfaces/display/display_controller.mojom#newcode56 services/ui/public/interfaces/display/display_controller.mojom:56: // ========================= Content Protection ============================== On 2017/02/09 14:27:15, Peng ...
3 years, 10 months ago (2017-02-09 18:55:39 UTC) #40
sky
I just looked at the mojom. https://codereview.chromium.org/2675743002/diff/160001/services/ui/public/interfaces/display/display_controller.mojom File services/ui/public/interfaces/display/display_controller.mojom (right): https://codereview.chromium.org/2675743002/diff/160001/services/ui/public/interfaces/display/display_controller.mojom#newcode60 services/ui/public/interfaces/display/display_controller.mojom:60: [Sync] On 2017/02/09 ...
3 years, 10 months ago (2017-02-09 20:59:07 UTC) #41
rjkroege
On 2017/02/09 14:27:15, Peng wrote: > https://codereview.chromium.org/2675743002/diff/160001/services/ui/public/interfaces/display/display_controller.mojom > File services/ui/public/interfaces/display/display_controller.mojom (right): > > https://codereview.chromium.org/2675743002/diff/160001/services/ui/public/interfaces/display/display_controller.mojom#newcode56 > ...
3 years, 10 months ago (2017-02-10 02:59:36 UTC) #42
Peng
https://codereview.chromium.org/2675743002/diff/160001/chrome/browser/chromeos/display/output_protection_delegate.cc File chrome/browser/chromeos/display/output_protection_delegate.cc (right): https://codereview.chromium.org/2675743002/diff/160001/chrome/browser/chromeos/display/output_protection_delegate.cc#newcode46 chrome/browser/chromeos/display/output_protection_delegate.cc:46: // Display content protection controller for running on Aura. ...
3 years, 10 months ago (2017-02-10 15:57:02 UTC) #45
sky
Also, you have a lot of reviewers here, please list who is expected to review ...
3 years, 10 months ago (2017-02-10 19:24:56 UTC) #50
xhwang
sky: Good point! I am deferring the review to kcwu@, so removing me from the ...
3 years, 10 months ago (2017-02-10 19:26:20 UTC) #52
Peng
https://codereview.chromium.org/2675743002/diff/260001/services/ui/display/output_protection.cc File services/ui/display/output_protection.cc (right): https://codereview.chromium.org/2675743002/diff/260001/services/ui/display/output_protection.cc#newcode16 services/ui/display/output_protection.cc:16: display_configurator_->UnregisterContentProtectionClient(client_id_); On 2017/02/10 19:24:56, sky wrote: > Does unregister ...
3 years, 10 months ago (2017-02-10 20:35:47 UTC) #53
kcwu
https://codereview.chromium.org/2675743002/diff/260001/services/ui/display/output_protection.cc File services/ui/display/output_protection.cc (right): https://codereview.chromium.org/2675743002/diff/260001/services/ui/display/output_protection.cc#newcode16 services/ui/display/output_protection.cc:16: display_configurator_->UnregisterContentProtectionClient(client_id_); On 2017/02/10 20:35:47, Peng wrote: > On 2017/02/10 ...
3 years, 10 months ago (2017-02-11 01:45:22 UTC) #54
sky
I only looked at services ui, that looks good. One question holding back approval, I ...
3 years, 10 months ago (2017-02-13 17:05:01 UTC) #61
Peng
https://codereview.chromium.org/2675743002/diff/260001/services/ui/public/interfaces/display/output_protection.mojom File services/ui/public/interfaces/display/output_protection.mojom (right): https://codereview.chromium.org/2675743002/diff/260001/services/ui/public/interfaces/display/output_protection.mojom#newcode9 services/ui/public/interfaces/display/output_protection.mojom:9: interface OutputProtection { On 2017/02/11 01:45:21, kcwu wrote: > ...
3 years, 10 months ago (2017-02-13 21:14:47 UTC) #64
Peng
On 2017/02/13 17:05:01, sky wrote: > I only looked at services ui, that looks good. ...
3 years, 10 months ago (2017-02-13 21:23:11 UTC) #65
Peng
On 2017/02/13 21:23:11, Peng wrote: > On 2017/02/13 17:05:01, sky wrote: > > I only ...
3 years, 10 months ago (2017-02-13 21:51:52 UTC) #66
sky
https://codereview.chromium.org/2675743002/diff/360001/services/ui/manifest.json File services/ui/manifest.json (right): https://codereview.chromium.org/2675743002/diff/360001/services/ui/manifest.json#newcode13 services/ui/manifest.json:13: "display::mojom::OutputProtection", This interface seems different from the rest in ...
3 years, 10 months ago (2017-02-13 23:26:00 UTC) #67
Peng
https://codereview.chromium.org/2675743002/diff/360001/services/ui/manifest.json File services/ui/manifest.json (right): https://codereview.chromium.org/2675743002/diff/360001/services/ui/manifest.json#newcode13 services/ui/manifest.json:13: "display::mojom::OutputProtection", On 2017/02/13 23:26:00, sky wrote: > This interface ...
3 years, 10 months ago (2017-02-14 16:16:55 UTC) #69
sky
LGTM
3 years, 10 months ago (2017-02-14 18:12:23 UTC) #77
Peng
+dcheng@ for mojom and manifest.json files Hi Daniel, PTAL. Thanks.
3 years, 10 months ago (2017-02-14 18:55:57 UTC) #79
rjkroege
lgtm https://codereview.chromium.org/2675743002/diff/400001/services/ui/public/interfaces/display/output_protection.mojom File services/ui/public/interfaces/display/output_protection.mojom (right): https://codereview.chromium.org/2675743002/diff/400001/services/ui/public/interfaces/display/output_protection.mojom#newcode9 services/ui/public/interfaces/display/output_protection.mojom:9: // the same time, and the display will ...
3 years, 10 months ago (2017-02-14 19:24:21 UTC) #80
Peng
https://codereview.chromium.org/2675743002/diff/400001/services/ui/public/interfaces/display/output_protection.mojom File services/ui/public/interfaces/display/output_protection.mojom (right): https://codereview.chromium.org/2675743002/diff/400001/services/ui/public/interfaces/display/output_protection.mojom#newcode9 services/ui/public/interfaces/display/output_protection.mojom:9: // the same time, and the display will be ...
3 years, 10 months ago (2017-02-14 20:05:30 UTC) #81
dcheng
LGTM with nits addressed. https://codereview.chromium.org/2675743002/diff/420001/chrome/browser/chromeos/display/output_protection_controller_ash.h File chrome/browser/chromeos/display/output_protection_controller_ash.h (right): https://codereview.chromium.org/2675743002/diff/420001/chrome/browser/chromeos/display/output_protection_controller_ash.h#newcode32 chrome/browser/chromeos/display/output_protection_controller_ash.h:32: const uint64_t client_id_; Should we ...
3 years, 10 months ago (2017-02-15 06:26:52 UTC) #82
dcheng
https://codereview.chromium.org/2675743002/diff/420001/services/ui/public/interfaces/display/output_protection.mojom File services/ui/public/interfaces/display/output_protection.mojom (right): https://codereview.chromium.org/2675743002/diff/420001/services/ui/public/interfaces/display/output_protection.mojom#newcode20 services/ui/public/interfaces/display/output_protection.mojom:20: // the content protection mask will be reverted. On ...
3 years, 10 months ago (2017-02-15 06:27:20 UTC) #83
Peng
https://codereview.chromium.org/2675743002/diff/420001/chrome/browser/chromeos/display/output_protection_controller_ash.h File chrome/browser/chromeos/display/output_protection_controller_ash.h (right): https://codereview.chromium.org/2675743002/diff/420001/chrome/browser/chromeos/display/output_protection_controller_ash.h#newcode32 chrome/browser/chromeos/display/output_protection_controller_ash.h:32: const uint64_t client_id_; On 2017/02/15 06:26:51, dcheng wrote: > ...
3 years, 10 months ago (2017-02-15 16:15:33 UTC) #84
Peng
3 years, 10 months ago (2017-02-15 16:17:35 UTC) #85
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/2675743002/440001
3 years, 10 months ago (2017-02-15 16:18:29 UTC) #88
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/119469)
3 years, 10 months ago (2017-02-15 17:56:56 UTC) #90
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/2675743002/440001
3 years, 10 months ago (2017-02-15 20:18:50 UTC) #92
commit-bot: I haz the power
Failed to commit the patch.
3 years, 10 months ago (2017-02-15 22:23:06 UTC) #97
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/2675743002/440001
3 years, 10 months ago (2017-02-15 22:25:34 UTC) #99
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL)
3 years, 10 months ago (2017-02-16 00:28:52 UTC) #101
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/2675743002/440001
3 years, 10 months ago (2017-02-16 02:57:58 UTC) #103
commit-bot: I haz the power
3 years, 10 months ago (2017-02-16 03:27:43 UTC) #106
Message was sent while issue was closed.
Committed patchset #21 (id:440001) as
https://chromium.googlesource.com/chromium/src/+/ae7972cadaacc1220283a8536061...

Powered by Google App Engine
This is Rietveld 408576698