Chromium Code Reviews| 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); |