[weblayer] Implement weblayer crash uploading.

This CL provides an API to the embedder for receiving crash notifications,
and triggering upload or deletion of crashes.

It is designed so that the notification can be used to trigger an upload
job to execute later (potentially in a different process) without fully
initializing weblayer.

A number of things in the minidump_uploader (chiefly MDUploadCallable ->
MinidumpUploader) have been forked. The intention is to unfork immediately
after this patch. Doing so will address existing TODOs in the component,
and address some existing separation of concerns issues.

Bug: 1027076
Test: run_weblayer_support_instrumentation_test_apk -f '*CrashReporterTest#*'
Change-Id: I86b9b37830014c468fd69cf99a67f6f00809f9fc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1940271
Auto-Submit: Tobias Sargeant <[email protected]>
Commit-Queue: Tobias Sargeant <[email protected]>
Reviewed-by: Alex Clarke <[email protected]>
Reviewed-by: Colin Blundell <[email protected]>
Cr-Commit-Position: refs/heads/master@{#720728}
diff --git a/weblayer/BUILD.gn b/weblayer/BUILD.gn
index c50ead3..4157521 100644
--- a/weblayer/BUILD.gn
+++ b/weblayer/BUILD.gn
@@ -288,6 +288,7 @@
       "//android_webview:generate_aw_strings",
       "//components/crash/android:crashpad_main",
       "//components/metrics",
+      "//components/minidump_uploader",
       "//components/safe_browsing",
       "//components/safe_browsing/android:remote_database_manager",
       "//components/safe_browsing/android:safe_browsing_api_handler",