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

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

Issue 2006113002: Allow hw secured codecs on chromecast (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nit Created 4 years, 7 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 "media/media_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 WidevineKeySystemProperties( 17 WidevineKeySystemProperties(
17 media::SupportedCodecs supported_codecs, 18 media::SupportedCodecs supported_codecs,
18 #if defined(OS_ANDROID) 19 #if BUILDFLAG(ENABLE_HW_SECURE_CODEC)
19 media::SupportedCodecs supported_secure_codecs, 20 media::SupportedCodecs supported_secure_codecs,
ddorwin 2016/05/24 23:11:50 As noted elsewhere, this was an Android specific t
yucliu1 2016/05/25 00:43:21 Is the *secure_codecs* here the same as *hw_secure
ddorwin 2016/05/27 21:33:00 I believe (on Android) `supported_secure_codecs` i
20 #endif // defined(OS_ANDROID) 21 #endif // BUILDFLAG(ENABLE_HW_SECURE_CODEC)
21 media::EmeRobustness max_audio_robustness, 22 media::EmeRobustness max_audio_robustness,
22 media::EmeRobustness max_video_robustness, 23 media::EmeRobustness max_video_robustness,
23 media::EmeSessionTypeSupport persistent_license_support, 24 media::EmeSessionTypeSupport persistent_license_support,
24 media::EmeSessionTypeSupport persistent_release_message_support, 25 media::EmeSessionTypeSupport persistent_release_message_support,
25 media::EmeFeatureSupport persistent_state_support, 26 media::EmeFeatureSupport persistent_state_support,
26 media::EmeFeatureSupport distinctive_identifier_support); 27 media::EmeFeatureSupport distinctive_identifier_support);
27 28
28 std::string GetKeySystemName() const override; 29 std::string GetKeySystemName() const override;
29 bool IsSupportedInitDataType( 30 bool IsSupportedInitDataType(
30 media::EmeInitDataType init_data_type) const override; 31 media::EmeInitDataType init_data_type) const override;
31 32
32 media::SupportedCodecs GetSupportedCodecs() const override; 33 media::SupportedCodecs GetSupportedCodecs() const override;
33 #if defined(OS_ANDROID) 34 #if BUILDFLAG(ENABLE_HW_SECURE_CODEC)
34 media::SupportedCodecs GetSupportedSecureCodecs() const override; 35 media::SupportedCodecs GetSupportedSecureCodecs() const override;
35 #endif 36 #endif // BUILDFLAG(ENABLE_HW_SECURE_CODEC)
36 37
37 media::EmeConfigRule GetRobustnessConfigRule( 38 media::EmeConfigRule GetRobustnessConfigRule(
38 media::EmeMediaType media_type, 39 media::EmeMediaType media_type,
39 const std::string& requested_robustness) const override; 40 const std::string& requested_robustness) const override;
40 media::EmeSessionTypeSupport GetPersistentLicenseSessionSupport() 41 media::EmeSessionTypeSupport GetPersistentLicenseSessionSupport()
41 const override; 42 const override;
42 media::EmeSessionTypeSupport GetPersistentReleaseMessageSessionSupport() 43 media::EmeSessionTypeSupport GetPersistentReleaseMessageSessionSupport()
43 const override; 44 const override;
44 media::EmeFeatureSupport GetPersistentStateSupport() const override; 45 media::EmeFeatureSupport GetPersistentStateSupport() const override;
45 media::EmeFeatureSupport GetDistinctiveIdentifierSupport() const override; 46 media::EmeFeatureSupport GetDistinctiveIdentifierSupport() const override;
46 47
47 #if defined(ENABLE_PEPPER_CDMS) 48 #if defined(ENABLE_PEPPER_CDMS)
48 std::string GetPepperType() const override; 49 std::string GetPepperType() const override;
49 #endif 50 #endif
50 51
51 private: 52 private:
52 const media::SupportedCodecs supported_codecs_; 53 const media::SupportedCodecs supported_codecs_;
53 #if defined(OS_ANDROID) 54 #if BUILDFLAG(ENABLE_HW_SECURE_CODEC)
54 const media::SupportedCodecs supported_secure_codecs_; 55 const media::SupportedCodecs supported_secure_codecs_;
55 #endif // defined(OS_ANDROID) 56 #endif // BUILDFLAG(ENABLE_HW_SECURE_CODEC)
56 const media::EmeRobustness max_audio_robustness_; 57 const media::EmeRobustness max_audio_robustness_;
57 const media::EmeRobustness max_video_robustness_; 58 const media::EmeRobustness max_video_robustness_;
58 const media::EmeSessionTypeSupport persistent_license_support_; 59 const media::EmeSessionTypeSupport persistent_license_support_;
59 const media::EmeSessionTypeSupport persistent_release_message_support_; 60 const media::EmeSessionTypeSupport persistent_release_message_support_;
60 const media::EmeFeatureSupport persistent_state_support_; 61 const media::EmeFeatureSupport persistent_state_support_;
61 const media::EmeFeatureSupport distinctive_identifier_support_; 62 const media::EmeFeatureSupport distinctive_identifier_support_;
62 }; 63 };
63 64
64 } // namespace cdm 65 } // namespace cdm
65 66
66 #endif // COMPONENTS_CDM_RENDERER_WIDEVINE_KEY_SYSTEM_PROPERTIES_H_ 67 #endif // COMPONENTS_CDM_RENDERER_WIDEVINE_KEY_SYSTEM_PROPERTIES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698