Prevent renewal license when can_renew is set to false
[ Merge of https://go/wvgerrit/15670 ] b/18459002 Change-Id: Idad43a621750ff01aee61e8d972957f364a698cf
This commit is contained in:
@@ -80,6 +80,8 @@ class PolicyEngine {
|
||||
|
||||
bool IsLicenseOrPlaybackDurationExpired(int64_t current_time);
|
||||
|
||||
bool CanRenew() { return policy_.can_renew(); }
|
||||
|
||||
private:
|
||||
friend class PolicyEngineTest;
|
||||
|
||||
|
||||
@@ -203,6 +203,7 @@ enum CdmResponseType {
|
||||
LICENSE_REQUEST_SIGNING_ERROR,
|
||||
EMPTY_LICENSE_REQUEST,
|
||||
SECURE_BUFFER_REQUIRED,
|
||||
LICENSE_RENEWAL_PROHIBITED,
|
||||
};
|
||||
|
||||
enum CdmKeyStatus {
|
||||
|
||||
Reference in New Issue
Block a user