| 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 #ifndef COMPONENTS_CDM_RENDERER_WIDEVINE_KEY_SYSTEM_PROPERTIES_H_ | 5 #ifndef COMPONENTS_CDM_RENDERER_WIDEVINE_KEY_SYSTEM_PROPERTIES_H_ |
| 6 #define COMPONENTS_CDM_RENDERER_WIDEVINE_KEY_SYSTEM_PROPERTIES_H_ | 6 #define COMPONENTS_CDM_RENDERER_WIDEVINE_KEY_SYSTEM_PROPERTIES_H_ |
| 7 | 7 |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 #include "media/base/key_system_properties.h" | 9 #include "media/base/key_system_properties.h" |
| 10 #include "ppapi/features/features.h" |
| 10 | 11 |
| 11 namespace cdm { | 12 namespace cdm { |
| 12 | 13 |
| 13 // Implementation of KeySystemProperties for Widevine key system. | 14 // Implementation of KeySystemProperties for Widevine key system. |
| 14 class WidevineKeySystemProperties : public media::KeySystemProperties { | 15 class WidevineKeySystemProperties : public media::KeySystemProperties { |
| 15 public: | 16 public: |
| 16 // Robustness values understood by the Widevine key system. | 17 // Robustness values understood by the Widevine key system. |
| 17 // Note: GetRobustnessConfigRule is dependent on the order of these. | 18 // Note: GetRobustnessConfigRule is dependent on the order of these. |
| 18 enum class Robustness { | 19 enum class Robustness { |
| 19 INVALID, | 20 INVALID, |
| (...skipping 29 matching lines...) Expand all Loading... |
| 49 media::EmeConfigRule GetRobustnessConfigRule( | 50 media::EmeConfigRule GetRobustnessConfigRule( |
| 50 media::EmeMediaType media_type, | 51 media::EmeMediaType media_type, |
| 51 const std::string& requested_robustness) const override; | 52 const std::string& requested_robustness) const override; |
| 52 media::EmeSessionTypeSupport GetPersistentLicenseSessionSupport() | 53 media::EmeSessionTypeSupport GetPersistentLicenseSessionSupport() |
| 53 const override; | 54 const override; |
| 54 media::EmeSessionTypeSupport GetPersistentReleaseMessageSessionSupport() | 55 media::EmeSessionTypeSupport GetPersistentReleaseMessageSessionSupport() |
| 55 const override; | 56 const override; |
| 56 media::EmeFeatureSupport GetPersistentStateSupport() const override; | 57 media::EmeFeatureSupport GetPersistentStateSupport() const override; |
| 57 media::EmeFeatureSupport GetDistinctiveIdentifierSupport() const override; | 58 media::EmeFeatureSupport GetDistinctiveIdentifierSupport() const override; |
| 58 | 59 |
| 59 #if defined(ENABLE_PEPPER_CDMS) | 60 #if BUILDFLAG(ENABLE_PEPPER_CDMS) |
| 60 std::string GetPepperType() const override; | 61 std::string GetPepperType() const override; |
| 61 #endif | 62 #endif |
| 62 | 63 |
| 63 private: | 64 private: |
| 64 const media::SupportedCodecs supported_codecs_; | 65 const media::SupportedCodecs supported_codecs_; |
| 65 #if defined(OS_ANDROID) | 66 #if defined(OS_ANDROID) |
| 66 const media::SupportedCodecs supported_secure_codecs_; | 67 const media::SupportedCodecs supported_secure_codecs_; |
| 67 #endif // defined(OS_ANDROID) | 68 #endif // defined(OS_ANDROID) |
| 68 const Robustness max_audio_robustness_; | 69 const Robustness max_audio_robustness_; |
| 69 const Robustness max_video_robustness_; | 70 const Robustness max_video_robustness_; |
| 70 const media::EmeSessionTypeSupport persistent_license_support_; | 71 const media::EmeSessionTypeSupport persistent_license_support_; |
| 71 const media::EmeSessionTypeSupport persistent_release_message_support_; | 72 const media::EmeSessionTypeSupport persistent_release_message_support_; |
| 72 const media::EmeFeatureSupport persistent_state_support_; | 73 const media::EmeFeatureSupport persistent_state_support_; |
| 73 const media::EmeFeatureSupport distinctive_identifier_support_; | 74 const media::EmeFeatureSupport distinctive_identifier_support_; |
| 74 }; | 75 }; |
| 75 | 76 |
| 76 } // namespace cdm | 77 } // namespace cdm |
| 77 | 78 |
| 78 #endif // COMPONENTS_CDM_RENDERER_WIDEVINE_KEY_SYSTEM_PROPERTIES_H_ | 79 #endif // COMPONENTS_CDM_RENDERER_WIDEVINE_KEY_SYSTEM_PROPERTIES_H_ |
| OLD | NEW |