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

Side by Side Diff: Source/modules/crypto/NormalizeAlgorithm.cpp

Issue 403013002: Rename WebCore to blink in Modules (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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/modules/crypto/NormalizeAlgorithm.h ('k') | Source/modules/crypto/SubtleCrypto.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 25 matching lines...) Expand all
36 #include "public/platform/WebCryptoAlgorithmParams.h" 36 #include "public/platform/WebCryptoAlgorithmParams.h"
37 #include "public/platform/WebString.h" 37 #include "public/platform/WebString.h"
38 #include "wtf/ArrayBuffer.h" 38 #include "wtf/ArrayBuffer.h"
39 #include "wtf/ArrayBufferView.h" 39 #include "wtf/ArrayBufferView.h"
40 #include "wtf/MathExtras.h" 40 #include "wtf/MathExtras.h"
41 #include "wtf/Uint8Array.h" 41 #include "wtf/Uint8Array.h"
42 #include "wtf/Vector.h" 42 #include "wtf/Vector.h"
43 #include "wtf/text/StringBuilder.h" 43 #include "wtf/text/StringBuilder.h"
44 #include <algorithm> 44 #include <algorithm>
45 45
46 namespace WebCore { 46 namespace blink {
47 47
48 namespace { 48 namespace {
49 49
50 struct AlgorithmNameMapping { 50 struct AlgorithmNameMapping {
51 // Must be an upper case ASCII string. 51 // Must be an upper case ASCII string.
52 const char* const algorithmName; 52 const char* const algorithmName;
53 // Must be strlen(algorithmName). 53 // Must be strlen(algorithmName).
54 unsigned char algorithmNameLength; 54 unsigned char algorithmNameLength;
55 blink::WebCryptoAlgorithmId algorithmId; 55 blink::WebCryptoAlgorithmId algorithmId;
56 56
(...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after
719 return true; 719 return true;
720 } 720 }
721 721
722 } // namespace 722 } // namespace
723 723
724 bool normalizeAlgorithm(const Dictionary& raw, blink::WebCryptoOperation op, bli nk::WebCryptoAlgorithm& algorithm, AlgorithmError* error) 724 bool normalizeAlgorithm(const Dictionary& raw, blink::WebCryptoOperation op, bli nk::WebCryptoAlgorithm& algorithm, AlgorithmError* error)
725 { 725 {
726 return parseAlgorithm(raw, op, algorithm, ErrorContext(), error); 726 return parseAlgorithm(raw, op, algorithm, ErrorContext(), error);
727 } 727 }
728 728
729 } // namespace WebCore 729 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/crypto/NormalizeAlgorithm.h ('k') | Source/modules/crypto/SubtleCrypto.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698