diff options
author | James Dong <jdong@google.com> | 2012-03-09 17:33:42 -0800 |
---|---|---|
committer | James Dong <jdong@google.com> | 2012-03-09 17:44:11 -0800 |
commit | bd2f13ddbe7a9e7550205f6b53880329e09b9457 (patch) | |
tree | 0319c10c1db0fbc2ae32b3ae6a202324e228ad07 /drm/libdrmframework/plugins/forward-lock/FwdLockEngine/include/FwdLockEngine.h | |
parent | 083c154162c88a9f63aeaa10a4b52dd454bda9ff (diff) | |
download | frameworks_av-bd2f13ddbe7a9e7550205f6b53880329e09b9457.zip frameworks_av-bd2f13ddbe7a9e7550205f6b53880329e09b9457.tar.gz frameworks_av-bd2f13ddbe7a9e7550205f6b53880329e09b9457.tar.bz2 |
Avoid checking supported mime types or file suffixes in multiple places
Change-Id: I47d24070c7bda385cd1d7fa1f6a75dbb1f82b476
Diffstat (limited to 'drm/libdrmframework/plugins/forward-lock/FwdLockEngine/include/FwdLockEngine.h')
-rw-r--r-- | drm/libdrmframework/plugins/forward-lock/FwdLockEngine/include/FwdLockEngine.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/include/FwdLockEngine.h b/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/include/FwdLockEngine.h index 34804cf..c0e408e 100644 --- a/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/include/FwdLockEngine.h +++ b/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/include/FwdLockEngine.h @@ -499,6 +499,14 @@ ssize_t onPread(int uniqueId, private: + static const String8 Description; + static const String8 FileSuffixes[]; + static const String8 MimeTypes[]; + static bool IsFileSuffixSupported(const String8& suffix); + static bool IsMimeTypeSupported(const String8& mime); + static void AddSupportedMimeTypes(DrmSupportInfo *info); + static void AddSupportedFileSuffixes(DrmSupportInfo *info); + /** * Session Class for Forward Lock Conversion. An object of this class is created * for every conversion. |