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

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

Issue 10832191: Major revision of page cycler UI. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Next round of fixes, per jyasskin's comments Created 8 years, 4 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
OLDNEW
1 [ 1 [
2 { 2 {
3 "namespace": "experimental.record", 3 "namespace": "experimental.record",
4 "types": [ 4 "types": [
5 { 5 {
6 "id": "SessionDetails", 6 "id": "SessionDetails",
7 "type": "object", 7 "type": "object",
8 "description": "", 8 "description": "",
9 "properties": { 9 "properties": {
10 "extensionPath": {"type": "string", "optional": true, "description": " A path to an extension to run in the session. Should be an unpacked extension."} 10 "extensionPath": {
11 } 11 "type": "string",
12 }, 12 "optional": true,
13 { 13 "description":
14 "id": "ReplayURLsResult", 14 "Absolute path to an unpacked extension to run in the subbrowser session."
15 "type": "object", 15 }
16 "description": "",
17 "properties": {
18 "runTime": {"type": "integer", "description": "Time in milliseconds to complete all runs."},
19 "stats": {"type": "string", "description": "Full multiline dump of out put stats."},
20 "errors": {"type": "array", "items": {"type": "string"}, "description" : "List of errors during replay."}
21 } 16 }
22 } 17 }
23 ], 18 ],
24 "functions": [ 19 "functions": [
25 { 20 {
26 "name": "captureURLs", 21 "name": "captureURLs",
27 "description": "", 22 "description": "",
28 "type": "function", 23 "type": "function",
29 "parameters": [ 24 "parameters": [
30 { 25 {
26 "type": "string",
27 "description": "Unique name of the capture.",
28 "name": "captureName"
29 },
30 {
31 "type": "array", 31 "type": "array",
32 "items": {"type": "string"}, 32 "items": {"type": "string"},
33 "description": "URL list to visit during capture.",
33 "name": "urls" 34 "name": "urls"
34 }, 35 },
35 { 36 {
36 "type": "string",
37 "name": "cacheDirectoryPath"
38 },
39 {
40 "name": "callback", 37 "name": "callback",
41 "type": "function", 38 "type": "function",
42 "description": "Called when capture has completed.", 39 "description": "Called when capture has completed.",
43 "optional": true, 40 "optional": true,
44 "parameters": [ 41 "parameters": [
45 { 42 {
46 "type": "array", 43 "type": "array",
47 "items": {"type": "string"}, 44 "items": {"type": "string"},
48 "name": "errors" 45 "name": "errors",
46 "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."
49 } 47 }
50 ] 48 ]
51 } 49 }
52 ] 50 ]
53 }, 51 },
54 { 52 {
55 "name": "replayURLs", 53 "name": "replayURLs",
56 "description": "", 54 "description": "",
57 "type": "function", 55 "type": "function",
58 "parameters": [ 56 "parameters": [
59 { 57 {
60 "type": "array",
61 "items": {"type": "string"},
62 "name": "urls"
63 },
64 {
65 "type": "string", 58 "type": "string",
66 "name": "captureDirectoryPath" 59 "name": "captureName",
60 "description": "Unique name of capture. Use to determine cache."
67 }, 61 },
68 { 62 {
69 "type": "integer", 63 "type": "integer",
70 "name": "repeatCount", 64 "name": "repeatCount",
71 "minimum": 0, 65 "minimum": 0,
72 "maximum": 100 66 "maximum": 100
73 }, 67 },
74 { 68 {
75 "$ref": "SessionDetails", 69 "$ref": "SessionDetails",
76 "name": "details", 70 "name": "details",
77 "optional": true 71 "optional": true
78 }, 72 },
79 { 73 {
80 "name": "callback", 74 "name": "callback",
81 "type": "function", 75 "type": "function",
82 "description": "Called when playback has completed.", 76 "description": "Called when playback has completed.",
83 "parameters": [{"$ref": "ReplayURLsResult", "name": "result"}] 77 "parameters": [
78 {
79 "type": "number",
80 "name": "runTime",
81 "description": "Time in milliseconds to complete all runs."
82 },
83 {
84 "type": "string",
85 "name": "stats",
86 "description": "Full multiline dump of output stats, showing one statistic per line, comprising an abbreviated statistic name and its value (e.g . vmsize_f_b= 696164352 bytes for final vm size). This is ugly, and will be cha nged shortly."
87 },
88 {
89 "type": "array",
90 "name": "errors",
91 "items": {"type": "string"},
92 "description": "List of errors during replay. Presently, this s hould only be abnormal browser termination for unexpected reasons."
93 }
94 ]
84 } 95 }
85 ] 96 ]
86 } 97 }
87 ] 98 ]
88 } 99 }
89 ] 100 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698