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