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

Side by Side Diff: third_party/WebKit/Source/core/frame/SubresourceIntegrity.cpp

Issue 2175123002: Move platform/ParsingUtilities.h to wtf/text/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: I keep forgetting this bit... Created 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.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 #include "core/frame/SubresourceIntegrity.h" 5 #include "core/frame/SubresourceIntegrity.h"
6 6
7 #include "core/HTMLNames.h" 7 #include "core/HTMLNames.h"
8 #include "core/dom/Document.h" 8 #include "core/dom/Document.h"
9 #include "core/dom/Element.h" 9 #include "core/dom/Element.h"
10 #include "core/fetch/Resource.h" 10 #include "core/fetch/Resource.h"
11 #include "core/frame/UseCounter.h" 11 #include "core/frame/UseCounter.h"
12 #include "core/inspector/ConsoleMessage.h" 12 #include "core/inspector/ConsoleMessage.h"
13 #include "platform/Crypto.h" 13 #include "platform/Crypto.h"
14 #include "platform/ParsingUtilities.h"
15 #include "platform/weborigin/KURL.h" 14 #include "platform/weborigin/KURL.h"
16 #include "platform/weborigin/SecurityOrigin.h" 15 #include "platform/weborigin/SecurityOrigin.h"
17 #include "public/platform/WebCrypto.h" 16 #include "public/platform/WebCrypto.h"
18 #include "public/platform/WebCryptoAlgorithm.h" 17 #include "public/platform/WebCryptoAlgorithm.h"
19 #include "wtf/ASCIICType.h" 18 #include "wtf/ASCIICType.h"
20 #include "wtf/Vector.h" 19 #include "wtf/Vector.h"
21 #include "wtf/dtoa/utils.h" 20 #include "wtf/dtoa/utils.h"
22 #include "wtf/text/Base64.h" 21 #include "wtf/text/Base64.h"
22 #include "wtf/text/ParsingUtilities.h"
23 #include "wtf/text/StringUTF8Adaptor.h" 23 #include "wtf/text/StringUTF8Adaptor.h"
24 #include "wtf/text/WTFString.h" 24 #include "wtf/text/WTFString.h"
25 25
26 namespace blink { 26 namespace blink {
27 27
28 // FIXME: This should probably use common functions with ContentSecurityPolicy. 28 // FIXME: This should probably use common functions with ContentSecurityPolicy.
29 static bool isIntegrityCharacter(UChar c) 29 static bool isIntegrityCharacter(UChar c)
30 { 30 {
31 // Check if it's a base64 encoded value. We're pretty loose here, as there's 31 // Check if it's a base64 encoded value. We're pretty loose here, as there's
32 // not much risk in it, and it'll make it simpler for developers. 32 // not much risk in it, and it'll make it simpler for developers.
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 metadataSet.add(integrityMetadata.toPair()); 350 metadataSet.add(integrityMetadata.toPair());
351 } 351 }
352 352
353 if (metadataSet.size() == 0 && error) 353 if (metadataSet.size() == 0 && error)
354 return IntegrityParseNoValidResult; 354 return IntegrityParseNoValidResult;
355 355
356 return IntegrityParseValidResult; 356 return IntegrityParseValidResult;
357 } 357 }
358 358
359 } // namespace blink 359 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698