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

Unified Diff: media/base/key_system_info.h

Issue 1106263004: Support Android secure codecs in requestMediaKeySystemAccess(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: media/base/key_system_info.h
diff --git a/media/base/key_system_info.h b/media/base/key_system_info.h
index 4c60552de516ad2cbf6ac517ac7087bb9fbf6c91..7442a33f898110163e6e3b51958bc3baa90fa824 100644
--- a/media/base/key_system_info.h
+++ b/media/base/key_system_info.h
@@ -35,14 +35,19 @@ struct MEDIA_EXPORT KeySystemInfo {
std::string key_system;
- InitDataTypeMask supported_init_data_types;
- SupportedCodecs supported_codecs;
- EmeRobustness max_audio_robustness;
- EmeRobustness max_video_robustness;
- EmeSessionTypeSupport persistent_license_support;
- EmeSessionTypeSupport persistent_release_message_support;
- EmeFeatureSupport persistent_state_support;
- EmeFeatureSupport distinctive_identifier_support;
+ InitDataTypeMask supported_init_data_types = kInitDataTypeMaskNone;
+ SupportedCodecs supported_codecs = EME_CODEC_NONE;
+#if defined(OS_ANDROID)
+ SupportedCodecs supported_secure_codecs = EME_CODEC_NONE;
+#endif // defined(OS_ANDROID)
+ EmeRobustness max_audio_robustness = EmeRobustness::INVALID;
+ EmeRobustness max_video_robustness = EmeRobustness::INVALID;
+ EmeSessionTypeSupport persistent_license_support =
+ EmeSessionTypeSupport::INVALID;
+ EmeSessionTypeSupport persistent_release_message_support =
+ EmeSessionTypeSupport::INVALID;
+ EmeFeatureSupport persistent_state_support = EmeFeatureSupport::INVALID;
+ EmeFeatureSupport distinctive_identifier_support = EmeFeatureSupport::INVALID;
// A hierarchical parent for |key_system|. This value can be used to check
// supported types but cannot be used to instantiate a MediaKeys object.
@@ -50,7 +55,7 @@ struct MEDIA_EXPORT KeySystemInfo {
std::string parent_key_system;
// The following indicate how the corresponding CDM should be instantiated.
- bool use_aes_decryptor;
+ bool use_aes_decryptor = false;
#if defined(ENABLE_PEPPER_CDMS)
std::string pepper_type;
#endif

Powered by Google App Engine
This is Rietveld 408576698