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

Unified Diff: chrome/common/extensions/api/extension_api.json

Issue 3597016: Expands the chrome.experimental.processes extension API.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 2 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: chrome/common/extensions/api/extension_api.json
===================================================================
--- chrome/common/extensions/api/extension_api.json (revision 61514)
+++ chrome/common/extensions/api/extension_api.json (working copy)
@@ -2574,16 +2574,37 @@
"properties": {
"id": {
"type": "integer",
- "description": "The internal ID of the process."
+ "description": "The ID of the process, as provided by the OS."
+ },
+ "type": {
+ "type": "string",
+ "enum": ["browser", "renderer", "plugin", "extension"],
+ "description": "The type of process."
+ },
+ "cpu": {
+ "type": "number",
+ "description": "The most recent measurement of the process's CPU usage, between 0 and 100%."
+ },
+ "network": {
+ "type": "number",
+ "description": "The most recent measurement of the process's network usage, in kB/s."
+ },
+ "privateMemory": {
+ "type": "number",
+ "description": "The most recent measurement of the process's private memory usage, in bytes."
+ },
+ "sharedMemory": {
+ "type": "number",
+ "description": "The most recent measurement of the process's shared memory usage, in bytes."
}
}
}
],
"functions": [
{
- "name": "getProcessForTab",
+ "name": "getProcessIdForTab",
"type": "function",
- "description": "Returns details about the current renderer process of the specified tab.",
+ "description": "Returns the ID of the renderer process for the specified tab.",
"parameters": [
{
"name": "tabId",
@@ -2595,16 +2616,30 @@
"name": "callback",
"parameters": [
{
- "name": "process",
- "$ref": "Process",
- "description": "Details about the tab's process."
+ "name": "processId",
+ "type": "integer",
+ "description": "Process ID of the tab's renderer process."
}
]
}
]
}
],
- "events": []
+ "events": [
+ {
+ "name": "onUpdated",
+ "type": "function",
+ "description": "Fires each time the Task Manager updates its process statistics, providing the dictionary of updated Process objects, indexed by process ID.",
+ "parameters": [
+ {
+ "name": "processes",
+ "type": "object",
+ "properties": {},
+ "additionalProperties": { "type": "any" }
+ }
+ ]
+ }
+ ]
},
{
"namespace": "contextMenus",

Powered by Google App Engine
This is Rietveld 408576698