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

Unified Diff: content/browser/utility_process_host_impl.h

Issue 960753003: Add a name to the proxy resolver utility process and display it in the task manager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@v8-pac-oop
Patch Set: Add comment. Created 5 years, 9 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: content/browser/utility_process_host_impl.h
diff --git a/content/browser/utility_process_host_impl.h b/content/browser/utility_process_host_impl.h
index 00b72e0cbc5a5db29ca7246e2b3559d20a5a603f..37da34b13caf7bc560b94255f7c5186b2ee15916 100644
--- a/content/browser/utility_process_host_impl.h
+++ b/content/browser/utility_process_host_impl.h
@@ -57,6 +57,7 @@ class CONTENT_EXPORT UtilityProcessHostImpl
#endif
bool StartMojoMode() override;
ServiceRegistry* GetServiceRegistry() override;
+ void SetName(const std::string& name) override;
void set_child_flags(int flags) { child_flags_ = flags; }
@@ -97,6 +98,10 @@ class CONTENT_EXPORT UtilityProcessHostImpl
bool started_;
+ // A user-visible name identifying this process. Used to indentify this
+ // process in the task manager.
+ std::string name_;
+
scoped_ptr<BrowserChildProcessHostImpl> process_;
// Used in single-process mode instead of process_.
« no previous file with comments | « chrome/browser/task_manager/child_process_resource_provider.cc ('k') | content/browser/utility_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698