Expose the MojoJS and MojoJSTest bindings in Workers

This change makes the Mojo JavaScript bindings including the testing
interface available in Worker contexts. Each WorkerThread is given a
service_manager::InterfaceProvider so that MojoInterfaceInterceptor
can intercept requests from particular workers.

The Mojo JS bindings have been updated so that they may be used in a
Worker as long as autoloading is not used because relative script
imports are not possible (without ECMAScript modules).

Bug: 734210
Change-Id: Ib4fa81cf98e2693b286c98b35cd3dbe50cc6abb8
Reviewed-on: https://chromium-review.googlesource.com/541999
Commit-Queue: Reilly Grant <reillyg@chromium.org>
Reviewed-by: Mounir Lamouri <mlamouri@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Yuzhu Shen <yzshen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#484428}

CrOS-Libchrome-Original-Commit: ec8a59378bf5e15360c3728e35ab5b57ca8fd495
2 files changed
tree: fcecd2eed64742abc3b0ca68d144aa13aab26a05
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/