Chromium Code Reviews| 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)); |