| OLD | NEW |
| (Empty) |
| 1 [ | |
| 2 { | |
| 3 "namespace": "experimental.record", | |
| 4 "description": "The <code>chrome.experimental.record</code> API.", | |
| 5 "types": [ | |
| 6 { | |
| 7 "id": "SessionDetails", | |
| 8 "type": "object", | |
| 9 "description": "", | |
| 10 "properties": { | |
| 11 "extensionPath": { | |
| 12 "type": "string", | |
| 13 "optional": true, | |
| 14 "description": | |
| 15 "Absolute path to an unpacked extension to run in the subbrowser
session." | |
| 16 } | |
| 17 } | |
| 18 }, | |
| 19 { | |
| 20 "id": "ReplayURLsResult", | |
| 21 "type": "object", | |
| 22 "description": "Return value for Replay callback", | |
| 23 "properties": { | |
| 24 "runTime": { | |
| 25 "type": "number", | |
| 26 "description": "Time in milliseconds to complete all runs." | |
| 27 }, | |
| 28 "stats": { | |
| 29 "type": "string", | |
| 30 "description": "Full multiline dump of output stats, showing one st
atistic per line, comprising an abbreviated statistic name and its value (e.g. v
msize_f_b= 696164352 bytes for final vm size). This is ugly, and will be change
d shortly." | |
| 31 }, | |
| 32 "errors": { | |
| 33 "type": "array", | |
| 34 "items": {"type": "string"}, | |
| 35 "description": "List of errors during replay. Presently, this shoul
d only be abnormal browser termination for unexpected reasons." | |
| 36 } | |
| 37 } | |
| 38 } | |
| 39 ], | |
| 40 "functions": [ | |
| 41 { | |
| 42 "name": "captureURLs", | |
| 43 "description": "", | |
| 44 "type": "function", | |
| 45 "parameters": [ | |
| 46 { | |
| 47 "type": "string", | |
| 48 "description": "Unique name of the capture.", | |
| 49 "name": "captureName" | |
| 50 }, | |
| 51 { | |
| 52 "type": "array", | |
| 53 "items": {"type": "string"}, | |
| 54 "description": "URL list to visit during capture.", | |
| 55 "name": "urls" | |
| 56 }, | |
| 57 { | |
| 58 "name": "callback", | |
| 59 "type": "function", | |
| 60 "description": "Called when capture has completed.", | |
| 61 "optional": true, | |
| 62 "parameters": [ | |
| 63 { | |
| 64 "type": "array", | |
| 65 "items": {"type": "string"}, | |
| 66 "name": "errors", | |
| 67 "description": "List of any URLs that failed to load, one error
per textline, along with failure reason (e.g. unknown domain). Also may include
general abnormal-exit message if the subbrowser run failed for other reasons." | |
| 68 } | |
| 69 ] | |
| 70 } | |
| 71 ] | |
| 72 }, | |
| 73 { | |
| 74 "name": "replayURLs", | |
| 75 "description": "", | |
| 76 "type": "function", | |
| 77 "parameters": [ | |
| 78 { | |
| 79 "type": "string", | |
| 80 "name": "captureName", | |
| 81 "description": "Unique name of capture. Use to determine cache." | |
| 82 }, | |
| 83 { | |
| 84 "type": "integer", | |
| 85 "name": "repeatCount", | |
| 86 "minimum": 0, | |
| 87 "maximum": 100 | |
| 88 }, | |
| 89 { | |
| 90 "$ref": "SessionDetails", | |
| 91 "name": "details", | |
| 92 "optional": true | |
| 93 }, | |
| 94 { | |
| 95 "name": "callback", | |
| 96 "type": "function", | |
| 97 "optional": true, | |
| 98 "description": "Called when playback has completed.", | |
| 99 "parameters": [ | |
| 100 { | |
| 101 "$ref": "ReplayURLsResult", | |
| 102 "name": "result" | |
| 103 } | |
| 104 ] | |
| 105 } | |
| 106 ] | |
| 107 } | |
| 108 ] | |
| 109 } | |
| 110 ] | |
| OLD | NEW |