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

Unified Diff: chrome/renderer/safe_browsing/murmurhash3_util.h

Issue 7866011: Switch to the new client-side phishing model that uses Murmurhash for word hashes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile problems and add another test Created 9 years, 3 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 | « chrome/common/safe_browsing/client_model.proto ('k') | chrome/renderer/safe_browsing/murmurhash3_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/safe_browsing/murmurhash3_util.h
diff --git a/chrome/renderer/safe_browsing/murmurhash3_util.h b/chrome/renderer/safe_browsing/murmurhash3_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..8569c7769edeaa86a16c5413b94595bca06a295f
--- /dev/null
+++ b/chrome/renderer/safe_browsing/murmurhash3_util.h
@@ -0,0 +1,19 @@
+// 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 <string>
+#include "base/basictypes.h"
+
+namespace safe_browsing {
+
+// Runs the 32-bit murmurhash3 function on the given string and returns the
+// output as a uint32.
+uint32 MurmurHash3String(const std::string& str, uint32 seed);
+
+} // namespace safe_browsing
+
+#endif // CHROME_RENDERER_SAFE_BROWSING_MURMURHASH3_UTIL_H_
« no previous file with comments | « chrome/common/safe_browsing/client_model.proto ('k') | chrome/renderer/safe_browsing/murmurhash3_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698