Bug 1305484 - Save/load state and checksum to/from disk rather than prefs. r=dimi,francois

MozReview-Commit-ID: 4gmmrI9wY4c
This commit is contained in:
Henry Chang
2016-10-13 15:22:08 +08:00
parent d6e4b7ebdf
commit fff35e78ca
10 changed files with 353 additions and 58 deletions

View File

@@ -200,6 +200,12 @@ TableUpdateV4::NewRemovalIndices(const uint32_t* aIndices, size_t aNumOfIndices)
}
}
void
TableUpdateV4::NewChecksum(const std::string& aChecksum)
{
mChecksum.Assign(aChecksum.data(), aChecksum.size());
}
HashStore::HashStore(const nsACString& aTableName, nsIFile* aRootStoreDir)
: mTableName(aTableName)
, mInUpdate(false)