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

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

Issue 2614813004: Fix a crash of SRI when used with web workers (Closed)
Patch Set: fix Created 3 years, 11 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 1f9bddbe7db9412be0e2e3c6ccba93a127df84c4..b42f7b89adff350a1d6dbc7d7f5dbf0276b2cd16 100644
--- a/third_party/WebKit/Source/core/frame/SubresourceIntegrity.h
+++ b/third_party/WebKit/Source/core/frame/SubresourceIntegrity.h
@@ -14,8 +14,8 @@
namespace blink {
-class Document;
class Element;
+class ExecutionContext;
class KURL;
class Resource;
@@ -46,13 +46,13 @@ class CORE_EXPORT SubresourceIntegrity {
const char*,
size_t,
const KURL& resourceUrl,
- Document&,
+ ExecutionContext&,
WTF::String&);
static bool CheckSubresourceIntegrity(const IntegrityMetadataSet&,
const char*,
size_t,
const KURL& resourceUrl,
- Document&,
+ ExecutionContext&,
WTF::String&);
// The IntegrityMetadataSet arguments are out parameters which contain the
@@ -63,7 +63,7 @@ class CORE_EXPORT SubresourceIntegrity {
static IntegrityParseResult parseIntegrityAttribute(
const WTF::String& attribute,
IntegrityMetadataSet&,
- Document*);
+ ExecutionContext*);
private:
friend class SubresourceIntegrityTest;

Powered by Google App Engine
This is Rietveld 408576698