| OLD | NEW |
| 1 // Copyright 2017 The Chromium OS Authors. All rights reserved. | 1 // Copyright 2017 The Chromium OS 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. |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 // Called when read file chunk done response arrives from JavaScript. Copies | 34 // Called when read file chunk done response arrives from JavaScript. Copies |
| 35 // the binary data in the given buffer to destination_buffer_ and Sends a | 35 // the binary data in the given buffer to destination_buffer_ and Sends a |
| 36 // signal to invoke Read function in another thread again. buffer must not be | 36 // signal to invoke Read function in another thread again. buffer must not be |
| 37 // const because buffer.Map() and buffer.Unmap() can not be called with const. | 37 // const because buffer.Map() and buffer.Unmap() can not be called with const. |
| 38 virtual void ReadFileChunkDone(int64_t read_bytes, | 38 virtual void ReadFileChunkDone(int64_t read_bytes, |
| 39 pp::VarArrayBuffer* buffer) = 0; | 39 pp::VarArrayBuffer* buffer) = 0; |
| 40 }; | 40 }; |
| 41 | 41 |
| 42 #endif // COMPRESSOR_STREAM_H_ | 42 #endif // COMPRESSOR_STREAM_H_ |
| OLD | NEW |