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

Unified Diff: services/ui/public/interfaces/display/display_controller.mojom

Issue 2675743002: PPAPI: Make output protection API work with mus+ash (Closed)
Patch Set: Update Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: services/ui/public/interfaces/display/display_controller.mojom
diff --git a/services/ui/public/interfaces/display/display_controller.mojom b/services/ui/public/interfaces/display/display_controller.mojom
index 30fe11ca724bb5960b9123591963886aee4ec301..e0df624f3237c7b838dfa5b3fa9dcb4f1c0bf75f 100644
--- a/services/ui/public/interfaces/display/display_controller.mojom
+++ b/services/ui/public/interfaces/display/display_controller.mojom
@@ -52,4 +52,28 @@ interface DisplayController {
// TODO(kylechar): This interface will need to be expanded to provide
// additional functionality for the display settings page and other ash
// keyboard accelerators.
+
+ // ========================= Content Protection ==============================
+
+ // Registers a client for display protection and requests a client id. Returns
+ // 0 if requesting failed.
+ [Sync]
+ RegisterContentProtectionClient() => (uint64 client_id);
+
+ // Unregisters the client.
+ UnregisterContentProtectionClient(uint64 client_id);
+
+ // Queries link status and protection status.
+ QueryContentProtectionStatus(uint64 client_id,
+ int64 display_id) => (bool success,
+ uint32 link_mask,
+ uint32 protection_mask);
+
+ // Requests the desired protection methods.
+ // |protection_mask| is the desired protection methods, which is a bitmask
+ // of the ContentProtectionMethod values.
+ // Returns true when the protection request has been made.
+ EnableContentProtection(uint64 client_id,
+ int64 display_id,
+ uint32 desired_method_mask) => (bool success);
};

Powered by Google App Engine
This is Rietveld 408576698