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

Unified Diff: public/platform/Platform.h

Issue 1111383002: [tracing] Expose memory-infra tracing infrastructure to Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Wrapping at 80 cols Created 5 years, 8 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 | public/platform/WebMemoryAllocatorDump.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/Platform.h
diff --git a/public/platform/Platform.h b/public/platform/Platform.h
index b8598e36665f9128c1a0cc67a3f998547a213b9f..55ce2fca75f81c13ccc93a5481afb3382780dee8 100644
--- a/public/platform/Platform.h
+++ b/public/platform/Platform.h
@@ -83,6 +83,7 @@ class WebMIDIAccessor;
class WebMIDIAccessorClient;
class WebMediaStreamCenter;
class WebMediaStreamCenterClient;
+class WebMemoryDumpProvider;
class WebMessagePortChannel;
class WebMimeRegistry;
class WebNavigatorConnectProvider;
@@ -556,6 +557,15 @@ public:
virtual void recordRappor(const char* metric, const WebString& sample) { }
virtual void recordRapporURL(const char* metric, const blink::WebURL& url) { }
+ // Registers a memory dump provider. The WebMemoryDumpProvider::onMemoryDump
+ // method will be called on the same thread that called the
+ // registerMemoryDumpProvider() method.
+ // See crbug.com/458295 for design docs.
+ virtual void registerMemoryDumpProvider(blink::WebMemoryDumpProvider*) { }
+
+ // Must be called on the thread that called registerMemoryDumpProvider().
+ virtual void unregisterMemoryDumpProvider(blink::WebMemoryDumpProvider*) { }
+
// GPU ----------------------------------------------------------------
//
// May return null if GPU is not supported.
« no previous file with comments | « no previous file | public/platform/WebMemoryAllocatorDump.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698