| 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 MEDIA_BASE_CDM_CONFIG_H_ | 5 #ifndef MEDIA_BASE_CDM_CONFIG_H_ |
| 6 #define MEDIA_BASE_CDM_CONFIG_H_ | 6 #define MEDIA_BASE_CDM_CONFIG_H_ |
| 7 | 7 |
| 8 #include "media/base/media_export.h" | |
| 9 | |
| 10 namespace media { | 8 namespace media { |
| 11 | 9 |
| 12 // The runtime configuration for new CDM instances as computed by | 10 // The runtime configuration for new CDM instances as computed by |
| 13 // |requestMediaKeySystemAccess|. This is in some sense the Chromium-side | 11 // |requestMediaKeySystemAccess|. This is in some sense the Chromium-side |
| 14 // counterpart of Blink's WebMediaKeySystemConfiguration. | 12 // counterpart of Blink's WebMediaKeySystemConfiguration. |
| 15 struct CdmConfig { | 13 struct CdmConfig { |
| 16 // Allow access to a distinctive identifier. | 14 // Allow access to a distinctive identifier. |
| 17 bool allow_distinctive_identifier = false; | 15 bool allow_distinctive_identifier = false; |
| 18 | 16 |
| 19 // Allow access to persistent state. | 17 // Allow access to persistent state. |
| 20 bool allow_persistent_state = false; | 18 bool allow_persistent_state = false; |
| 21 | 19 |
| 22 // Use hardware-secure codecs. This flag is only used on Android, it should | 20 // Use hardware-secure codecs. This flag is only used on Android, it should |
| 23 // always be false on other platforms. | 21 // always be false on other platforms. |
| 24 bool use_hw_secure_codecs = false; | 22 bool use_hw_secure_codecs = false; |
| 25 }; | 23 }; |
| 26 | 24 |
| 27 } // namespace media | 25 } // namespace media |
| 28 | 26 |
| 29 #endif // MEDIA_BASE_CDM_CONFIG_H_ | 27 #endif // MEDIA_BASE_CDM_CONFIG_H_ |
| OLD | NEW |