summaryrefslogtreecommitdiffstats
path: root/chrome/browser/render_process_host.h
diff options
context:
space:
mode:
authorbrettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-11 22:35:19 +0000
committerbrettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-11 22:35:19 +0000
commit2f15de4cf410a5d260958a84f7ff5acb5ed93b42 (patch)
tree23154cfe6dcb10d0af1349d5926820b10c602383 /chrome/browser/render_process_host.h
parente688331d8e7086a71a55033a3ad14cc8b018799b (diff)
downloadchromium_src-2f15de4cf410a5d260958a84f7ff5acb5ed93b42.zip
chromium_src-2f15de4cf410a5d260958a84f7ff5acb5ed93b42.tar.gz
chromium_src-2f15de4cf410a5d260958a84f7ff5acb5ed93b42.tar.bz2
Remove some Windows-specific stuff from RenderProcessHost by having callers get the process handle and PID directly from the corresponding Process object.
Review URL: http://codereview.chromium.org/10608 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5219 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/render_process_host.h')
-rw-r--r--chrome/browser/render_process_host.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/chrome/browser/render_process_host.h b/chrome/browser/render_process_host.h
index 5b89597..262710f 100644
--- a/chrome/browser/render_process_host.h
+++ b/chrome/browser/render_process_host.h
@@ -97,17 +97,13 @@ class RenderProcessHost : public IPC::Channel::Listener,
// goes away we'll know that it was intentional rather than a crash.
void ReportExpectingClose(int32 listener_id);
- // getters, these may return NULL if there is no connection
+ // May return NULL if there is no connection.
IPC::SyncChannel* channel() {
return channel_.get();
}
- HANDLE process() {
- return process_.handle();
- }
- // Get the process id of this renderer.
- int pid() const {
- return process_.pid();
+ const Process& process() const {
+ return process_;
}
// Try to shutdown the associated renderer process as fast as possible.