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

Side by Side Diff: chrome/common/extensions/api/extension_api.json

Issue 3801008: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 [ 1 [
2 { 2 {
3 "namespace": "extension", 3 "namespace": "extension",
4 "unprivileged": true, 4 "unprivileged": true,
5 "types": [ 5 "types": [
6 { 6 {
7 "id": "MessageSender", 7 "id": "MessageSender",
8 "type": "object", 8 "type": "object",
9 "description": "An object containing information about the script contex t that sent a message or request.", 9 "description": "An object containing information about the script contex t that sent a message or request.",
10 "properties": { 10 "properties": {
(...skipping 2572 matching lines...) Expand 10 before | Expand all | Expand 10 after
2583 { 2583 {
2584 "namespace": "experimental.processes", 2584 "namespace": "experimental.processes",
2585 "types": [ 2585 "types": [
2586 { 2586 {
2587 "id": "Process", 2587 "id": "Process",
2588 "type": "object", 2588 "type": "object",
2589 "description": "An object containing information about one of the browse r's processes.", 2589 "description": "An object containing information about one of the browse r's processes.",
2590 "properties": { 2590 "properties": {
2591 "id": { 2591 "id": {
2592 "type": "integer", 2592 "type": "integer",
2593 "description": "The internal ID of the process." 2593 "description": "The ID of the process, as provided by the OS."
2594 },
2595 "type": {
2596 "type": "string",
2597 "enum": ["browser", "renderer", "extension", "notification", "plugin ", "worker", "nacl", "utility", "gpu", "other"],
2598 "description": "The type of process."
2599 },
2600 "cpu": {
2601 "type": "number",
2602 "description": "The most recent measurement of the process's CPU usa ge, between 0 and 100%."
2603 },
2604 "network": {
2605 "type": "number",
2606 "description": "The most recent measurement of the process's network usage, in bytes per second."
2607 },
2608 "privateMemory": {
2609 "type": "number",
2610 "description": "The most recent measurement of the process's private memory usage, in bytes."
2611 },
2612 "sharedMemory": {
2613 "type": "number",
2614 "description": "The most recent measurement of the process's shared memory usage, in bytes."
2594 } 2615 }
2595 } 2616 }
2596 } 2617 }
2597 ], 2618 ],
2598 "functions": [ 2619 "functions": [
2599 { 2620 {
2600 "name": "getProcessForTab", 2621 "name": "getProcessIdForTab",
2601 "type": "function", 2622 "type": "function",
2602 "description": "Returns details about the current renderer process of th e specified tab.", 2623 "description": "Returns the ID of the renderer process for the specified tab.",
2603 "parameters": [ 2624 "parameters": [
2604 { 2625 {
2605 "name": "tabId", 2626 "name": "tabId",
2606 "type": "integer", 2627 "type": "integer",
2607 "minimum": 0 2628 "minimum": 0
2608 }, 2629 },
2609 { 2630 {
2610 "type": "function", 2631 "type": "function",
2611 "name": "callback", 2632 "name": "callback",
2612 "parameters": [ 2633 "parameters": [
2613 { 2634 {
2614 "name": "process", 2635 "name": "processId",
2615 "$ref": "Process", 2636 "type": "integer",
2616 "description": "Details about the tab's process." 2637 "description": "Process ID of the tab's renderer process."
2617 } 2638 }
2618 ] 2639 ]
2619 } 2640 }
2620 ] 2641 ]
2621 } 2642 }
2622 ], 2643 ],
2623 "events": [] 2644 "events": [
2645 {
2646 "name": "onUpdated",
2647 "type": "function",
2648 "description": "Fires each time the Task Manager updates its process sta tistics, providing the dictionary of updated Process objects, indexed by process ID.",
2649 "parameters": [
2650 {
2651 "name": "processes",
2652 "type": "object",
2653 "properties": {},
2654 "additionalProperties": { "$ref": "Process" }
2655 }
2656 ]
2657 }
2658 ]
2624 }, 2659 },
2625 { 2660 {
2626 "namespace": "contextMenus", 2661 "namespace": "contextMenus",
2627 "types": [ 2662 "types": [
2628 { 2663 {
2629 "id": "OnClickData", 2664 "id": "OnClickData",
2630 "type": "object", 2665 "type": "object",
2631 "description": "Information sent when a context menu item is clicked.", 2666 "description": "Information sent when a context menu item is clicked.",
2632 "properties": { 2667 "properties": {
2633 "menuItemId": { 2668 "menuItemId": {
(...skipping 1594 matching lines...) Expand 10 before | Expand all | Expand 10 after
4228 "token": { "type": "string", "optional": true } 4263 "token": { "type": "string", "optional": true }
4229 } 4264 }
4230 } 4265 }
4231 ] 4266 ]
4232 } 4267 }
4233 ] 4268 ]
4234 } 4269 }
4235 ] 4270 ]
4236 } 4271 }
4237 ] 4272 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698