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

Unified Diff: third_party/WebKit/Source/core/frame/SubresourceIntegrity.h

Issue 2723793002: De-Element ScriptLoader (Closed)
Patch Set: ScriptLoaderClient->ScriptElementBase, pure virtual interface, add fixme Created 3 years, 9 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
Index: third_party/WebKit/Source/core/frame/SubresourceIntegrity.h
diff --git a/third_party/WebKit/Source/core/frame/SubresourceIntegrity.h b/third_party/WebKit/Source/core/frame/SubresourceIntegrity.h
index 56c6333e90a6a42d3a525ff551dd31b214f7be40..810e6e8b7c5237877b922952aa9b8382fac397cf 100644
--- a/third_party/WebKit/Source/core/frame/SubresourceIntegrity.h
+++ b/third_party/WebKit/Source/core/frame/SubresourceIntegrity.h
@@ -14,7 +14,7 @@
namespace blink {
-class Element;
+class Document;
class ExecutionContext;
class KURL;
class Resource;
@@ -31,13 +31,14 @@ class CORE_EXPORT SubresourceIntegrity {
// The versions with the IntegrityMetadataSet passed as the first argument
// assume that the integrity attribute has already been parsed, and the
// IntegrityMetadataSet represents the result of that parsing.
- static bool CheckSubresourceIntegrity(const Element&,
+ static bool CheckSubresourceIntegrity(const String& integrityAttribute,
+ Document&, // the embedding document
const char* content,
size_t,
const KURL& resourceUrl,
const Resource&);
static bool CheckSubresourceIntegrity(const IntegrityMetadataSet&,
- const Element&,
+ Document&,
const char* content,
size_t,
const KURL& resourceUrl,
« no previous file with comments | « third_party/WebKit/Source/core/dom/ScriptRunnerTest.cpp ('k') | third_party/WebKit/Source/core/frame/SubresourceIntegrity.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698