diff options
Diffstat (limited to 'chromium/chrome/renderer/safe_browsing/murmurhash3_util.h')
-rw-r--r-- | chromium/chrome/renderer/safe_browsing/murmurhash3_util.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/chromium/chrome/renderer/safe_browsing/murmurhash3_util.h b/chromium/chrome/renderer/safe_browsing/murmurhash3_util.h new file mode 100644 index 00000000000..8a4b1d092e1 --- /dev/null +++ b/chromium/chrome/renderer/safe_browsing/murmurhash3_util.h @@ -0,0 +1,20 @@ +// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef CHROME_RENDERER_SAFE_BROWSING_MURMURHASH3_UTIL_H_ +#define CHROME_RENDERER_SAFE_BROWSING_MURMURHASH3_UTIL_H_ + +#include <stdint.h> + +#include <string> + +namespace safe_browsing { + +// Runs the 32-bit murmurhash3 function on the given string and returns the +// output as a uint32_t. +uint32_t MurmurHash3String(const std::string& str, uint32_t seed); + +} // namespace safe_browsing + +#endif // CHROME_RENDERER_SAFE_BROWSING_MURMURHASH3_UTIL_H_ |