Bug 1319286 - Cache nsIUrlClassifierDBService.getTables result until next update. r=francois.
MozReview-Commit-ID: ItjTQNzCVED
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user