| 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 "build/build_config.h" | 10 #include "build/build_config.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 // A key system string that is one level up from the child key system. It may | 27 // A key system string that is one level up from the child key system. It may |
| 28 // be an abstract key system. | 28 // be an abstract key system. |
| 29 // As an example, "com.example" is the parent of "com.example.foo". | 29 // As an example, "com.example" is the parent of "com.example.foo". |
| 30 | 30 |
| 31 namespace media { | 31 namespace media { |
| 32 | 32 |
| 33 // Contains information about an EME key system as well as how to instantiate | 33 // Contains information about an EME key system as well as how to instantiate |
| 34 // the corresponding CDM. | 34 // the corresponding CDM. |
| 35 struct MEDIA_EXPORT KeySystemInfo { | 35 struct MEDIA_EXPORT KeySystemInfo { |
| 36 KeySystemInfo(); | 36 KeySystemInfo(); |
| 37 KeySystemInfo(const KeySystemInfo& other); |
| 37 ~KeySystemInfo(); | 38 ~KeySystemInfo(); |
| 38 | 39 |
| 39 std::string key_system; | 40 std::string key_system; |
| 40 | 41 |
| 41 InitDataTypeMask supported_init_data_types = kInitDataTypeMaskNone; | 42 InitDataTypeMask supported_init_data_types = kInitDataTypeMaskNone; |
| 42 SupportedCodecs supported_codecs = EME_CODEC_NONE; | 43 SupportedCodecs supported_codecs = EME_CODEC_NONE; |
| 43 #if defined(OS_ANDROID) | 44 #if defined(OS_ANDROID) |
| 44 SupportedCodecs supported_secure_codecs = EME_CODEC_NONE; | 45 SupportedCodecs supported_secure_codecs = EME_CODEC_NONE; |
| 45 #endif // defined(OS_ANDROID) | 46 #endif // defined(OS_ANDROID) |
| 46 EmeRobustness max_audio_robustness = EmeRobustness::INVALID; | 47 EmeRobustness max_audio_robustness = EmeRobustness::INVALID; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 60 // The following indicate how the corresponding CDM should be instantiated. | 61 // The following indicate how the corresponding CDM should be instantiated. |
| 61 bool use_aes_decryptor = false; | 62 bool use_aes_decryptor = false; |
| 62 #if defined(ENABLE_PEPPER_CDMS) | 63 #if defined(ENABLE_PEPPER_CDMS) |
| 63 std::string pepper_type; | 64 std::string pepper_type; |
| 64 #endif | 65 #endif |
| 65 }; | 66 }; |
| 66 | 67 |
| 67 } // namespace media | 68 } // namespace media |
| 68 | 69 |
| 69 #endif // MEDIA_BASE_KEY_SYSTEM_INFO_H_ | 70 #endif // MEDIA_BASE_KEY_SYSTEM_INFO_H_ |
| OLD | NEW |