OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 module media.interfaces; | 5 module media.mojom; |
6 | 6 |
7 // An interface to query output protection status and enable output protection | 7 // An interface to query output protection status and enable output protection |
8 // on links that support it. | 8 // on links that support it. |
9 | 9 |
10 interface OutputProtection { | 10 interface OutputProtection { |
11 enum ProtectionType { | 11 enum ProtectionType { |
12 NONE = 0, | 12 NONE = 0, |
13 HDCP = 1, | 13 HDCP = 1, |
14 }; | 14 }; |
15 | 15 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 // Protections will be disabled if no longer desired by all instances. | 47 // Protections will be disabled if no longer desired by all instances. |
48 // | 48 // |
49 // - desired_protection_mask: The desired protection methods, which | 49 // - desired_protection_mask: The desired protection methods, which |
50 // is a bit-mask of the ProtectionType values. | 50 // is a bit-mask of the ProtectionType values. |
51 // - success: True when the protection request has been made. This may be | 51 // - success: True when the protection request has been made. This may be |
52 // before the protection have actually been applied. Call QueryStatus() to | 52 // before the protection have actually been applied. Call QueryStatus() to |
53 // get protection status. False if it failed to make the protection request, | 53 // get protection status. False if it failed to make the protection request, |
54 // and in this case there is no need to call QueryStatus(). | 54 // and in this case there is no need to call QueryStatus(). |
55 EnableProtection(uint32 desired_protection_mask) => (bool success); | 55 EnableProtection(uint32 desired_protection_mask) => (bool success); |
56 }; | 56 }; |
OLD | NEW |