Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(971)

Unified Diff: content/public/common/child_process_host.h

Issue 126033004: Clean up ChildProcessHost unique id generation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: start from 1 Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/public/browser/render_process_host.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/child_process_host.h
diff --git a/content/public/common/child_process_host.h b/content/public/common/child_process_host.h
index bccbd67b89d8d1683d0f80653b318e10e1ac4236..fb65289c3ba89825ff7836b29338d9064fe1b97f 100644
--- a/content/public/common/child_process_host.h
+++ b/content/public/common/child_process_host.h
@@ -24,9 +24,12 @@ class CONTENT_EXPORT ChildProcessHost : public IPC::Sender {
public:
virtual ~ChildProcessHost() {}
+ // This is a value never returned as the unique id of any child processes of
+ // any kind, including the values returned by RenderProcessHost::GetID().
+ static int kInvalidChildProcessUniqueId;
jam 2014/01/07 21:05:01 nit: ChildProcessHost::kInvalidChildProcessUniqueI
Avi (use Gerrit) 2014/01/07 21:47:47 Done.
Avi (use Gerrit) 2014/01/08 16:25:45 No, sorry. kInvalidID is used in the Mac headers a
+
// Used to create a child process host. The delegate must outlive this object.
- static ChildProcessHost* Create(
- ChildProcessHostDelegate* delegate);
+ static ChildProcessHost* Create(ChildProcessHostDelegate* delegate);
// These flags may be passed to GetChildPath in order to alter its behavior,
// causing it to return a child path more suited to a specific task.
« no previous file with comments | « content/public/browser/render_process_host.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698