| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 [ | 5 [ |
| 6 { | 6 { |
| 7 "namespace": "processes", | 7 "namespace": "processes", |
| 8 "description": "Use the <code>chrome.processes</code> API to interact with t
he browser's processes.", | 8 "description": "Use the <code>chrome.processes</code> API to interact with t
he browser's processes.", |
| 9 "types": [ | 9 "types": [ |
| 10 { | 10 { |
| 11 "id": "Process", | 11 "id": "Process", |
| 12 "type": "object", | 12 "type": "object", |
| 13 "description": "An object containing information about one of the browse
r's processes.", | 13 "description": "An object containing information about one of the browse
r's processes.", |
| 14 "properties": { | 14 "properties": { |
| 15 "id": { | 15 "id": { |
| 16 "type": "integer", | 16 "type": "integer", |
| 17 "description": "Unique ID of the process provided by the browser." | 17 "description": "Unique ID of the process provided by the browser." |
| 18 }, | 18 }, |
| 19 "osProcessId": { | 19 "osProcessId": { |
| 20 "type": "integer", | 20 "type": "integer", |
| 21 "description": "The ID of the process, as provided by the OS." | 21 "description": "The ID of the process, as provided by the OS." |
| 22 }, | 22 }, |
| 23 "title": { |
| 24 "type": "string", |
| 25 "description": "The title of the process as seen in the task manager
." |
| 26 }, |
| 23 "type": { | 27 "type": { |
| 24 "type": "string", | 28 "type": "string", |
| 25 "enum": ["browser", "renderer", "extension", "notification", "plugin
", "worker", "nacl", "utility", "gpu", "other"], | 29 "enum": ["browser", "renderer", "extension", "notification", "plugin
", "worker", "nacl", "utility", "gpu", "other"], |
| 26 "description": "The type of process." | 30 "description": "The type of process." |
| 27 }, | 31 }, |
| 28 "profile": { | 32 "profile": { |
| 29 "type": "string", | 33 "type": "string", |
| 30 "description": "The profile which the process is associated with." | 34 "description": "The profile which the process is associated with." |
| 31 }, | 35 }, |
| 36 "naclDebugPort": { |
| 37 "type": "integer", |
| 38 "description": "For Native Client processes, the port on which they
can be debugged (if enabled), otherwise 0." |
| 39 }, |
| 32 "tabs": { | 40 "tabs": { |
| 33 "type": "array", "items": {"type": "integer", "minimum": 0}, | 41 "type": "array", "items": {"type": "integer", "minimum": 0}, |
| 34 "description": "Array of Tab IDs that have a page rendered by this p
rocess. The list will be non-empty for renderer processes only." | 42 "description": "Array of Tab IDs that have a page rendered by this p
rocess. The list will be non-empty for renderer processes only." |
| 35 }, | 43 }, |
| 36 "cpu": { | 44 "cpu": { |
| 37 "type": "number", | 45 "type": "number", |
| 38 "optional": true, | 46 "optional": true, |
| 39 "description": "The most recent measurement of the process CPU usage
, between 0 and 100%. Only available when receiving the object as part of a call
back from onUpdated or onUpdatedWithMemory." | 47 "description": "The most recent measurement of the process CPU usage
, between 0 and 100%. Only available when receiving the object as part of a call
back from onUpdated or onUpdatedWithMemory." |
| 40 }, | 48 }, |
| 41 "network": { | 49 "network": { |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 { | 262 { |
| 255 "name": "exitCode", | 263 "name": "exitCode", |
| 256 "description": "The exit code if the process exited abnormally. Only
available for renderer processes.", | 264 "description": "The exit code if the process exited abnormally. Only
available for renderer processes.", |
| 257 "type": "integer" | 265 "type": "integer" |
| 258 } | 266 } |
| 259 ] | 267 ] |
| 260 } | 268 } |
| 261 ] | 269 ] |
| 262 } | 270 } |
| 263 ] | 271 ] |
| OLD | NEW |