Add a static method to query security level

[ Merge of http://go/wvgerrit/70665 ]

This allows one to be able to query for security level, from
Crypto factory methods before the plugins and CdmEngine objects
have been created.

Bug: 117104043
Test: WV Unit/integration tests
Change-Id: Id07f420c3cfb92166cd3bb3cf82148d52e10eb03
This commit is contained in:
Rahul Frias
2019-01-17 16:53:12 -08:00
parent 81e77bda58
commit 45b3f5761e
5 changed files with 45 additions and 0 deletions

View File

@@ -151,6 +151,9 @@ class CdmEngine {
virtual CdmResponseType QueryKeyStatus(const CdmSessionId& session_id,
CdmQueryMap* query_response);
// Query security level support
static bool IsSecurityLevelSupported(CdmSecurityLevel level);
// Query the types of usage permitted for the specified key.
virtual CdmResponseType QueryKeyAllowedUsage(const CdmSessionId& session_id,
const std::string& key_id,