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

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

Issue 1369253002: Add Web Resources usage to chrome://tracing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@web_cache2_base
Patch Set: Nits/. Created 5 years, 3 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/Resource.h
diff --git a/third_party/WebKit/Source/core/fetch/Resource.h b/third_party/WebKit/Source/core/fetch/Resource.h
index 28944d85bfa91e82b4444d540888a0a3f6c04317..5cfcf9d6264f2bf6a5352bbb91b6ab33840bc193 100644
--- a/third_party/WebKit/Source/core/fetch/Resource.h
+++ b/third_party/WebKit/Source/core/fetch/Resource.h
@@ -258,6 +258,8 @@ public:
// Used by the MemoryCache to reduce the memory consumption of the entry.
void prune();
+ virtual void onMemoryDump(WebProcessMemoryDump*) const;
+
static const char* resourceTypeToString(Type, const FetchInitiatorInfo&);
#ifdef ENABLE_RESOURCE_IS_DELETED_CHECK
@@ -341,6 +343,9 @@ protected:
virtual bool isSafeToUnlock() const { return false; }
virtual void destroyDecodedDataIfPossible() { }
+ // Returns the memory dump name used for tracing. See Resource::onmemoryDump.
+ String getMemoryDumpName() const;
+
ResourceRequest m_resourceRequest;
AtomicString m_accept;
PersistentWillBeMember<ResourceLoader> m_loader;

Powered by Google App Engine
This is Rietveld 408576698