Implement Mojo message interception and dumping for fuzzing.

When --ipc-dump-directory=DIR is passed, outgoing Mojo messages from
the renderer are written to:

DIR/INTERFACE_NAME/CONNECTOR_ID/NUM.METHOD_NAME.mojomsg

Where INTERFACE_NAME is the interface name of the message,
CONNECTOR_ID is a random number unique to each instance of a Connector,
METHOD_NAME is the the name of the method being called, and
NUM is a number used for ordering messages for a single connector.

Bug: 607649

Change-Id: I5b8735d3ca94707c6033563cb8dcc21e0f815ac3
Reviewed-on: https://chromium-review.googlesource.com/1070550
Reviewed-by: Martin Barbella <mbarbella@chromium.org>
Reviewed-by: John Abd-El-Malek <jam@chromium.org>
Reviewed-by: Ken Rockot <rockot@chromium.org>
Commit-Queue: Oliver Chang <ochang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#569945}
10 files changed