| OLD | NEW |
| 1 // Copyright 2017 The Chromium OS Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef COMPRESSOR_STREAM_H_ | 5 #ifndef COMPRESSOR_STREAM_H_ |
| 6 #define COMPRESSOR_STREAM_H_ | 6 #define COMPRESSOR_STREAM_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 // A IO class that reads and writes data from and to files through JavaScript. | 10 // A IO class that reads and writes data from and to files through JavaScript. |
| 11 // Currently, Read() and Write() methods are not called at the same time. | 11 // Currently, Read() and Write() methods are not called at the same time. |
| (...skipping 27 matching lines...) Expand all Loading... |
| 39 | 39 |
| 40 // Called when read file chunk done response arrives from JavaScript. Copies | 40 // Called when read file chunk done response arrives from JavaScript. Copies |
| 41 // the binary data in the given buffer to destination_buffer_ and Sends a | 41 // the binary data in the given buffer to destination_buffer_ and Sends a |
| 42 // signal to invoke Read function in another thread again. buffer must not be | 42 // signal to invoke Read function in another thread again. buffer must not be |
| 43 // const because buffer.Map() and buffer.Unmap() can not be called with const. | 43 // const because buffer.Map() and buffer.Unmap() can not be called with const. |
| 44 virtual int64_t ReadFileChunkDone(int64_t read_bytes, | 44 virtual int64_t ReadFileChunkDone(int64_t read_bytes, |
| 45 pp::VarArrayBuffer* buffer) = 0; | 45 pp::VarArrayBuffer* buffer) = 0; |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 #endif // COMPRESSOR_STREAM_H_ | 48 #endif // COMPRESSOR_STREAM_H_ |
| OLD | NEW |