diff options
Diffstat (limited to 'chrome/browser/renderer_host/render_process_host.h')
| -rw-r--r-- | chrome/browser/renderer_host/render_process_host.h | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/chrome/browser/renderer_host/render_process_host.h b/chrome/browser/renderer_host/render_process_host.h index 4c12084..22d5b90 100644 --- a/chrome/browser/renderer_host/render_process_host.h +++ b/chrome/browser/renderer_host/render_process_host.h @@ -46,10 +46,13 @@ class RenderProcessHost : public IPC::Channel::Sender, // Returns the user profile associated with this renderer process. Profile* profile() const { return profile_; } - // Returns the process id for this host. This can be used later in + // Returns the unique ID for this child process. This can be used later in // a call to FromID() to get back to this object (this is used to avoid // sending non-threadsafe pointers to other threads). - int pid() const { return pid_; } + // + // This ID will be unique for all child processes, including workers, plugins, + // etc. It is generated by ChildProcessInfo. + int id() const { return id_; } // Returns the process object associated with the child process. In certain // tests or single-process mode, this will actually represent the current @@ -211,12 +214,6 @@ class RenderProcessHost : public IPC::Channel::Sender, static RenderProcessHost* GetExistingProcessHost(Profile* profile, Type type); protected: - // Sets the process of this object, so that others access it using FromID. - void SetProcessID(int pid); - - // For testing. Removes this host from the list of hosts. - void RemoveFromList(); - base::Process process_; // A proxy for our IPC::Channel that lives on the IO thread (see @@ -231,7 +228,8 @@ class RenderProcessHost : public IPC::Channel::Sender, int32 max_page_id_; private: - int pid_; + // The globally-uniqe identifier for this RPH. + int id_; Profile* profile_; |
