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

Unified Diff: chrome/browser/chromeos/display/output_protection_controller_ash.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
Index: chrome/browser/chromeos/display/output_protection_controller_ash.h
diff --git a/chrome/browser/chromeos/display/output_protection_controller_ash.h b/chrome/browser/chromeos/display/output_protection_controller_ash.h
new file mode 100644
index 0000000000000000000000000000000000000000..6e3ad37e96a3764b916265d6398e18033390729f
--- /dev/null
+++ b/chrome/browser/chromeos/display/output_protection_controller_ash.h
@@ -0,0 +1,40 @@
+// 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 CHROME_BROWSER_CHROMEOS_DISPLAY_OUTPUT_PROTECTION_CONTROLLER_ASH_H_
+#define CHROME_BROWSER_CHROMEOS_DISPLAY_OUTPUT_PROTECTION_CONTROLLER_ASH_H_
+
+#include "base/macros.h"
+#include "base/threading/thread_checker.h"
+#include "chrome/browser/chromeos/display/output_protection_delegate.h"
+#include "ui/display/manager/chromeos/display_configurator.h"
+
+namespace chromeos {
+
+// Display content protection controller for running with ash.
+class OutputProtectionControllerAsh
+ : public OutputProtectionDelegate::Controller {
+ public:
+ OutputProtectionControllerAsh();
+ ~OutputProtectionControllerAsh() override;
+
+ // OutputProtectionDelegate::Controller:
+ void QueryStatus(
+ int64_t display_id,
+ const OutputProtectionDelegate::QueryStatusCallback& callback) override;
+ void SetProtection(
+ int64_t display_id,
+ uint32_t desired_method_mask,
+ const OutputProtectionDelegate::SetProtectionCallback& callback) override;
+
+ private:
+ const uint64_t client_id_;
+ base::ThreadChecker thread_checker_;
+
+ DISALLOW_COPY_AND_ASSIGN(OutputProtectionControllerAsh);
+};
+
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_CHROMEOS_DISPLAY_OUTPUT_PROTECTION_CONTROLLER_ASH_H_
« no previous file with comments | « chrome/browser/chromeos/BUILD.gn ('k') | chrome/browser/chromeos/display/output_protection_controller_ash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698