Convert //components/tracing over to use Mojo IPC.

This meant exposing a service BackgroundTracingAgent from child processes
that the browser processs can use to configure the reporting of background
tracing back to the browser via BackgroundTracingAgentClient.

As part of this change, background tracing is disabled for pepper plugins
(nacl and flash) as these are deprecated technologies, and we are not
deriving much benefit from background tracing of these processes.

Change-Id: Id940dbf4646c315c01f1ca311b66b721a6648706
Bug: 967834
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1621067
Reviewed-by: Daniel Cheng <[email protected]>
Reviewed-by: Ken Rockot <[email protected]>
Reviewed-by: oysteine <[email protected]>
Commit-Queue: Darin Fisher <[email protected]>
Cr-Commit-Position: refs/heads/master@{#666509}
diff --git a/content/browser/BUILD.gn b/content/browser/BUILD.gn
index 72f049c..e8b16453 100644
--- a/content/browser/BUILD.gn
+++ b/content/browser/BUILD.gn
@@ -68,6 +68,7 @@
     "//components/services/leveldb:lib",
     "//components/tracing",
     "//components/tracing:startup_tracing",
+    "//components/tracing/common:interfaces",
     "//components/ui_devtools",
     "//components/url_formatter",
     "//components/variations",
@@ -1859,6 +1860,8 @@
     "tracing/background_startup_tracing_observer.h",
     "tracing/background_tracing_active_scenario.cc",
     "tracing/background_tracing_active_scenario.h",
+    "tracing/background_tracing_agent_client_impl.cc",
+    "tracing/background_tracing_agent_client_impl.h",
     "tracing/background_tracing_config_impl.cc",
     "tracing/background_tracing_config_impl.h",
     "tracing/background_tracing_manager_impl.cc",
@@ -1869,8 +1872,6 @@
     "tracing/file_tracing_provider_impl.h",
     "tracing/perfetto_file_tracer.cc",
     "tracing/perfetto_file_tracer.h",
-    "tracing/trace_message_filter.cc",
-    "tracing/trace_message_filter.h",
     "tracing/tracing_controller_impl.cc",
     "tracing/tracing_controller_impl.h",
     "tracing/tracing_controller_impl_data_endpoint.cc",