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

Unified Diff: components/tracing/child_trace_message_filter.h

Issue 1039963003: [tracing] child-process-side impl for inter-process memory dumps (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ipc_3_messages
Patch Set: Add temporary workaround for crbug.com/474973 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
Index: components/tracing/child_trace_message_filter.h
diff --git a/components/tracing/child_trace_message_filter.h b/components/tracing/child_trace_message_filter.h
index d3d934097ccfb2f4e21071527b8aa8a1892ce89f..080ea04fe81651a5893bb9c35f9dddcd67154221 100644
--- a/components/tracing/child_trace_message_filter.h
+++ b/components/tracing/child_trace_message_filter.h
@@ -30,6 +30,8 @@ class ChildTraceMessageFilter : public IPC::MessageFilter {
const base::trace_event::MemoryDumpRequestArgs& args,
const base::trace_event::MemoryDumpCallback& callback);
+ base::MessageLoopProxy* ipc_message_loop() const { return ipc_message_loop_; }
+
protected:
~ChildTraceMessageFilter() override;
@@ -65,6 +67,13 @@ class ChildTraceMessageFilter : public IPC::MessageFilter {
IPC::Sender* sender_;
base::MessageLoopProxy* ipc_message_loop_;
+ // guid of the outstanding request (to the Browser's MemoryDumpManager), if
+ // any. 0 if there is no request pending.
+ uint64 pending_memory_dump_guid_;
+
+ // callback of the outstanding memory dump request, if any.
+ base::trace_event::MemoryDumpCallback pending_memory_dump_callback_;
+
DISALLOW_COPY_AND_ASSIGN(ChildTraceMessageFilter);
};
« no previous file with comments | « components/tracing/child_memory_dump_manager_delegate_impl.cc ('k') | components/tracing/child_trace_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698