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

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: Use singleton provider. Created 5 years, 2 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 4614d1fbaf77e4cbef8ab026d3a666769bdcf2ec..fb015e020dba408cb9de13d3b86891c94d798216 100644
--- a/third_party/WebKit/Source/core/fetch/Resource.h
+++ b/third_party/WebKit/Source/core/fetch/Resource.h
@@ -260,6 +260,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
@@ -343,6 +345,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