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

Side by Side Diff: content/public/browser/utility_process_host.h

Issue 972083002: Report utility process JS memory in task manager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@v8-pac-oop
Patch Set: Rebase and fix build. Created 5 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_BROWSER_UTILITY_PROCESS_HOST_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_UTILITY_PROCESS_HOST_H_
6 #define CONTENT_PUBLIC_BROWSER_UTILITY_PROCESS_HOST_H_ 6 #define CONTENT_PUBLIC_BROWSER_UTILITY_PROCESS_HOST_H_
7 7
8 #include "base/environment.h" 8 #include "base/environment.h"
9 #include "base/process/launch.h" 9 #include "base/process/launch.h"
10 #include "base/threading/thread.h" 10 #include "base/threading/thread.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 // Returns information about the utility child process. 73 // Returns information about the utility child process.
74 virtual const ChildProcessData& GetData() = 0; 74 virtual const ChildProcessData& GetData() = 0;
75 75
76 #if defined(OS_POSIX) 76 #if defined(OS_POSIX)
77 virtual void SetEnv(const base::EnvironmentMap& env) = 0; 77 virtual void SetEnv(const base::EnvironmentMap& env) = 0;
78 #endif 78 #endif
79 79
80 // Starts the utility process in Mojo mode. 80 // Starts the utility process in Mojo mode.
81 virtual bool StartMojoMode() = 0; 81 virtual bool StartMojoMode() = 0;
82 82
83 // Returns the ServiceRegistry for this process. Only valid to call this if 83 // Returns the ServiceRegistry for this process. Will return nullptr if
84 // the process was started with StartMojoMode(). 84 // the process was not started with StartMojoMode().
85 virtual ServiceRegistry* GetServiceRegistry() = 0; 85 virtual ServiceRegistry* GetServiceRegistry() = 0;
86 86
87 // Set the name of the process to appear in the task manager. 87 // Set the name of the process to appear in the task manager.
88 virtual void SetName(const base::string16& name) = 0; 88 virtual void SetName(const base::string16& name) = 0;
89 }; 89 };
90 90
91 }; // namespace content 91 }; // namespace content
92 92
93 #endif // CONTENT_PUBLIC_BROWSER_UTILITY_PROCESS_HOST_H_ 93 #endif // CONTENT_PUBLIC_BROWSER_UTILITY_PROCESS_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698