| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 KURL m_urlForReading; | 117 KURL m_urlForReading; |
| 118 bool m_urlForReadingIsStream; | 118 bool m_urlForReadingIsStream; |
| 119 RefPtr<ThreadableLoader> m_loader; | 119 RefPtr<ThreadableLoader> m_loader; |
| 120 | 120 |
| 121 OwnPtr<ArrayBufferBuilder> m_rawData; | 121 OwnPtr<ArrayBufferBuilder> m_rawData; |
| 122 bool m_isRawDataConverted; | 122 bool m_isRawDataConverted; |
| 123 | 123 |
| 124 String m_stringResult; | 124 String m_stringResult; |
| 125 | 125 |
| 126 // The decoder used to decode the text data. | 126 // The decoder used to decode the text data. |
| 127 RefPtr<TextResourceDecoder> m_decoder; | 127 OwnPtr<TextResourceDecoder> m_decoder; |
| 128 | 128 |
| 129 bool m_finishedLoading; | 129 bool m_finishedLoading; |
| 130 long long m_bytesLoaded; | 130 long long m_bytesLoaded; |
| 131 // If the total size of the resource is unknown, m_totalBytes is set to -1 | 131 // If the total size of the resource is unknown, m_totalBytes is set to -1 |
| 132 // until completion of loading, and the buffer for receiving data is set to | 132 // until completion of loading, and the buffer for receiving data is set to |
| 133 // dynamically grow. Otherwise, m_totalBytes is set to the total size and | 133 // dynamically grow. Otherwise, m_totalBytes is set to the total size and |
| 134 // the buffer for receiving data of m_totalBytes is allocated and never grow | 134 // the buffer for receiving data of m_totalBytes is allocated and never grow |
| 135 // even when extra data is appeneded. | 135 // even when extra data is appeneded. |
| 136 long long m_totalBytes; | 136 long long m_totalBytes; |
| 137 | 137 |
| 138 bool m_hasRange; | 138 bool m_hasRange; |
| 139 unsigned m_rangeStart; | 139 unsigned m_rangeStart; |
| 140 unsigned m_rangeEnd; | 140 unsigned m_rangeEnd; |
| 141 | 141 |
| 142 FileError::ErrorCode m_errorCode; | 142 FileError::ErrorCode m_errorCode; |
| 143 }; | 143 }; |
| 144 | 144 |
| 145 } // namespace WebCore | 145 } // namespace WebCore |
| 146 | 146 |
| 147 #endif // FileReaderLoader_h | 147 #endif // FileReaderLoader_h |
| OLD | NEW |