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

Unified Diff: third_party/WebKit/Source/core/fetch/ScriptResource.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/fetch/ScriptResource.cpp
diff --git a/third_party/WebKit/Source/core/fetch/ScriptResource.cpp b/third_party/WebKit/Source/core/fetch/ScriptResource.cpp
index 19785d03ca6a97f6a1a45fb83f5d63fd9507f215..44896d93c10eb17cf8966309931b7d6b7270200f 100644
--- a/third_party/WebKit/Source/core/fetch/ScriptResource.cpp
+++ b/third_party/WebKit/Source/core/fetch/ScriptResource.cpp
@@ -71,6 +71,13 @@ void ScriptResource::appendData(const char* data, size_t length)
client->notifyAppendData(this);
}
+void ScriptResource::destroyDecodedDataIfPossible()
marja 2016/08/17 08:37:40 ... and especially here... destroyDecodedDataIfPos
+{
+ ResourceClientWalker<ScriptResourceClient> walker(clients());
+ while (ScriptResourceClient* client = walker.next())
+ client->notifyCancel(this);
+}
+
void ScriptResource::onMemoryDump(WebMemoryDumpLevelOfDetail levelOfDetail, WebProcessMemoryDump* memoryDump) const
{
Resource::onMemoryDump(levelOfDetail, memoryDump);

Powered by Google App Engine
This is Rietveld 408576698