Bug 1311933 - P1. Use integer as the key of safebrowsing cache. r=francois
In Bug 1323953, we always send 4-bytes prefix for completion and the prefix is also used as the key to store cache result from gethash request. Since it is always 4-bytes, we could convert it to integer for simplicity. MozReview-Commit-ID: Lkvrg0wvX5Z
This commit is contained in:
@@ -179,7 +179,7 @@ public:
|
||||
void NewRemovalIndices(const uint32_t* aIndices, size_t aNumOfIndices);
|
||||
void SetNewClientState(const nsACString& aState) { mClientState = aState; }
|
||||
void NewChecksum(const std::string& aChecksum);
|
||||
nsresult NewFullHashResponse(const nsACString& aPrefix,
|
||||
nsresult NewFullHashResponse(const Prefix& aPrefix,
|
||||
CachedFullHashResponse& aResponse);
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user