| OLD | NEW |
| 1 // Copyright 2014 The Chromium OS Authors. All rights reserved. | 1 // Copyright 2014 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 VOLUME_READER_JAVSCRIPT_STREAM_H_ | 5 #ifndef VOLUME_READER_JAVSCRIPT_STREAM_H_ |
| 6 #define VOLUME_READER_JAVSCRIPT_STREAM_H_ | 6 #define VOLUME_READER_JAVSCRIPT_STREAM_H_ |
| 7 | 7 |
| 8 #include <pthread.h> | 8 #include <pthread.h> |
| 9 | 9 |
| 10 #include "archive.h" | 10 #include "archive.h" |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 | 113 |
| 114 // A pointer to first_arrray_buffer_ or second_array_buffer_. This is used in | 114 // A pointer to first_arrray_buffer_ or second_array_buffer_. This is used in |
| 115 // order to avoid an extra copy from the second buffer to the first buffer | 115 // order to avoid an extra copy from the second buffer to the first buffer |
| 116 // when data is available for VolumeReaderJavaScriptStream::Read method. | 116 // when data is available for VolumeReaderJavaScriptStream::Read method. |
| 117 // It points to the array buffer used for reading ahead when data is received | 117 // It points to the array buffer used for reading ahead when data is received |
| 118 // from JavaScript at VolumeReaderJavaScriptStream::SetBufferAndSignal. | 118 // from JavaScript at VolumeReaderJavaScriptStream::SetBufferAndSignal. |
| 119 pp::VarArrayBuffer* read_ahead_array_buffer_ptr_; | 119 pp::VarArrayBuffer* read_ahead_array_buffer_ptr_; |
| 120 }; | 120 }; |
| 121 | 121 |
| 122 #endif // VOLUME_READER_JAVSCRIPT_STREAM_H_ | 122 #endif // VOLUME_READER_JAVSCRIPT_STREAM_H_ |
| OLD | NEW |