| 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  115  |  115  | 
|  116     static FileError::ErrorCode httpStatusCodeToErrorCode(int); |  116     static FileError::ErrorCode httpStatusCodeToErrorCode(int); | 
|  117  |  117  | 
|  118     ReadType m_readType; |  118     ReadType m_readType; | 
|  119     FileReaderLoaderClient* m_client; |  119     FileReaderLoaderClient* m_client; | 
|  120     WTF::TextEncoding m_encoding; |  120     WTF::TextEncoding m_encoding; | 
|  121     String m_dataType; |  121     String m_dataType; | 
|  122  |  122  | 
|  123     KURL m_urlForReading; |  123     KURL m_urlForReading; | 
|  124     bool m_urlForReadingIsStream; |  124     bool m_urlForReadingIsStream; | 
|  125     RefPtr<ThreadableLoader> m_loader; |  125     OwnPtr<ThreadableLoader> m_loader; | 
|  126  |  126  | 
|  127     OwnPtr<ArrayBufferBuilder> m_rawData; |  127     OwnPtr<ArrayBufferBuilder> m_rawData; | 
|  128     bool m_isRawDataConverted; |  128     bool m_isRawDataConverted; | 
|  129  |  129  | 
|  130     String m_stringResult; |  130     String m_stringResult; | 
|  131  |  131  | 
|  132     // The decoder used to decode the text data. |  132     // The decoder used to decode the text data. | 
|  133     OwnPtr<TextResourceDecoder> m_decoder; |  133     OwnPtr<TextResourceDecoder> m_decoder; | 
|  134  |  134  | 
|  135     bool m_finishedLoading; |  135     bool m_finishedLoading; | 
|  136     long long m_bytesLoaded; |  136     long long m_bytesLoaded; | 
|  137     // If the total size of the resource is unknown, m_totalBytes is set to -1 |  137     // If the total size of the resource is unknown, m_totalBytes is set to -1 | 
|  138     // until completion of loading, and the buffer for receiving data is set to |  138     // until completion of loading, and the buffer for receiving data is set to | 
|  139     // dynamically grow. Otherwise, m_totalBytes is set to the total size and |  139     // dynamically grow. Otherwise, m_totalBytes is set to the total size and | 
|  140     // the buffer for receiving data of m_totalBytes is allocated and never grow |  140     // the buffer for receiving data of m_totalBytes is allocated and never grow | 
|  141     // even when extra data is appeneded. |  141     // even when extra data is appeneded. | 
|  142     long long m_totalBytes; |  142     long long m_totalBytes; | 
|  143  |  143  | 
|  144     bool m_hasRange; |  144     bool m_hasRange; | 
|  145     unsigned m_rangeStart; |  145     unsigned m_rangeStart; | 
|  146     unsigned m_rangeEnd; |  146     unsigned m_rangeEnd; | 
|  147  |  147  | 
|  148     FileError::ErrorCode m_errorCode; |  148     FileError::ErrorCode m_errorCode; | 
|  149 }; |  149 }; | 
|  150  |  150  | 
|  151 } // namespace blink |  151 } // namespace blink | 
|  152  |  152  | 
|  153 #endif // FileReaderLoader_h |  153 #endif // FileReaderLoader_h | 
| OLD | NEW |