Chromium Code Reviews| 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 void QueryStatus( | |
|
kcwu
2017/02/11 01:45:21
// OutputProtectionDelegate::Controlle:
Peng
2017/02/13 21:14:46
Done.
| |
| 23 int64_t display_id, | |
| 24 const OutputProtectionDelegate::QueryStatusCallback& callback) override; | |
| 25 void EnableProtection( | |
| 26 int64_t display_id, | |
| 27 uint32_t desired_method_mask, | |
| 28 const OutputProtectionDelegate::EnableProtectionCallback& callback) | |
| 29 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 |