| 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",
|
|
|