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

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

Powered by Google App Engine
This is Rietveld 408576698