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

Unified Diff: mojo/shell/child_process_host.h

Issue 1107633002: Improve multi-process debugging. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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
Index: mojo/shell/child_process_host.h
diff --git a/mojo/shell/child_process_host.h b/mojo/shell/child_process_host.h
index 61b357b9eaa8740ad0f994c954a1c419fd49ca95..35d92e7d2155f7c2c374ea109e226af206e7002f 100644
--- a/mojo/shell/child_process_host.h
+++ b/mojo/shell/child_process_host.h
@@ -30,7 +30,8 @@ class Context;
// remained alive until the |on_app_complete| callback is called.
class ChildProcessHost {
public:
- explicit ChildProcessHost(Context* context);
+ // |name| is just for debugging ease.
+ ChildProcessHost(Context* context, const std::string& name);
virtual ~ChildProcessHost();
// |Start()|s the child process; calls |DidStart()| (on the thread on which
@@ -65,6 +66,7 @@ class ChildProcessHost {
void DidCreateChannel(embedder::ChannelInfo* channel_info);
Context* const context_;
+ std::string name_;
sky 2015/04/23 21:48:54 nit: const
jam 2015/04/23 22:18:44 Done.
base::Process child_process_;
embedder::PlatformChannelPair platform_channel_pair_;
ChildControllerPtr controller_;

Powered by Google App Engine
This is Rietveld 408576698