Chromium Code Reviews| Index: include/v8.h |
| diff --git a/include/v8.h b/include/v8.h |
| index 33179f5bf0efe00fae3cf0da9502ed2345a17268..c6a4f46c070e76cded24bb3b5a433ab770eb56a2 100644 |
| --- a/include/v8.h |
| +++ b/include/v8.h |
| @@ -3741,7 +3741,8 @@ class V8EXPORT Locker { |
| class V8EXPORT OutputStream { // NOLINT |
| public: |
| enum OutputEncoding { |
| - kAscii = 0 // 7-bit ASCII. |
| + kAscii = 0, // 7-bit ASCII. |
| + kUint32 = 1 |
|
mnaganov (inactive)
2012/04/11 14:35:40
Any particular reason for not sending this data as
|
| }; |
| enum WriteResult { |
| kContinue = 0, |
| @@ -3760,6 +3761,13 @@ class V8EXPORT OutputStream { // NOLINT |
| * will not be called in case writing was aborted. |
| */ |
| virtual WriteResult WriteAsciiChunk(char* data, int size) = 0; |
| + |
|
mnaganov (inactive)
2012/04/11 14:35:40
nit: no blank line
|
| + /** |
| + * Writes the next chunk of snapshot data into the stream. Writing |
|
mnaganov (inactive)
2012/04/11 14:35:40
Does it really write snapshot data?
|
| + * can be stopped by returning kAbort as function result. EndOfStream |
| + * will not be called in case writing was aborted. |
| + */ |
| + virtual WriteResult WriteUint32Chunk(uint32_t* data, int size) = 0; |
| }; |