Greetings mojoers,
I'd like for Pepper plugins to be able to use Mojo services, so we can move new
API work to Mojo instead of expanding the Pepper API surface. I think it'd be
best to expose a function that supplies a MojoHandle to the plugin so that we
don't have to provide Pepper wrappers for every Mojo API.
It sounds like Mojo connections have to be established in the browser process,
given the discussion in [1].
My current idea right now is to have a plugin process send the browser
process a message over Chrome IPC, and have the browser establish a
browser-plugin Mojo connection. The plugin would receieve a
mojo::PlatformHandle, which it could wrap into a MojoHandle. That MojoHandle
could be then used by the plugin, like the "shell_handle" that's passed to
MojoMain.
Some work still remains for inteacting with the NaCl sandbox, but I'm
trying to get the basic pieces together.
Does this sound sane?
Thanks,
Justin
[1]
https://groups.google.com/a/chromium.org/d/topic/mojo-dev/Kg-YAxFCFuw/discussion