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

Unified Diff: third_party/WebKit/Source/core/fetch/ScriptResource.h

Issue 2251893002: Add destroyDecodedDataIfPossible to ScriptResource to stop ScriptStreaming. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/fetch/ScriptResource.h
diff --git a/third_party/WebKit/Source/core/fetch/ScriptResource.h b/third_party/WebKit/Source/core/fetch/ScriptResource.h
index 036e26b59b7c8120423c19ea3d8201f7d4a5e78f..112a673d81bdb2136577908eca1945ba68ac0f78 100644
--- a/third_party/WebKit/Source/core/fetch/ScriptResource.h
+++ b/third_party/WebKit/Source/core/fetch/ScriptResource.h
@@ -50,6 +50,7 @@ public:
ResourceClientType getResourceClientType() const final { return ScriptType; }
virtual void notifyAppendData(ScriptResource* resource) { }
+ virtual void notifyCancel(ScriptResource* resource) { }
DEFINE_INLINE_VIRTUAL_TRACE() {}
};
@@ -98,6 +99,7 @@ private:
};
ScriptResource(const ResourceRequest&, const ResourceLoaderOptions&, const String& charset);
+ void destroyDecodedDataIfPossible() override;
marja 2016/08/17 08:37:40 I find this name surprising. It's not clear what's
ScriptIntegrityDisposition m_integrityDisposition;
IntegrityMetadataSet m_integrityMetadata;

Powered by Google App Engine
This is Rietveld 408576698