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

Unified Diff: chrome/common/extensions/api/processes.idl

Issue 1584473004: Migrate ProcessesEventRouter to the new task manager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix nit. Created 4 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
« no previous file with comments | « chrome/chrome_browser_extensions.gypi ('k') | chrome/common/extensions/api/schemas.gni » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/api/processes.idl
diff --git a/chrome/common/extensions/api/processes.idl b/chrome/common/extensions/api/processes.idl
index 556ba2418c3588d111224f9f1b1459a398099f3d..9e9808c214ae6131132e8113016009283b223c18 100644
--- a/chrome/common/extensions/api/processes.idl
+++ b/chrome/common/extensions/api/processes.idl
@@ -18,6 +18,16 @@ namespace processes {
gpu,
other
};
+
+ // An object that represents a Chrome task running on a process. Several tasks
+ // can share the same process.
+ dictionary TaskInfo {
+ // The title of the task.
+ DOMString title;
+ // Optional tab ID, if this task represents a tab running on a renderer
+ // process.
+ long? tabId;
+ };
// The Cache object contains information about the size and utilization of a
// cache used by the browser.
@@ -34,8 +44,6 @@ namespace processes {
long id;
// The ID of the process, as provided by the OS.
long osProcessId;
- // The title of the process as seen in the task manager.
- DOMString title;
// The type of process.
ProcessType type;
// The profile which the process is associated with.
@@ -43,9 +51,8 @@ namespace processes {
// The debugging port for Native Client processes. Zero for other process
// types and for NaCl processes that do not have debugging enabled.
long naclDebugPort;
- // Array of Tab IDs that have a page rendered by this process. The list will
- // be non-empty for renderer processes only.
- long[] tabs;
+ // Array of TaskInfos representing the tasks running on this process.
+ TaskInfo[] tasks;
// The most recent measurement of the process CPU usage, between 0 and 100.
// Only available when receiving the object as part of a callback from
// onUpdated or onUpdatedWithMemory.
@@ -83,7 +90,7 @@ namespace processes {
// or onUpdatedWithMemory.
Cache? cssCache;
};
-
+
// A callback to report the status of the termination.
// |didTerminate|: True if terminating the process was successful, and false
// otherwise.
« no previous file with comments | « chrome/chrome_browser_extensions.gypi ('k') | chrome/common/extensions/api/schemas.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698