Chromium Code Reviews| 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_EXTERNAL_CLEAR_KEY_KEY_SYSTEM_PROPERTIES_H_ | |
| 6 #define COMPONENTS_CDM_RENDERER_EXTERNAL_CLEAR_KEY_KEY_SYSTEM_PROPERTIES_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "build/build_config.h" | |
| 11 #include "media/base/key_system_properties.h" | |
| 12 | |
| 13 namespace cdm { | |
| 14 | |
| 15 #if defined(ENABLE_PEPPER_CDMS) | |
| 16 static const char kExternalClearKeyPepperType[]; | |
| 17 #endif | |
| 18 | |
| 19 // KeySystemProperties implementation for external Clear Key key systems. | |
| 20 class ExternalClearKeyProperties : public media::KeySystemProperties { | |
| 21 public: | |
| 22 explicit ExternalClearKeyProperties(const std::string& key_system_name); | |
| 23 ~ExternalClearKeyProperties() override; | |
| 24 | |
| 25 std::string GetKeySystemName() const override; | |
| 26 bool IsSupportedInitDataType( | |
| 27 media::EmeInitDataType init_data_type) const override; | |
| 28 media::SupportedCodecs GetSupportedCodecs() const override; | |
| 29 media::EmeConfigRule GetRobustnessConfigRule( | |
| 30 media::EmeMediaType media_type, | |
| 31 const std::string& requested_robustness) const override; | |
| 32 media::EmeSessionTypeSupport GetPersistentLicenseSessionSupport() | |
| 33 const override; | |
| 34 media::EmeSessionTypeSupport GetPersistentReleaseMessageSessionSupport() | |
| 35 const override; | |
| 36 media::EmeFeatureSupport GetPersistentStateSupport() const override; | |
| 37 media::EmeFeatureSupport GetDistinctiveIdentifierSupport() const override; | |
| 38 #if defined(ENABLE_PEPPER_CDMS) | |
| 39 std::string GetPepperType() const override; | |
|
jrummell
2016/08/24 20:36:52
media::KeySystemProperties always specifies GetPep
xhwang
2016/08/24 23:31:03
There's a default implementation for this where it
| |
| 40 #endif | |
| 41 | |
| 42 private: | |
| 43 const std::string key_system_name_; | |
| 44 }; | |
| 45 | |
| 46 } // namespace cdm | |
| 47 | |
| 48 #endif // COMPONENTS_CDM_RENDERER_EXTERNAL_CLEAR_KEY_KEY_SYSTEM_PROPERTIES_H_ | |
| OLD | NEW |