| 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 SERVICES_UI_DISPLAY_OUTPUT_PROTECTION_H_ |
| 6 #define SERVICES_UI_DISPLAY_OUTPUT_PROTECTION_H_ |
| 7 |
| 8 #include <stdint.h> |
| 9 |
| 10 #include "base/macros.h" |
| 11 #include "services/service_manager/public/cpp/connection.h" |
| 12 #include "services/service_manager/public/cpp/interface_factory.h" |
| 13 #include "services/ui/public/interfaces/display/output_protection.mojom.h" |
| 14 |
| 15 namespace display { |
| 16 |
| 17 class DisplayConfigurator; |
| 18 |
| 19 // OutputProtection provides the necessary functionality to configure output |
| 20 // protection. |
| 21 class OutputProtection : public mojom::OutputProtection { |
| 22 public: |
| 23 explicit OutputProtection(DisplayConfigurator* display_configurator); |
| 24 ~OutputProtection() override; |
| 25 |
| 26 // mojom::OutputProtection: |
| 27 void QueryContentProtectionStatus( |
| 28 int64_t display_id, |
| 29 const QueryContentProtectionStatusCallback& callback) override; |
| 30 void SetContentProtection( |
| 31 int64_t display_id, |
| 32 uint32_t desired_method_mask, |
| 33 const SetContentProtectionCallback& callback) override; |
| 34 |
| 35 private: |
| 36 DisplayConfigurator* const display_configurator_; |
| 37 const uint64_t client_id_; |
| 38 |
| 39 DISALLOW_COPY_AND_ASSIGN(OutputProtection); |
| 40 }; |
| 41 |
| 42 } // namespace display |
| 43 |
| 44 #endif // SERVICES_UI_DISPLAY_OUTPUT_PROTECTION_H_ |
| OLD | NEW |