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

Side by Side 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 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 2556 matching lines...) Expand 10 before | Expand all | Expand 10 after
2567 { 2567 {
2568 "namespace": "experimental.processes", 2568 "namespace": "experimental.processes",
2569 "types": [ 2569 "types": [
2570 { 2570 {
2571 "id": "Process", 2571 "id": "Process",
2572 "type": "object", 2572 "type": "object",
2573 "description": "An object containing information about one of the browse r's processes.", 2573 "description": "An object containing information about one of the browse r's processes.",
2574 "properties": { 2574 "properties": {
2575 "id": { 2575 "id": {
2576 "type": "integer", 2576 "type": "integer",
2577 "description": "The internal ID of the process." 2577 "description": "The ID of the process, as provided by the OS."
2578 },
2579 "type": {
2580 "type": "string",
2581 "enum": ["browser", "renderer", "plugin", "extension"],
2582 "description": "The type of process."
2583 },
2584 "cpu": {
2585 "type": "number",
2586 "description": "The most recent measurement of the process's CPU usa ge, between 0 and 100%."
2587 },
2588 "network": {
2589 "type": "number",
2590 "description": "The most recent measurement of the process's network usage, in kB/s."
2591 },
2592 "privateMemory": {
2593 "type": "number",
2594 "description": "The most recent measurement of the process's private memory usage, in bytes."
2595 },
2596 "sharedMemory": {
2597 "type": "number",
2598 "description": "The most recent measurement of the process's shared memory usage, in bytes."
2578 } 2599 }
2579 } 2600 }
2580 } 2601 }
2581 ], 2602 ],
2582 "functions": [ 2603 "functions": [
2583 { 2604 {
2584 "name": "getProcessForTab", 2605 "name": "getProcessIdForTab",
2585 "type": "function", 2606 "type": "function",
2586 "description": "Returns details about the current renderer process of th e specified tab.", 2607 "description": "Returns the ID of the renderer process for the specified tab.",
2587 "parameters": [ 2608 "parameters": [
2588 { 2609 {
2589 "name": "tabId", 2610 "name": "tabId",
2590 "type": "integer", 2611 "type": "integer",
2591 "minimum": 0 2612 "minimum": 0
2592 }, 2613 },
2593 { 2614 {
2594 "type": "function", 2615 "type": "function",
2595 "name": "callback", 2616 "name": "callback",
2596 "parameters": [ 2617 "parameters": [
2597 { 2618 {
2598 "name": "process", 2619 "name": "processId",
2599 "$ref": "Process", 2620 "type": "integer",
2600 "description": "Details about the tab's process." 2621 "description": "Process ID of the tab's renderer process."
2601 } 2622 }
2602 ] 2623 ]
2603 } 2624 }
2604 ] 2625 ]
2605 } 2626 }
2606 ], 2627 ],
2607 "events": [] 2628 "events": [
2629 {
2630 "name": "onUpdated",
2631 "type": "function",
2632 "description": "Fires each time the Task Manager updates its process sta tistics, providing the dictionary of updated Process objects, indexed by process ID.",
2633 "parameters": [
2634 {
2635 "name": "processes",
2636 "type": "object",
2637 "properties": {},
2638 "additionalProperties": { "type": "any" }
2639 }
2640 ]
2641 }
2642 ]
2608 }, 2643 },
2609 { 2644 {
2610 "namespace": "contextMenus", 2645 "namespace": "contextMenus",
2611 "types": [ 2646 "types": [
2612 { 2647 {
2613 "id": "OnClickData", 2648 "id": "OnClickData",
2614 "type": "object", 2649 "type": "object",
2615 "description": "Information sent when a context menu item is clicked.", 2650 "description": "Information sent when a context menu item is clicked.",
2616 "properties": { 2651 "properties": {
2617 "menuItemId": { 2652 "menuItemId": {
(...skipping 1523 matching lines...) Expand 10 before | Expand all | Expand 10 after
4141 "name": "setStoreLogin", 4176 "name": "setStoreLogin",
4142 "description": "Set a preference value with the store login.", 4177 "description": "Set a preference value with the store login.",
4143 "parameters": [ 4178 "parameters": [
4144 { "name": "login", "type": "string" }, 4179 { "name": "login", "type": "string" },
4145 { "name": "callback", "type": "function", "optional": "true" } 4180 { "name": "callback", "type": "function", "optional": "true" }
4146 ] 4181 ]
4147 } 4182 }
4148 ] 4183 ]
4149 } 4184 }
4150 ] 4185 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698