Bug 1297962 - Add noise data when sending v4 gethash request r=francois

MozReview-Commit-ID: GbyvX7wcg8c
* * *
[mq]: 1297962_review

MozReview-Commit-ID: 1U2T0wq778R
This commit is contained in:
Thomas Nguyen
2017-02-24 10:22:12 +08:00
parent e651462701
commit 2b6e2edd11
11 changed files with 239 additions and 43 deletions

View File

@@ -25,13 +25,14 @@ class VariableLengthPrefixSet final
public:
VariableLengthPrefixSet();
NS_IMETHOD Init(const nsACString& aName);
NS_IMETHOD SetPrefixes(const mozilla::safebrowsing::PrefixStringMap& aPrefixMap);
NS_IMETHOD GetPrefixes(mozilla::safebrowsing::PrefixStringMap& aPrefixMap);
NS_IMETHOD Matches(const nsACString& aFullHash, uint32_t* aLength);
NS_IMETHOD IsEmpty(bool* aEmpty);
NS_IMETHOD LoadFromFile(nsIFile* aFile);
NS_IMETHOD StoreToFile(nsIFile* aFile);
nsresult Init(const nsACString& aName);
nsresult SetPrefixes(const mozilla::safebrowsing::PrefixStringMap& aPrefixMap);
nsresult GetPrefixes(mozilla::safebrowsing::PrefixStringMap& aPrefixMap);
nsresult GetFixedLengthPrefixes(FallibleTArray<uint32_t>& aPrefixes);
nsresult Matches(const nsACString& aFullHash, uint32_t* aLength);
nsresult IsEmpty(bool* aEmpty);
nsresult LoadFromFile(nsIFile* aFile);
nsresult StoreToFile(nsIFile* aFile);
size_t SizeOfIncludingThis(mozilla::MallocSizeOf mallocSizeOf);