--
You received this message because you are subscribed to the Google Groups "platform-architecture-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to platform-architect...@chromium.org.
To post to this group, send email to platform-arc...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/platform-architecture-dev/CACQRE%2BS3qVfGKu5goGKE1zL0WZFxPdwXkLSD80CE4-6erd3SLA%40mail.gmail.com.
Usually we transfer a read only file descriptor and mmap that in the child process.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/platform-architecture-dev/CABg10jyHVWar_jAkPQ7GQ3y409VWFvT7b4eoqj2Rx8ypaYRsRQ%40mail.gmail.com.
Usually we transfer a read only file descriptor and mmap that in the child process.
You shouldn't need to involve content at all. Platform and WTF can both depend on components/ (for self contained components that don't depend on content or blink) or on base/.
I think you just want to pass the file descriptor through mojo. I'm pretty sure that should work. I think that's what mojo is doing to pass around pipes under the hood anyway.
You shouldn't need to involve content at all. Platform and WTF can both depend on components/ (for self contained components that don't depend on content or blink) or on base/.
I think you just want to pass the file descriptor through mojo. I'm pretty sure that should work. I think that's what mojo is doing to pass around pipes under the hood anyway.
On Jun 28, 2016 11:35 PM, "Koji Ishii" <ko...@chromium.org> wrote:Usually we transfer a read only file descriptor and mmap that in the child process.
Thank you Jochen for the reply. I understand we did this in old IPC, is it the same in mojo? More specifically:
- Can mojo use PlatformFileForTransit to transmit file descriptor across process, or is there something alternative to handle file descriptor?
This (browser <-> content/render <-> platform) looked like opposite from mojo in Blink presentation to me, which motivated me to ask here, but I might misunderstand somewhere.
- If I were to use PlatformFileForTransit , I'll need to do it in 2 steps; a) browser to open file descriptor, and b) content/renderer to mmap to give it to blink-platform (because platform cannot use base::file to mmap IIUC) correct?
/koji
--
You received this message because you are subscribed to the Google Groups "platform-architecture-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to platform-architect...@chromium.org.
To post to this group, send email to platform-arc...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/platform-architecture-dev/CAO9Q3iKbvCQKJEGdz1OGKu%3DQyxtffb_NCfXDdu8SOC-RYUvFMw%40mail.gmail.com.
Some background on this: components/ became a bit of a dumping ground, so we're trying to limit new components to things that are shared with iOS, or are so big that they warrant their own component, like eg arc++.
You can put the hyphenation code into its own subdirectory in content/{browser,renderer} and use DEPS to limit what it can include.
Some background on this: components/ became a bit of a dumping ground, so we're trying to limit new components to things that are shared with iOS, or are so big that they warrant their own component, like eg arc++.
You can put the hyphenation code into its own subdirectory in content/{browser,renderer} and use DEPS to limit what it can include.