Slow Reports - Add message filter to trigger background traces from child processes.
commitcebf0f7018da1787d11bed7b9a406e29a84e5d79
authorsimonhatch <simonhatch@chromium.org>
Mon, 27 Jul 2015 20:13:21 +0000 (27 13:13 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 27 Jul 2015 20:14:05 +0000 (27 20:14 +0000)
tree0431b977c71efa8631c5710bc468113f365e5acf
parentd6fcd9a9efb6c0e41e802b7b8b0a436932d3c9c9
Slow Reports - Add message filter to trigger background traces from child processes.

At the moment, we want to trigger background traces from UMA callbacks, but you can only set a callback in the same process. This CL adds a message filter for the background tracing manager, which allows it to install UMA callbacks in child processes, and trigger background tracing from there.

BUG=504889

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

Cr-Commit-Position: refs/heads/master@{#340544}
components/tracing/child_trace_message_filter.cc
components/tracing/child_trace_message_filter.h
components/tracing/tracing_messages.h
content/browser/tracing/background_tracing_manager_impl.cc
content/browser/tracing/background_tracing_manager_impl.h
content/browser/tracing/trace_message_filter.cc
content/browser/tracing/trace_message_filter.h
content/browser/tracing/tracing_controller_impl.cc
content/browser/tracing/tracing_controller_impl.h