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

Unified Diff: services/ui/display/output_protection.cc

Issue 2675743002: PPAPI: Make output protection API work with mus+ash (Closed)
Patch Set: Addressed review issues 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
« no previous file with comments | « services/ui/display/output_protection.h ('k') | services/ui/display/screen_manager_ozone_internal.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/display/output_protection.cc
diff --git a/services/ui/display/output_protection.cc b/services/ui/display/output_protection.cc
new file mode 100644
index 0000000000000000000000000000000000000000..71737c017da13c02b9fde364906838179f0b0f1d
--- /dev/null
+++ b/services/ui/display/output_protection.cc
@@ -0,0 +1,34 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "services/ui/display/output_protection.h"
+
+#include "ui/display/manager/chromeos/display_configurator.h"
+
+namespace display {
+
+OutputProtection::OutputProtection(DisplayConfigurator* display_configurator)
+ : display_configurator_(display_configurator),
+ client_id_(display_configurator_->RegisterContentProtectionClient()) {}
+
+OutputProtection::~OutputProtection() {
+ display_configurator_->UnregisterContentProtectionClient(client_id_);
+}
+
+void OutputProtection::QueryContentProtectionStatus(
+ int64_t display_id,
+ const QueryContentProtectionStatusCallback& callback) {
+ display_configurator_->QueryContentProtectionStatus(client_id_, display_id,
+ callback);
+}
+
+void OutputProtection::SetContentProtection(
+ int64_t display_id,
+ uint32_t desired_method_mask,
+ const SetContentProtectionCallback& callback) {
+ display_configurator_->SetContentProtection(client_id_, display_id,
+ desired_method_mask, callback);
+}
+
+} // namespace display
« no previous file with comments | « services/ui/display/output_protection.h ('k') | services/ui/display/screen_manager_ozone_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698