| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_KEY_SYSTEM_INFO_H_ | 5 #ifndef MEDIA_BASE_KEY_SYSTEM_INFO_H_ |
| 6 #define MEDIA_BASE_KEY_SYSTEM_INFO_H_ | 6 #define MEDIA_BASE_KEY_SYSTEM_INFO_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "media/base/eme_constants.h" | 10 #include "media/base/eme_constants.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 namespace media { | 28 namespace media { |
| 29 | 29 |
| 30 // Contains information about an EME key system as well as how to instantiate | 30 // Contains information about an EME key system as well as how to instantiate |
| 31 // the corresponding CDM. | 31 // the corresponding CDM. |
| 32 struct MEDIA_EXPORT KeySystemInfo { | 32 struct MEDIA_EXPORT KeySystemInfo { |
| 33 KeySystemInfo(); | 33 KeySystemInfo(); |
| 34 ~KeySystemInfo(); | 34 ~KeySystemInfo(); |
| 35 | 35 |
| 36 std::string key_system; | 36 std::string key_system; |
| 37 | 37 |
| 38 // Specifies registered initialization data types supported by |key_system|. | |
| 39 SupportedInitDataTypes supported_init_data_types; | 38 SupportedInitDataTypes supported_init_data_types; |
| 40 | |
| 41 // Specifies codecs supported by |key_system|. | |
| 42 SupportedCodecs supported_codecs; | 39 SupportedCodecs supported_codecs; |
| 43 | 40 EmeRobustness max_audio_robustness; |
| 44 // Specifies session types and features supported by |key_system|. | 41 EmeRobustness max_video_robustness; |
| 45 EmeSessionTypeSupport persistent_license_support; | 42 EmeSessionTypeSupport persistent_license_support; |
| 46 EmeSessionTypeSupport persistent_release_message_support; | 43 EmeSessionTypeSupport persistent_release_message_support; |
| 47 EmeFeatureSupport persistent_state_support; | 44 EmeFeatureSupport persistent_state_support; |
| 48 EmeFeatureSupport distinctive_identifier_support; | 45 EmeFeatureSupport distinctive_identifier_support; |
| 49 | 46 |
| 50 // A hierarchical parent for |key_system|. This value can be used to check | 47 // A hierarchical parent for |key_system|. This value can be used to check |
| 51 // supported types but cannot be used to instantiate a MediaKeys object. | 48 // supported types but cannot be used to instantiate a MediaKeys object. |
| 52 // Only one parent key system is currently supported per concrete key system. | 49 // Only one parent key system is currently supported per concrete key system. |
| 53 std::string parent_key_system; | 50 std::string parent_key_system; |
| 54 | 51 |
| 55 // The following indicate how the corresponding CDM should be instantiated. | 52 // The following indicate how the corresponding CDM should be instantiated. |
| 56 bool use_aes_decryptor; | 53 bool use_aes_decryptor; |
| 57 #if defined(ENABLE_PEPPER_CDMS) | 54 #if defined(ENABLE_PEPPER_CDMS) |
| 58 std::string pepper_type; | 55 std::string pepper_type; |
| 59 #endif | 56 #endif |
| 60 }; | 57 }; |
| 61 | 58 |
| 62 } // namespace media | 59 } // namespace media |
| 63 | 60 |
| 64 #endif // MEDIA_BASE_KEY_SYSTEM_INFO_H_ | 61 #endif // MEDIA_BASE_KEY_SYSTEM_INFO_H_ |
| OLD | NEW |