Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(199)

Unified Diff: components/rappor/bloom_filter.h

Issue 1090683003: Alternative Multi-dimensional Rappor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use 64-bit shift Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/rappor/BUILD.gn ('k') | components/rappor/bloom_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/rappor/bloom_filter.h
diff --git a/components/rappor/bloom_filter.h b/components/rappor/bloom_filter.h
index 482f1c3668eeadff185ba9ead35aa4b90cf70e2a..20adfab5fcea0750c0cd211b16cc1a4f91005efb 100644
--- a/components/rappor/bloom_filter.h
+++ b/components/rappor/bloom_filter.h
@@ -47,6 +47,17 @@ class BloomFilter {
DISALLOW_COPY_AND_ASSIGN(BloomFilter);
};
+
+namespace internal {
+
+// A function for getting bloom filters less than or equal to 64 bits.
+uint64_t GetBloomBits(uint32_t bytes_size,
+ uint32_t hash_function_count,
+ uint32_t hash_seed_offset,
+ const std::string& str);
+
+} // namespace internal
+
} // namespace rappor
#endif // COMPONENTS_RAPPOR_BLOOM_FILTER_H_
« no previous file with comments | « components/rappor/BUILD.gn ('k') | components/rappor/bloom_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698