The
WebDatabaseHost class seems to be an interface to talk to the browser synchronously. I'm curious why the mojo connection can't be used on the database thread itself? Why does it need to proxy to a SharedRemote on the main thread (it isn't associated at all either)?
It is used in a few spots, and I wonder if we could store a remote say on a Database object? Not sure if that is the best spot (but we'd probably need to allow it having multiple mojo receivers on the browser side).
All except the SandboxedVFSDelegate, and QuotaTracker have a Database ptr so that seemed like a reasonable location.