| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef COMPONENTS_CDM_RENDERER_WIDEVINE_KEY_SYSTEM_PROPERTIES_H_ |
| 6 #define COMPONENTS_CDM_RENDERER_WIDEVINE_KEY_SYSTEM_PROPERTIES_H_ |
| 7 |
| 8 #include "media/base/key_system_properties.h" |
| 9 |
| 10 namespace cdm { |
| 11 |
| 12 // Implementation of KeySystemProperties for Widevine key system. |
| 13 class WidevineKeySystemProperties : public media::KeySystemProperties { |
| 14 public: |
| 15 WidevineKeySystemProperties( |
| 16 media::SupportedCodecs supported_codecs, |
| 17 #if defined(OS_ANDROID) |
| 18 media::SupportedCodecs supported_secure_codecs, |
| 19 #endif // defined(OS_ANDROID) |
| 20 media::EmeRobustness max_audio_robustness, |
| 21 media::EmeRobustness max_video_robustness, |
| 22 media::EmeSessionTypeSupport persistent_license_support, |
| 23 media::EmeSessionTypeSupport persistent_release_message_support, |
| 24 media::EmeFeatureSupport persistent_state_support, |
| 25 media::EmeFeatureSupport distinctive_identifier_support); |
| 26 |
| 27 // Gets the name of this key system. |
| 28 std::string GetKeySystemName() const override; |
| 29 |
| 30 // Returns the init data types supported by this key system. |
| 31 bool IsSupportedInitDataType( |
| 32 media::EmeInitDataType init_data_type) const override; |
| 33 |
| 34 // Returns the codecs supported by this key system. |
| 35 media::SupportedCodecs GetSupportedCodecs() const override; |
| 36 #if defined(OS_ANDROID) |
| 37 // Returns the codecs with hardware-secure support in this key system. |
| 38 media::SupportedCodecs GetSupportedSecureCodecs() const override; |
| 39 #endif |
| 40 |
| 41 // Returns the configuration rule for supporting a robustness requirement. |
| 42 media::EmeConfigRule GetRobustnessConfigRule( |
| 43 media::EmeMediaType media_type, |
| 44 const std::string& requested_robustness) const override; |
| 45 |
| 46 // Returns the support this key system provides for persistent-license |
| 47 // sessions. |
| 48 media::EmeSessionTypeSupport GetPersistentLicenseSessionSupport() |
| 49 const override; |
| 50 |
| 51 // Returns the support this key system provides for persistent-release-message |
| 52 // sessions. |
| 53 media::EmeSessionTypeSupport GetPersistentReleaseMessageSessionSupport() |
| 54 const override; |
| 55 |
| 56 // Returns the support this key system provides for persistent state. |
| 57 media::EmeFeatureSupport GetPersistentStateSupport() const override; |
| 58 |
| 59 // Returns the support this key system provides for distinctive identifiers. |
| 60 media::EmeFeatureSupport GetDistinctiveIdentifierSupport() const override; |
| 61 |
| 62 #if defined(ENABLE_PEPPER_CDMS) |
| 63 std::string GetPepperType() const override; |
| 64 #endif |
| 65 |
| 66 private: |
| 67 const media::SupportedCodecs supported_codecs_; |
| 68 #if defined(OS_ANDROID) |
| 69 const media::SupportedCodecs supported_secure_codecs_; |
| 70 #endif // defined(OS_ANDROID) |
| 71 const media::EmeRobustness max_audio_robustness_; |
| 72 const media::EmeRobustness max_video_robustness_; |
| 73 const media::EmeSessionTypeSupport persistent_license_support_; |
| 74 const media::EmeSessionTypeSupport persistent_release_message_support_; |
| 75 const media::EmeFeatureSupport persistent_state_support_; |
| 76 const media::EmeFeatureSupport distinctive_identifier_support_; |
| 77 }; |
| 78 |
| 79 } // namespace cdm |
| 80 |
| 81 #endif // COMPONENTS_CDM_RENDERER_WIDEVINE_KEY_SYSTEM_PROPERTIES_H_ |
| OLD | NEW |