Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(222)

Side by Side Diff: components/cdm/renderer/external_clear_key_key_system_properties.h

Issue 2412493003: Revert of Move ENABLE_PEPPER_CDMS to a buildflag header. (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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"
13 12
14 namespace cdm { 13 namespace cdm {
15 14
16 #if BUILDFLAG(ENABLE_PEPPER_CDMS) 15 #if defined(ENABLE_PEPPER_CDMS)
17 extern const char kExternalClearKeyPepperType[]; 16 extern const char kExternalClearKeyPepperType[];
18 #endif 17 #endif
19 18
20 // KeySystemProperties implementation for external Clear Key key systems. 19 // KeySystemProperties implementation for external Clear Key key systems.
21 class ExternalClearKeyProperties : public media::KeySystemProperties { 20 class ExternalClearKeyProperties : public media::KeySystemProperties {
22 public: 21 public:
23 explicit ExternalClearKeyProperties(const std::string& key_system_name); 22 explicit ExternalClearKeyProperties(const std::string& key_system_name);
24 ~ExternalClearKeyProperties() override; 23 ~ExternalClearKeyProperties() override;
25 24
26 std::string GetKeySystemName() const override; 25 std::string GetKeySystemName() const override;
27 bool IsSupportedInitDataType( 26 bool IsSupportedInitDataType(
28 media::EmeInitDataType init_data_type) const override; 27 media::EmeInitDataType init_data_type) const override;
29 media::SupportedCodecs GetSupportedCodecs() const override; 28 media::SupportedCodecs GetSupportedCodecs() const override;
30 media::EmeConfigRule GetRobustnessConfigRule( 29 media::EmeConfigRule GetRobustnessConfigRule(
31 media::EmeMediaType media_type, 30 media::EmeMediaType media_type,
32 const std::string& requested_robustness) const override; 31 const std::string& requested_robustness) const override;
33 media::EmeSessionTypeSupport GetPersistentLicenseSessionSupport() 32 media::EmeSessionTypeSupport GetPersistentLicenseSessionSupport()
34 const override; 33 const override;
35 media::EmeSessionTypeSupport GetPersistentReleaseMessageSessionSupport() 34 media::EmeSessionTypeSupport GetPersistentReleaseMessageSessionSupport()
36 const override; 35 const override;
37 media::EmeFeatureSupport GetPersistentStateSupport() const override; 36 media::EmeFeatureSupport GetPersistentStateSupport() const override;
38 media::EmeFeatureSupport GetDistinctiveIdentifierSupport() const override; 37 media::EmeFeatureSupport GetDistinctiveIdentifierSupport() const override;
39 #if BUILDFLAG(ENABLE_PEPPER_CDMS) 38 #if defined(ENABLE_PEPPER_CDMS)
40 std::string GetPepperType() const override; 39 std::string GetPepperType() const override;
41 #endif 40 #endif
42 41
43 private: 42 private:
44 const std::string key_system_name_; 43 const std::string key_system_name_;
45 }; 44 };
46 45
47 } // namespace cdm 46 } // namespace cdm
48 47
49 #endif // COMPONENTS_CDM_RENDERER_EXTERNAL_CLEAR_KEY_KEY_SYSTEM_PROPERTIES_H_ 48 #endif // COMPONENTS_CDM_RENDERER_EXTERNAL_CLEAR_KEY_KEY_SYSTEM_PROPERTIES_H_
OLDNEW
« no previous file with comments | « components/cdm/renderer/BUILD.gn ('k') | components/cdm/renderer/external_clear_key_key_system_properties.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698