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

Unified Diff: third_party/WebKit/Source/core/dom/PendingScript.cpp

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/dom/PendingScript.cpp
diff --git a/third_party/WebKit/Source/core/dom/PendingScript.cpp b/third_party/WebKit/Source/core/dom/PendingScript.cpp
index 246e3260e2ac618e8c70291106713f6d9169b5f1..7f44d3a77d8de0b19df6719b2d4d59722898b620 100644
--- a/third_party/WebKit/Source/core/dom/PendingScript.cpp
+++ b/third_party/WebKit/Source/core/dom/PendingScript.cpp
@@ -181,6 +181,12 @@ void PendingScript::notifyAppendData(ScriptResource* resource)
m_streamer->notifyAppendData(resource);
}
+void PendingScript::notifyCancel(ScriptResource*)
+{
+ if (m_streamer)
+ m_streamer->cancel();
+}
+
DEFINE_TRACE(PendingScript)
{
visitor->trace(m_element);

Powered by Google App Engine
This is Rietveld 408576698