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

Unified Diff: Source/core/fetch/Resource.cpp

Issue 389553002: Refactoring: Make ~CSSStyleSheetResource empty. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add an assertion Created 6 years, 5 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
« no previous file with comments | « Source/core/fetch/Resource.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/fetch/Resource.cpp
diff --git a/Source/core/fetch/Resource.cpp b/Source/core/fetch/Resource.cpp
index 36d47f13b00e5b33b943f55d748c1403a64c8919..7258d9a11950b2fef028bdef8c904964157e3b4c 100644
--- a/Source/core/fetch/Resource.cpp
+++ b/Source/core/fetch/Resource.cpp
@@ -150,6 +150,10 @@ Resource::~Resource()
#endif
}
+void Resource::dispose()
+{
+}
+
void Resource::failBeforeStarting()
{
WTF_LOG(ResourceLoading, "Cannot start loading '%s'", url().string().latin1().data());
@@ -551,6 +555,7 @@ bool Resource::deleteIfPossible()
{
if (canDelete() && !memoryCache()->contains(this)) {
InspectorInstrumentation::willDestroyResource(this);
+ dispose();
delete this;
return true;
}
« no previous file with comments | « Source/core/fetch/Resource.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698