Core CDM: Removed ability to add secure stop entry.
[ Merge of http://go/wvgerrit/158872 ] This CL updates the UsageTableHeader API such that it is no longer possible to add a "usage info" entry. All new entries that are added are assumed to be offline licenses. Bug: 242289743 Test: run_x86_64_tests and request_license_test Change-Id: I09262da0e4301356156d1715b0301c616be2251b
This commit is contained in:
@@ -67,15 +67,9 @@ class UsageTableHeader {
|
||||
// the entry with the provided |crypto_session|. The index of the new
|
||||
// usage entry will be returned by |usage_entry_number|.
|
||||
//
|
||||
// Type of entry depends on the value of |persistent_license|:
|
||||
// false - usage info / secure stop record
|
||||
// true - offline license
|
||||
//
|
||||
// Threading: Method takes exclusive use of |usage_table_header_lock_|.
|
||||
virtual CdmResponseType AddEntry(CryptoSession* crypto_session,
|
||||
bool persistent_license,
|
||||
const CdmKeySetId& key_set_id,
|
||||
const std::string& usage_info_filename,
|
||||
const CdmKeyResponse& license_message,
|
||||
uint32_t* usage_entry_number);
|
||||
// Threading: Method takes exclusive use of |usage_table_header_lock_|.
|
||||
@@ -121,9 +115,6 @@ class UsageTableHeader {
|
||||
return potential_table_capacity_ == 0;
|
||||
}
|
||||
|
||||
// Returns the number of entries currently tracked by the CDM that
|
||||
// are related to usage info (streaming licenses).
|
||||
size_t UsageInfoCount() const;
|
||||
// Returns the number of entries currently tracked by the CDM that
|
||||
// are related to offline licenses.
|
||||
size_t OfflineEntryCount() const;
|
||||
@@ -205,15 +196,12 @@ class UsageTableHeader {
|
||||
// unoccupied (released).
|
||||
bool IsEntryUnoccupied(const uint32_t usage_entry_number) const;
|
||||
|
||||
// SetOfflineEntryInfo() and SetUsageInfoEntryInfo() populate the
|
||||
// Populates the entry's meta-data with the required information based
|
||||
// entry meta-data with the required information based on the type
|
||||
// of entry.
|
||||
// on the license content.
|
||||
void SetOfflineEntryInfo(const uint32_t usage_entry_number,
|
||||
const std::string& key_set_id,
|
||||
const CdmKeyResponse& license_message);
|
||||
void SetUsageInfoEntryInfo(const uint32_t usage_entry_number,
|
||||
const std::string& key_set_id,
|
||||
const std::string& usage_info_file_name);
|
||||
|
||||
// Shrinks the table, removing all trailing unoccupied entries.
|
||||
// |usage_entry_info_| will be resized appropriately.
|
||||
|
||||
Reference in New Issue
Block a user