Merge "Modified return values for Restore operations"

This commit is contained in:
Rahul Frias
2019-01-28 21:31:54 +00:00
committed by Android (Google) Code Review
8 changed files with 159 additions and 43 deletions

View File

@@ -57,14 +57,15 @@ class CdmLicense {
virtual CdmResponseType HandleEmbeddedKeyData(
const InitializationData& init_data);
virtual bool RestoreOfflineLicense(
virtual CdmResponseType RestoreOfflineLicense(
const CdmKeyMessage& license_request,
const CdmKeyResponse& license_response,
const CdmKeyResponse& license_renewal_response,
int64_t playback_start_time, int64_t last_playback_time,
int64_t grace_period_end_time, CdmSession* cdm_session);
virtual bool RestoreLicenseForRelease(const CdmKeyMessage& license_request,
const CdmKeyResponse& license_response);
virtual CdmResponseType RestoreLicenseForRelease(
const CdmKeyMessage& license_request,
const CdmKeyResponse& license_response);
virtual bool HasInitData() { return stored_init_data_.get(); }
virtual bool IsKeyLoaded(const KeyId& key_id);

View File

@@ -342,6 +342,19 @@ enum CdmResponseType {
GET_DECRYPT_HASH_ERROR = 297,
SESSION_NOT_FOUND_20 = 298,
INVALID_DECRYPT_HASH_FORMAT = 299,
EMPTY_LICENSE_REQUEST_2 = 300,
EMPTY_LICENSE_REQUEST_3 = 301,
EMPTY_LICENSE_RESPONSE_3 = 302,
EMPTY_LICENSE_RESPONSE_4 = 303,
PARSE_REQUEST_ERROR_1 = 304,
PARSE_REQUEST_ERROR_2 = 305,
INVALID_LICENSE_REQUEST_TYPE_1 = 306,
INVALID_LICENSE_REQUEST_TYPE_2 = 307,
LICENSE_RESPONSE_PARSE_ERROR_4 = 308,
LICENSE_RESPONSE_PARSE_ERROR_5 = 309,
INVALID_LICENSE_TYPE_2 = 310,
SIGNATURE_NOT_FOUND_2 = 311,
SESSION_KEYS_NOT_FOUND_2 = 312,
// Don't forget to add new values to ../test/test_printers.cpp.
};