Merge "Revert "Core CDM: Remove secure stop from LRU algorithm.""

This commit is contained in:
Alex Dale
2022-12-02 22:41:06 +00:00
committed by Android (Google) Code Review
3 changed files with 427 additions and 202 deletions

View File

@@ -261,9 +261,10 @@ class UsageTableHeader {
int64_t GetCurrentTime() { return clock_ref_->GetCurrentTime(); }
// Sets LRU related metrics based on the provided |staleness| (in
// seconds).
// seconds) and |storage_type| of the entry removed.
void RecordLruEventMetrics(metrics::CryptoMetrics* metrics,
uint64_t staleness);
uint64_t staleness,
CdmUsageEntryStorageType storage_type);
// Uses an LRU-base algorithm to determine which license should be
// removed. This is intended to be used if the usage table is full