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

Side by Side Diff: components/safe_browsing/renderer/murmurhash3_util.h

Issue 2667343006: Componentize safe_browsing [X+1] : move the renderer part to component.
Patch Set: Created 3 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_RENDERER_SAFE_BROWSING_MURMURHASH3_UTIL_H_ 5 #ifndef COMPONENTS_SAFE_BROWSING_RENDERER_MURMURHASH3_UTIL_H_
6 #define CHROME_RENDERER_SAFE_BROWSING_MURMURHASH3_UTIL_H_ 6 #define COMPONENTS_SAFE_BROWSING_RENDERER_MURMURHASH3_UTIL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
11 11
12 namespace safe_browsing { 12 namespace safe_browsing {
13 13
14 // Runs the 32-bit murmurhash3 function on the given string and returns the 14 // Runs the 32-bit murmurhash3 function on the given string and returns the
15 // output as a uint32_t. 15 // output as a uint32_t.
16 uint32_t MurmurHash3String(const std::string& str, uint32_t seed); 16 uint32_t MurmurHash3String(const std::string& str, uint32_t seed);
17 17
18 } // namespace safe_browsing 18 } // namespace safe_browsing
19 19
20 #endif // CHROME_RENDERER_SAFE_BROWSING_MURMURHASH3_UTIL_H_ 20 #endif // COMPONENTS_SAFE_BROWSING_RENDERER_MURMURHASH3_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698