| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef UI_DISPLAY_MANAGER_CHROMEOS_QUERY_CONTENT_PROTECTION_TASK_H_ | 5 #ifndef UI_DISPLAY_MANAGER_CHROMEOS_QUERY_CONTENT_PROTECTION_TASK_H_ |
| 6 #define UI_DISPLAY_MANAGER_CHROMEOS_QUERY_CONTENT_PROTECTION_TASK_H_ | 6 #define UI_DISPLAY_MANAGER_CHROMEOS_QUERY_CONTENT_PROTECTION_TASK_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
| 14 #include "ui/display/manager/display_manager_export.h" | 14 #include "ui/display/manager/display_manager_export.h" |
| 15 #include "ui/display/types/display_constants.h" | 15 #include "ui/display/types/display_constants.h" |
| 16 | 16 |
| 17 namespace ui { | 17 namespace display { |
| 18 | 18 |
| 19 class DisplayLayoutManager; | 19 class DisplayLayoutManager; |
| 20 class NativeDisplayDelegate; | 20 class NativeDisplayDelegate; |
| 21 | 21 |
| 22 class DISPLAY_MANAGER_EXPORT QueryContentProtectionTask { | 22 class DISPLAY_MANAGER_EXPORT QueryContentProtectionTask { |
| 23 public: | 23 public: |
| 24 struct Response { | 24 struct Response { |
| 25 bool success = false; | 25 bool success = false; |
| 26 uint32_t link_mask = 0; | 26 uint32_t link_mask = 0; |
| 27 uint32_t enabled = 0; | 27 uint32_t enabled = 0; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 56 | 56 |
| 57 // Tracks the number of NativeDisplayDelegate requests sent but not answered | 57 // Tracks the number of NativeDisplayDelegate requests sent but not answered |
| 58 // yet. | 58 // yet. |
| 59 size_t pending_requests_; | 59 size_t pending_requests_; |
| 60 | 60 |
| 61 base::WeakPtrFactory<QueryContentProtectionTask> weak_ptr_factory_; | 61 base::WeakPtrFactory<QueryContentProtectionTask> weak_ptr_factory_; |
| 62 | 62 |
| 63 DISALLOW_COPY_AND_ASSIGN(QueryContentProtectionTask); | 63 DISALLOW_COPY_AND_ASSIGN(QueryContentProtectionTask); |
| 64 }; | 64 }; |
| 65 | 65 |
| 66 } // namespace ui | 66 } // namespace display |
| 67 | 67 |
| 68 #endif // UI_DISPLAY_MANAGER_CHROMEOS_QUERY_CONTENT_PROTECTION_TASK_H_ | 68 #endif // UI_DISPLAY_MANAGER_CHROMEOS_QUERY_CONTENT_PROTECTION_TASK_H_ |
| OLD | NEW |