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

Side by Side Diff: chrome/browser/chromeos/display/output_protection_controller_mus.h

Issue 2675743002: PPAPI: Make output protection API work with mus+ash (Closed)
Patch Set: Addressed review issues Created 3 years, 10 months 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 unified diff | Download patch
OLDNEW
(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 // 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 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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698