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_ASH_H_ | |
| 6 #define CHROME_BROWSER_CHROMEOS_DISPLAY_OUTPUT_PROTECTION_CONTROLLER_ASH_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 "ui/display/manager/chromeos/display_configurator.h" | |
| 12 | |
| 13 namespace chromeos { | |
| 14 | |
| 15 // Display content protection controller for running with ash. | |
| 16 class OutputProtectionControllerAsh | |
| 17 : public OutputProtectionDelegate::Controller { | |
| 18 public: | |
| 19 OutputProtectionControllerAsh(); | |
| 20 ~OutputProtectionControllerAsh() 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 const uint64_t client_id_; | |
|
dcheng
2017/02/15 06:26:51
Should we make this type ContentProtectionClientId
Peng
2017/02/15 16:15:33
The type ContentProtectionClientId has been remove
| |
| 33 base::ThreadChecker thread_checker_; | |
| 34 | |
| 35 DISALLOW_COPY_AND_ASSIGN(OutputProtectionControllerAsh); | |
| 36 }; | |
| 37 | |
| 38 } // namespace chromeos | |
| 39 | |
| 40 #endif // CHROME_BROWSER_CHROMEOS_DISPLAY_OUTPUT_PROTECTION_CONTROLLER_ASH_H_ | |
| OLD | NEW |