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

Unified Diff: Source/platform/Crypto.h

Issue 400543004: Rename WebCore namespace to blink in Platform (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 | « Source/platform/CrossThreadCopier.cpp ('k') | Source/platform/Crypto.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/Crypto.h
diff --git a/Source/platform/Crypto.h b/Source/platform/Crypto.h
index 4a764c54d98ca0a2f2270ed9b330b68563904f61..1399f172a2b9a9b07465fa457fc9fcd115ee48c7 100644
--- a/Source/platform/Crypto.h
+++ b/Source/platform/Crypto.h
@@ -17,7 +17,7 @@
#include "wtf/StringHasher.h"
#include "wtf/Vector.h"
-namespace WebCore {
+namespace blink {
static const size_t kMaxDigestSize = 64;
typedef Vector<uint8_t, kMaxDigestSize> DigestValue;
@@ -34,32 +34,32 @@ PLATFORM_EXPORT bool computeDigest(HashAlgorithm, const char* digestable, size_t
PLATFORM_EXPORT PassOwnPtr<blink::WebCryptoDigestor> createDigestor(HashAlgorithm);
PLATFORM_EXPORT void finishDigestor(blink::WebCryptoDigestor*, DigestValue& digestResult);
-} // namespace WebCore
+} // namespace blink
namespace WTF {
struct DigestValueHash {
- static unsigned hash(const WebCore::DigestValue& v)
+ static unsigned hash(const blink::DigestValue& v)
{
return StringHasher::computeHash(v.data(), v.size());
}
- static bool equal(const WebCore::DigestValue& a, const WebCore::DigestValue& b)
+ static bool equal(const blink::DigestValue& a, const blink::DigestValue& b)
{
return a == b;
};
static const bool safeToCompareToEmptyOrDeleted = true;
};
template <>
-struct DefaultHash<WebCore::DigestValue> {
+struct DefaultHash<blink::DigestValue> {
typedef DigestValueHash Hash;
};
template <>
-struct DefaultHash<WebCore::HashAlgorithm> {
- typedef IntHash<WebCore::HashAlgorithm> Hash;
+struct DefaultHash<blink::HashAlgorithm> {
+ typedef IntHash<blink::HashAlgorithm> Hash;
};
template <>
-struct HashTraits<WebCore::HashAlgorithm> : UnsignedWithZeroKeyHashTraits<WebCore::HashAlgorithm> {
+struct HashTraits<blink::HashAlgorithm> : UnsignedWithZeroKeyHashTraits<blink::HashAlgorithm> {
};
} // namespace WTF
« no previous file with comments | « Source/platform/CrossThreadCopier.cpp ('k') | Source/platform/Crypto.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698