| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_DISPLAY_OUTPUT_PROTECTION_CONTROLLER_MUS_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_DISPLAY_OUTPUT_PROTECTION_CONTROLLER_MUS_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "base/threading/thread_checker.h" |
| 10 #include "chrome/browser/chromeos/display/output_protection_delegate.h" |
| 11 #include "services/ui/public/interfaces/display/output_protection.mojom.h" |
| 12 |
| 13 namespace chromeos { |
| 14 |
| 15 // Display content protection controller for running with Mus server. |
| 16 class OutputProtectionControllerMus |
| 17 : public OutputProtectionDelegate::Controller { |
| 18 public: |
| 19 OutputProtectionControllerMus(); |
| 20 ~OutputProtectionControllerMus() override; |
| 21 |
| 22 // OutputProtectionDelegate::Controller: |
| 23 void QueryStatus( |
| 24 int64_t display_id, |
| 25 const OutputProtectionDelegate::QueryStatusCallback& callback) override; |
| 26 void SetProtection( |
| 27 int64_t display_id, |
| 28 uint32_t desired_method_mask, |
| 29 const OutputProtectionDelegate::SetProtectionCallback& callback) override; |
| 30 |
| 31 private: |
| 32 display::mojom::OutputProtectionPtr output_protection_; |
| 33 base::ThreadChecker thread_checker_; |
| 34 |
| 35 DISALLOW_COPY_AND_ASSIGN(OutputProtectionControllerMus); |
| 36 }; |
| 37 |
| 38 } // namespace chromeos |
| 39 |
| 40 #endif // CHROME_BROWSER_CHROMEOS_DISPLAY_OUTPUT_PROTECTION_CONTROLLER_MUS_H_ |
| OLD | NEW |