Bug 1175562 - Persist last update time for SafeBrowsing. r=francois

This commit is contained in:
Gian-Carlo Pascutto
2015-10-06 13:53:07 +02:00
parent 2c79809d7f
commit 761749e88b
10 changed files with 148 additions and 7 deletions

View File

@@ -368,6 +368,15 @@ Classifier::MarkSpoiled(nsTArray<nsCString>& aTables)
return NS_OK;
}
void
Classifier::SetLastUpdateTime(const nsACString &aTable,
uint64_t updateTime)
{
LOG(("Marking table %s as last updated on %u",
PromiseFlatCString(aTable).get(), updateTime));
mTableFreshness.Put(aTable, updateTime / PR_MSEC_PER_SEC);
}
void
Classifier::DropStores()
{