Bug 1606187 - Part 2b: Update users of nsClassHashtable to handle UniquePtr differences r=KrisWright,froydnj

Differential Revision: https://phabricator.services.mozilla.com/D59042
This commit is contained in:
Eric Rahm
2020-01-13 19:18:56 +00:00
parent 9b66354c00
commit daeb56f35b
53 changed files with 124 additions and 147 deletions

View File

@@ -321,7 +321,7 @@ void LookupCache::InvalidateExpiredCacheEntries() {
int64_t nowSec = PR_Now() / PR_USEC_PER_SEC;
for (auto iter = mFullHashCache.Iter(); !iter.Done(); iter.Next()) {
CachedFullHashResponse* response = iter.Data();
CachedFullHashResponse* response = iter.UserData();
if (response->negativeCacheExpirySec < nowSec) {
iter.Remove();
}
@@ -372,7 +372,7 @@ void LookupCache::GetCacheInfo(nsIUrlClassifierCacheInfo** aCache) const {
CStringToHexString(prefix, entry->prefix);
// Set expiry of the cache entry.
CachedFullHashResponse* response = iter.Data();
CachedFullHashResponse* response = iter.UserData();
entry->expirySec = response->negativeCacheExpirySec;
// Set positive cache.
@@ -660,7 +660,7 @@ void LookupCache::DumpCache() const {
}
for (auto iter = mFullHashCache.ConstIter(); !iter.Done(); iter.Next()) {
CachedFullHashResponse* response = iter.Data();
CachedFullHashResponse* response = iter.UserData();
nsAutoCString prefix;
CStringToHexString(