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

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

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/BUILD.gn ('k') | services/ui/display/output_protection.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/display/output_protection.h
diff --git a/services/ui/display/output_protection.h b/services/ui/display/output_protection.h
new file mode 100644
index 0000000000000000000000000000000000000000..48185289df3c05e57b12d44aa5a3be867b8f5b95
--- /dev/null
+++ b/services/ui/display/output_protection.h
@@ -0,0 +1,44 @@
+// 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.
+
+#ifndef SERVICES_UI_DISPLAY_OUTPUT_PROTECTION_H_
+#define SERVICES_UI_DISPLAY_OUTPUT_PROTECTION_H_
+
+#include <stdint.h>
+
+#include "base/macros.h"
+#include "services/service_manager/public/cpp/connection.h"
+#include "services/service_manager/public/cpp/interface_factory.h"
+#include "services/ui/public/interfaces/display/output_protection.mojom.h"
+
+namespace display {
+
+class DisplayConfigurator;
+
+// OutputProtection provides the necessary functionality to configure output
+// protection.
+class OutputProtection : public mojom::OutputProtection {
+ public:
+ explicit OutputProtection(DisplayConfigurator* display_configurator);
+ ~OutputProtection() override;
+
+ // mojom::OutputProtection:
+ void QueryContentProtectionStatus(
+ int64_t display_id,
+ const QueryContentProtectionStatusCallback& callback) override;
+ void SetContentProtection(
+ int64_t display_id,
+ uint32_t desired_method_mask,
+ const SetContentProtectionCallback& callback) override;
+
+ private:
+ DisplayConfigurator* const display_configurator_;
+ const uint64_t client_id_;
+
+ DISALLOW_COPY_AND_ASSIGN(OutputProtection);
+};
+
+} // namespace display
+
+#endif // SERVICES_UI_DISPLAY_OUTPUT_PROTECTION_H_
« no previous file with comments | « services/ui/display/BUILD.gn ('k') | services/ui/display/output_protection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698