OLD | NEW |
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/ConsoleTypes.h" | |
12 #include "core/frame/UseCounter.h" | 11 #include "core/frame/UseCounter.h" |
13 #include "core/inspector/ConsoleMessage.h" | 12 #include "core/inspector/ConsoleMessage.h" |
14 #include "platform/Crypto.h" | 13 #include "platform/Crypto.h" |
15 #include "platform/ParsingUtilities.h" | 14 #include "platform/ParsingUtilities.h" |
16 #include "platform/weborigin/KURL.h" | 15 #include "platform/weborigin/KURL.h" |
17 #include "platform/weborigin/SecurityOrigin.h" | 16 #include "platform/weborigin/SecurityOrigin.h" |
18 #include "public/platform/WebCrypto.h" | 17 #include "public/platform/WebCrypto.h" |
19 #include "public/platform/WebCryptoAlgorithm.h" | 18 #include "public/platform/WebCryptoAlgorithm.h" |
20 #include "wtf/ASCIICType.h" | 19 #include "wtf/ASCIICType.h" |
21 #include "wtf/Vector.h" | 20 #include "wtf/Vector.h" |
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
351 metadataSet.add(integrityMetadata.toPair()); | 350 metadataSet.add(integrityMetadata.toPair()); |
352 } | 351 } |
353 | 352 |
354 if (metadataSet.size() == 0 && error) | 353 if (metadataSet.size() == 0 && error) |
355 return IntegrityParseNoValidResult; | 354 return IntegrityParseNoValidResult; |
356 | 355 |
357 return IntegrityParseValidResult; | 356 return IntegrityParseValidResult; |
358 } | 357 } |
359 | 358 |
360 } // namespace blink | 359 } // namespace blink |
OLD | NEW |