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

Side by Side Diff: Source/platform/Crypto.h

Issue 331083003: Remove unnecessary #includes in Source/platform/Crypto.[cpp|h]. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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
« no previous file with comments | « no previous file | Source/platform/Crypto.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 // TODO(jww) The original Blink-style header guard for this file conflicts with 5 // TODO(jww) The original Blink-style header guard for this file conflicts with
6 // the header guard in Source/modules/crypto/Crypto.h, so this is a 6 // the header guard in Source/modules/crypto/Crypto.h, so this is a
7 // Chromium-style header guard instead. There is now a bug 7 // Chromium-style header guard instead. There is now a bug
8 // (https://crbug.com/360121) to track a proposal to change all header guards 8 // (https://crbug.com/360121) to track a proposal to change all header guards
9 // to a similar style. Thus, whenever that is resolved, this header guard 9 // to a similar style. Thus, whenever that is resolved, this header guard
10 // should be changed to whatever style is agreed upon. 10 // should be changed to whatever style is agreed upon.
11 #ifndef SOURCE_PLATFORM_CRYPTO_H_ 11 #ifndef SOURCE_PLATFORM_CRYPTO_H_
12 #define SOURCE_PLATFORM_CRYPTO_H_ 12 #define SOURCE_PLATFORM_CRYPTO_H_
13 13
14 #include "platform/PlatformExport.h" 14 #include "platform/PlatformExport.h"
15 #include "public/platform/WebCrypto.h" 15 #include "public/platform/WebCrypto.h"
16 #include "wtf/HashSet.h" 16 #include "wtf/HashSet.h"
17 #include "wtf/StringHasher.h" 17 #include "wtf/StringHasher.h"
18 #include "wtf/Vector.h" 18 #include "wtf/Vector.h"
19 #include "wtf/text/CString.h"
20 19
21 namespace WebCore { 20 namespace WebCore {
22 21
23 static const size_t kMaxDigestSize = 64; 22 static const size_t kMaxDigestSize = 64;
24 typedef Vector<uint8_t, kMaxDigestSize> DigestValue; 23 typedef Vector<uint8_t, kMaxDigestSize> DigestValue;
25 24
26 const size_t sha1HashSize = 20; 25 const size_t sha1HashSize = 20;
27 enum HashAlgorithm { 26 enum HashAlgorithm {
28 HashAlgorithmSha1, 27 HashAlgorithmSha1,
29 HashAlgorithmSha256, 28 HashAlgorithmSha256,
(...skipping 28 matching lines...) Expand all
58 template <> 57 template <>
59 struct DefaultHash<WebCore::HashAlgorithm> { 58 struct DefaultHash<WebCore::HashAlgorithm> {
60 typedef IntHash<WebCore::HashAlgorithm> Hash; 59 typedef IntHash<WebCore::HashAlgorithm> Hash;
61 }; 60 };
62 template <> 61 template <>
63 struct HashTraits<WebCore::HashAlgorithm> : UnsignedWithZeroKeyHashTraits<WebCor e::HashAlgorithm> { 62 struct HashTraits<WebCore::HashAlgorithm> : UnsignedWithZeroKeyHashTraits<WebCor e::HashAlgorithm> {
64 }; 63 };
65 64
66 } // namespace WTF 65 } // namespace WTF
67 #endif // SOURCE_PLATFORM_CRYPTO_H_ 66 #endif // SOURCE_PLATFORM_CRYPTO_H_
OLDNEW
« no previous file with comments | « no previous file | Source/platform/Crypto.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698