[tracing] MemoryDumpManager delegate for upcoming inter-process dumps
commit0883131b5b87d2ea67b2a2ba8e2a13f0f2f75863
authorprimiano <primiano@chromium.org>
Tue, 31 Mar 2015 16:02:17 +0000 (31 09:02 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 31 Mar 2015 16:02:57 +0000 (31 16:02 +0000)
tree7901ad835a1a7cb44dd2cc450de23d83fd93ee99
parent0da8d8d28cabf1241cfd282431ea88e8cb141faa
[tracing] MemoryDumpManager delegate for upcoming inter-process dumps

This CL introduces an interface to the MemoryDumpManager to delegate
the generation of dump points. The MDM delegate here is an inversion
of dependency interface, to allow the MDM (which lives in //base) to
coordinate inter-process dumps without having to depend on //ipc and
other layers.
In the upcoming CLs this delegate will be concretely implemented by
TracingControllerImpl (browser side) and ChildTraceMessageFilter
(child process side) to handle the IPC dances.

More context and design doc are available in the attached BUG.

BUG=462930

Review URL: https://codereview.chromium.org/1042173002

Cr-Commit-Position: refs/heads/master@{#323046}
base/trace_event/memory_dump_manager.cc
base/trace_event/memory_dump_manager.h
base/trace_event/memory_dump_manager_unittest.cc