Y.Sanachan
unread,Oct 26, 2012, 11:58:38 AM10/26/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to chromium...@chromium.org
Hi there,
I have a question about IPC implementation.
I have built chromium on Linux x86-64 environment.
I am studying the IPC implementation between browser-process,
renderer-process and plugin-process.
From my understanding, the number of socket file descriptor to browser
is always 3.
It has been prepared and opened in browser-process before fork
renderer-process or plugin-process.
After called fork() and execv() system call, a socket fd=3 can be used
from renderer/plugin-process, and then
it is possible to be communicated between browser-process and
renderer/plugin-process via socket.
However, I think there is one more connection of socket between
renderer-process and plugin-process.
It has been created after launched-up plugin-process. Maybe the trigger
is PluginProcessMsg_CreateChannel, and
plugin-process calls socketpair() system call after received.
But I cannot understand how to connect renderer-process to
plugin-process. plugin-process sends
PluginProcessHostMsg_ChannelCreated as response to a
PluginProcessMsg_CreateChannel.
This is sent from plugin-process to browser-process...
Could you give me a hint ?
Best Regards,
Sanachan.