Chromium Code Reviews| Index: chrome/common/extensions/api/experimental_record.json |
| diff --git a/chrome/common/extensions/api/experimental_record.json b/chrome/common/extensions/api/experimental_record.json |
| index 1a11e721e1be930c1677064d4d2dc58c7fb98424..0da7346ea54e05e82e245500d15b7836e8b8e554 100644 |
| --- a/chrome/common/extensions/api/experimental_record.json |
| +++ b/chrome/common/extensions/api/experimental_record.json |
| @@ -7,17 +7,12 @@ |
| "type": "object", |
| "description": "", |
| "properties": { |
| - "extensionPath": {"type": "string", "optional": true, "description": "A path to an extension to run in the session. Should be an unpacked extension."} |
| - } |
| - }, |
| - { |
| - "id": "ReplayURLsResult", |
| - "type": "object", |
| - "description": "", |
| - "properties": { |
| - "runTime": {"type": "integer", "description": "Time in milliseconds to complete all runs."}, |
| - "stats": {"type": "string", "description": "Full multiline dump of output stats."}, |
| - "errors": {"type": "array", "items": {"type": "string"}, "description": "List of errors during replay."} |
| + "extensionPath": { |
| + "type": "string", |
| + "optional": true, |
| + "description": |
| + "Path to an unpacked extension to run in the session." |
|
Jeffrey Yasskin
2012/08/09 19:27:04
By path, you mean something like "/home/username/f
clintstaley
2012/08/10 00:33:13
Yes, and no, respectively. Or at least, no becaus
|
| + } |
| } |
| } |
| ], |
| @@ -28,15 +23,17 @@ |
| "type": "function", |
| "parameters": [ |
| { |
| + "type": "string", |
| + "description": "Unique name of the capture.", |
|
Jeffrey Yasskin
2012/08/09 19:27:04
How should extensions allocate these names? What h
clintstaley
2012/08/10 00:33:13
These are capture names, and their uniqueness will
Jeffrey Yasskin
2012/08/15 01:03:59
What do you mean by "enforced"? That is, what's th
Jeffrey Yasskin
2012/08/16 18:31:51
Ping. Remember to check for comment replies on mor
clintstaley
2012/08/17 04:12:24
Apologies for that. I've been looking at the CL's
Jeffrey Yasskin
2012/08/17 19:32:14
SGTM.
|
| + "name": "captureName" |
| + }, |
| + { |
| "type": "array", |
| "items": {"type": "string"}, |
| + "description": "URL list to visit during capture.", |
| "name": "urls" |
| }, |
| { |
| - "type": "string", |
| - "name": "cacheDirectoryPath" |
| - }, |
| - { |
| "name": "callback", |
| "type": "function", |
| "description": "Called when capture has completed.", |
| @@ -46,6 +43,11 @@ |
| "type": "array", |
| "items": {"type": "string"}, |
| "name": "errors" |
| + }, |
| + { |
| + "type": "string", |
| + "name": "cacheDirectory", |
| + "description": "Full path to cache directory used for capture" |
|
Jeffrey Yasskin
2012/08/09 19:27:04
Is there a security risk here? What if the directo
clintstaley
2012/08/10 00:33:13
Hmm. Your comment prompts me to think a little mo
|
| } |
| ] |
| } |
| @@ -57,13 +59,9 @@ |
| "type": "function", |
| "parameters": [ |
| { |
| - "type": "array", |
| - "items": {"type": "string"}, |
| - "name": "urls" |
| - }, |
| - { |
| "type": "string", |
| - "name": "captureDirectoryPath" |
| + "name": "captureName", |
| + "description": "Unique name of capture. Use to determine cache." |
|
Jeffrey Yasskin
2012/08/09 19:27:04
How is it used to determine the cache? Presumably
clintstaley
2012/08/10 00:33:13
Such an approach was considered (returning a zip o
Jeffrey Yasskin
2012/08/15 01:03:59
Can the extension get at the storage directory usi
clintstaley
2012/08/17 04:12:24
Right, which makes the other stuff moot. I guess
|
| }, |
| { |
| "type": "integer", |
| @@ -80,7 +78,24 @@ |
| "name": "callback", |
| "type": "function", |
| "description": "Called when playback has completed.", |
| - "parameters": [{"$ref": "ReplayURLsResult", "name": "result"}] |
| + "parameters": [ |
| + { |
| + "type": "integer", |
| + "name": "runTime", |
| + "description": "Time in milliseconds to complete all runs." |
|
Jeffrey Yasskin
2012/08/09 19:27:04
I saw there's a new performance-measuring API that
clintstaley
2012/08/10 00:33:13
Given the size of the times we're getting, not sur
Jeffrey Yasskin
2012/08/15 01:03:59
It almost certainly won't be needed for the next c
clintstaley
2012/08/17 04:12:24
Done.
|
| + }, |
| + { |
| + "type": "string", |
| + "name": "stats", |
| + "description": "Full multiline dump of output stats." |
|
Jeffrey Yasskin
2012/08/09 19:27:04
In what format?
clintstaley
2012/08/17 04:12:24
Here again, is something that will be refined in l
Jeffrey Yasskin
2012/08/17 19:32:14
That's fine. Having a precise format all along wil
clintstaley
2012/08/20 23:17:06
I wouldn't bet against you. That's almost certain
|
| + }, |
| + { |
| + "type": "array", |
| + "name": "errors", |
| + "items": {"type": "string"}, |
| + "description": "List of errors during replay." |
|
Jeffrey Yasskin
2012/08/09 19:27:04
What do errors look like? What kinds of errors sho
clintstaley
2012/08/10 00:33:13
I can show you some examples. But I think they'd
Jeffrey Yasskin
2012/08/15 01:03:59
Yes, I think so. Remember that this is all program
clintstaley
2012/08/17 04:12:24
Especially once the capture name is removed, there
|
| + } |
| + ] |
| } |
| ] |
| } |