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

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

Issue 450183002: Add instance counters of Resource and AudioNode, and expose them via WebLeakDetector. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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
« no previous file with comments | « no previous file | Source/core/fetch/Resource.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/fetch/Resource.h
diff --git a/Source/core/fetch/Resource.h b/Source/core/fetch/Resource.h
index 481cf6588e1e1da674308662dbae4a3bf4c3e240..157443890a34ee531010746355a4e7689b130fc3 100644
--- a/Source/core/fetch/Resource.h
+++ b/Source/core/fetch/Resource.h
@@ -93,6 +93,7 @@ public:
#endif
virtual void dispose();
virtual void trace(Visitor*);
+ static unsigned instanceCount() { return s_instanceCount; }
virtual void load(ResourceFetcher*, const ResourceLoaderOptions&);
@@ -401,6 +402,8 @@ private:
// Ordered list of all redirects followed while fetching this resource.
Vector<RedirectPair> m_redirectChain;
+
+ static unsigned s_instanceCount;
};
#if !LOG_DISABLED
« no previous file with comments | « no previous file | Source/core/fetch/Resource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698