Index: third_party/WebKit/Source/core/inspector/protocol/IO.json |
diff --git a/third_party/WebKit/Source/core/inspector/protocol/IO.json b/third_party/WebKit/Source/core/inspector/protocol/IO.json |
new file mode 100644 |
index 0000000000000000000000000000000000000000..cfd4288d87e3679dd7b559e7da5c685baf53a9d2 |
--- /dev/null |
+++ b/third_party/WebKit/Source/core/inspector/protocol/IO.json |
@@ -0,0 +1,70 @@ |
+{ |
+ "domain": "IO", |
+ "version": { |
+ "major": "1", |
+ "minor": "1" |
+ }, |
+ "description": "Input/Output operations for streams produced by DevTools.", |
+ "hidden": true, |
+ "types": [ |
+ { |
+ "id": "StreamHandle", |
+ "type": "string" |
+ } |
+ ], |
+ "commands": [ |
+ { |
+ "name": "read", |
+ "description": "Read a chunk of the stream", |
+ "async": true, |
+ "parameters": [ |
+ { |
+ "name": "handle", |
+ "$ref": "StreamHandle", |
+ "description": "Handle of the stream to read." |
+ }, |
+ { |
+ "name": "offset", |
+ "type": "integer", |
+ "optional": true, |
+ "description": "Seek to the specified offset before reading (if not specificed, proceed with offset following the last read)." |
+ }, |
+ { |
+ "name": "size", |
+ "type": "integer", |
+ "optional": true, |
+ "description": "Maximum number of bytes to read (left upon the agent discretion if not specified)." |
+ } |
+ ], |
+ "returns": [ |
+ { |
+ "name": "data", |
+ "type": "string", |
+ "description": "Data that were read." |
+ }, |
+ { |
+ "name": "eof", |
+ "type": "boolean", |
+ "description": "Set if the end-of-file condition occured while reading." |
+ } |
+ ], |
+ "handlers": [ |
+ "browser" |
+ ] |
+ }, |
+ { |
+ "name": "close", |
+ "description": "Close the stream, discard any temporary backing storage.", |
+ "parameters": [ |
+ { |
+ "name": "handle", |
+ "$ref": "StreamHandle", |
+ "description": "Handle of the stream to close." |
+ } |
+ ], |
+ "handlers": [ |
+ "browser" |
+ ] |
+ } |
+ ] |
+} |