diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-31 17:27:45 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-31 17:27:45 +0000 |
commit | 76543b9c43515c8c68413b25d682b7c15a151905 (patch) | |
tree | 3fa26b07a2de8102561d5ded5828797fa9a375ab /chrome/common/plugin_messages_internal.h | |
parent | f341f8f58ceeae4efe38daf3c26ad4581f98fd2d (diff) | |
download | chromium_src-76543b9c43515c8c68413b25d682b7c15a151905.zip chromium_src-76543b9c43515c8c68413b25d682b7c15a151905.tar.gz chromium_src-76543b9c43515c8c68413b25d682b7c15a151905.tar.bz2 |
Replace the RenderProcessHost.PID function that returns the OS-generated
process ID with an internally-generated id() function. This allows us the
guarantee that the IDs are unique over the entire run of the application.
This also cleans up some code associated with managing the PID.
The main potentially interesting change is now the PID is set uniquely for
every creation of RenderProcessHost. It used to be set cleared if the process
went away, and re-set if the process was re-created. The ID generation is in
ChildProcesInfo so it is also unique between workers and plugins. I had to
change some significant things in resource_dispatcher_host_unittest to take
into account this new generation of IDs.
BUG=17828
TEST=none
Review URL: http://codereview.chromium.org/160203
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24899 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/plugin_messages_internal.h')
-rw-r--r-- | chrome/common/plugin_messages_internal.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/chrome/common/plugin_messages_internal.h b/chrome/common/plugin_messages_internal.h index 3bc169b..7b7ce74 100644 --- a/chrome/common/plugin_messages_internal.h +++ b/chrome/common/plugin_messages_internal.h @@ -17,12 +17,13 @@ // These are messages sent from the browser to the plugin process. IPC_BEGIN_MESSAGES(PluginProcess) // Tells the plugin process to create a new channel for communication with a - // renderer. The channel name is returned in a - // PluginProcessHostMsg_ChannelCreated message. The renderer's process_id is - // passed so that the plugin process reuses an existing channel to that - // process if it exists. + // given renderer. The channel name is returned in a + // PluginProcessHostMsg_ChannelCreated message. The renderer ID is passed so + // that the plugin process reuses an existing channel to that process if it + // exists. This ID is a unique opaque identifier generated by the browser + // process. IPC_MESSAGE_CONTROL2(PluginProcessMsg_CreateChannel, - int /* process_id */, + int /* renderer_id */, bool /* off_the_record */) // Allows a chrome plugin loaded in the browser process to send arbitrary |