Bug 1319286 - Cache nsIUrlClassifierDBService.getTables result until next update. r=francois.

MozReview-Commit-ID: ItjTQNzCVED
This commit is contained in:
Henry Chang
2016-11-22 10:39:58 +08:00
parent 4c2c3750d2
commit acfb7674fb
3 changed files with 45 additions and 3 deletions

View File

@@ -159,6 +159,14 @@ private:
uint32_t mHashKey;
// Stores the last time a given table was updated (seconds).
nsDataHashtable<nsCStringHashKey, int64_t> mTableFreshness;
// In-memory cache for the result of TableRequest. See
// nsIUrlClassifierDBService.getTables for the format.
nsCString mTableRequestResult;
// Whether mTableRequestResult is outdated and needs to
// be reloaded from disk.
bool mIsTableRequestResultOutdated;
};
} // namespace safebrowsing