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

Unified Diff: base/hash.h

Issue 10920026: Move hash.h/cc from net/disk_cache to base. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 4 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 | « base/base.gypi ('k') | base/hash.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/hash.h
diff --git a/net/disk_cache/hash.h b/base/hash.h
similarity index 77%
rename from net/disk_cache/hash.h
rename to base/hash.h
index 414a3694ccafc2149145a5248639424606cdcb21..de821b01ed044690df39547e62e50bfa474ddcc4 100644
--- a/net/disk_cache/hash.h
+++ b/base/hash.h
@@ -2,19 +2,19 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef NET_DISK_CACHE_HASH_H__
-#define NET_DISK_CACHE_HASH_H__
+#ifndef BASE_HASH_H__
rvargas (doing something else) 2012/08/31 23:06:08 nit: only one trailing undercore
jbates 2012/08/31 23:10:41 Done.
+#define BASE_HASH_H__
#include <string>
+#include "base/base_export.h"
#include "base/basictypes.h"
-#include "net/base/net_export.h"
-namespace disk_cache {
+namespace base {
// From http://www.azillionmonkeys.com/qed/hash.html
// This is the hash used on WebCore/platform/stringhash
-NET_EXPORT_PRIVATE uint32 SuperFastHash(const char * data, int len);
+BASE_EXPORT_PRIVATE uint32 SuperFastHash(const char * data, int len);
rvargas (doing something else) 2012/08/31 23:06:08 nit: Should not be private
jbates 2012/08/31 23:10:41 Done.
inline uint32 Hash(const char* key, size_t length) {
return SuperFastHash(key, static_cast<int>(length));
« no previous file with comments | « base/base.gypi ('k') | base/hash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698