Extract SIGPIPE ignoring code to a common place.
[chromium-blink-merge.git] / chrome / common / extensions / api / experimental_record.json
blobce55501ef020034ff2929fe96d75422452166960
2   {
3     "namespace": "experimental.record",
4     "types": [
5       {
6         "id": "SessionDetails",
7         "type": "object",
8         "description": "",
9         "properties": {
10           "extensionPath": {
11             "type": "string",
12             "optional": true,
13             "description": 
14                 "Absolute path to an unpacked extension to run in the subbrowser session."
15           }
16         }
17       },
18       {
19         "id": "ReplayURLsResult",
20         "type": "object",
21         "description": "Return value for Replay callback",
22         "properties": {
23           "runTime": {
24             "type": "number",
25             "description": "Time in milliseconds to complete all runs."
26            },
27            "stats": {
28              "type": "string",
29              "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 changed shortly."
30           },
31           "errors": {
32             "type": "array",
33             "items": {"type": "string"},
34             "description": "List of errors during replay.  Presently, this should only be abnormal browser termination for unexpected reasons."
35           }
36         }
37       }
38     ],
39     "functions": [
40       {
41         "name": "captureURLs",
42         "description": "",
43         "type": "function",
44         "parameters": [
45           {
46             "type": "string",
47             "description": "Unique name of the capture.",
48             "name": "captureName"
49           },
50           {
51             "type": "array",
52             "items": {"type": "string"},
53             "description": "URL list to visit during capture.",
54             "name": "urls"
55           },
56           {
57             "name": "callback",
58             "type": "function",
59             "description": "Called when capture has completed.",
60             "optional": true,
61             "parameters": [
62               {
63                 "type": "array",
64                 "items": {"type": "string"},
65                 "name": "errors",
66                 "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."
67               }
68             ]
69           }
70         ]
71       },
72       {
73         "name": "replayURLs",
74         "description": "",
75         "type": "function",
76         "parameters": [
77           {
78             "type": "string",
79             "name": "captureName",
80             "description": "Unique name of capture.  Use to determine cache."
81           },
82           {
83             "type": "integer", 
84             "name": "repeatCount",
85             "minimum": 0,
86             "maximum": 100
87           },
88           {
89             "$ref": "SessionDetails",
90             "name": "details",
91             "optional": true
92           },
93           {
94             "name": "callback",
95             "type": "function",
96             "optional": true,
97             "description": "Called when playback has completed.",
98             "parameters": [
99               {
100                 "$ref": "ReplayURLsResult",
101                 "name": "result"
102               }
103             ]
104           }
105         ]
106       }
107     ]
108   }