Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(129)

Unified Diff: ui/display/chromeos/query_content_protection_task.h

Issue 2540313002: Split //ui/display and create //ui/display/manager. (Closed)
Patch Set: Cleanup export header. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/display/chromeos/display_util.cc ('k') | ui/display/chromeos/query_content_protection_task.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/chromeos/query_content_protection_task.h
diff --git a/ui/display/chromeos/query_content_protection_task.h b/ui/display/chromeos/query_content_protection_task.h
deleted file mode 100644
index 525d857945563e9f21fa7a83742bfd59e745e3d0..0000000000000000000000000000000000000000
--- a/ui/display/chromeos/query_content_protection_task.h
+++ /dev/null
@@ -1,68 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef UI_DISPLAY_CHROMEOS_QUERY_CONTENT_PROTECTION_TASK_H_
-#define UI_DISPLAY_CHROMEOS_QUERY_CONTENT_PROTECTION_TASK_H_
-
-#include <stddef.h>
-#include <stdint.h>
-
-#include "base/callback.h"
-#include "base/macros.h"
-#include "base/memory/weak_ptr.h"
-#include "ui/display/display_export.h"
-#include "ui/display/types/display_constants.h"
-
-namespace ui {
-
-class DisplayLayoutManager;
-class NativeDisplayDelegate;
-
-class DISPLAY_EXPORT QueryContentProtectionTask {
- public:
- struct Response {
- bool success = false;
- uint32_t link_mask = 0;
- uint32_t enabled = 0;
- uint32_t unfulfilled = 0;
- };
-
- typedef base::Callback<void(Response)> ResponseCallback;
-
- QueryContentProtectionTask(DisplayLayoutManager* layout_manager,
- NativeDisplayDelegate* native_display_delegate,
- int64_t display_id,
- const ResponseCallback& callback);
- ~QueryContentProtectionTask();
-
- void Run();
-
- private:
- // Callback for NativeDisplayDelegate::GetHDCPState()
- void OnHDCPStateUpdate(bool success, HDCPState state);
-
- DisplayLayoutManager* layout_manager_; // Not owned.
-
- NativeDisplayDelegate* native_display_delegate_; // Not owned.
-
- // Display ID for the query.
- int64_t display_id_;
-
- // Called at the end of the query to signal completion.
- ResponseCallback callback_;
-
- Response response_;
-
- // Tracks the number of NativeDisplayDelegate requests sent but not answered
- // yet.
- size_t pending_requests_;
-
- base::WeakPtrFactory<QueryContentProtectionTask> weak_ptr_factory_;
-
- DISALLOW_COPY_AND_ASSIGN(QueryContentProtectionTask);
-};
-
-} // namespace ui
-
-#endif // UI_DISPLAY_CHROMEOS_QUERY_CONTENT_PROTECTION_TASK_H_
« no previous file with comments | « ui/display/chromeos/display_util.cc ('k') | ui/display/chromeos/query_content_protection_task.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698