| 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 // - Otherwise, returns -1. | 100 // - Otherwise, returns -1. |
| 101 long long totalBytes() const { return m_totalBytes; } | 101 long long totalBytes() const { return m_totalBytes; } |
| 102 | 102 |
| 103 FileError::ErrorCode errorCode() const { return m_errorCode; } | 103 FileError::ErrorCode errorCode() const { return m_errorCode; } |
| 104 | 104 |
| 105 void setEncoding(const String&); | 105 void setEncoding(const String&); |
| 106 void setDataType(const String& dataType) { m_dataType = dataType; } | 106 void setDataType(const String& dataType) { m_dataType = dataType; } |
| 107 | 107 |
| 108 private: | 108 private: |
| 109 void startInternal(ExecutionContext&, const Stream*, PassRefPtr<BlobDataHand
le>); | 109 void startInternal(ExecutionContext&, const Stream*, PassRefPtr<BlobDataHand
le>); |
| 110 void terminate(); | |
| 111 void cleanup(); | 110 void cleanup(); |
| 112 | 111 |
| 113 void failed(FileError::ErrorCode); | 112 void failed(FileError::ErrorCode); |
| 114 void convertToText(); | 113 void convertToText(); |
| 115 void convertToDataURL(); | 114 void convertToDataURL(); |
| 116 | 115 |
| 117 static FileError::ErrorCode httpStatusCodeToErrorCode(int); | 116 static FileError::ErrorCode httpStatusCodeToErrorCode(int); |
| 118 | 117 |
| 119 ReadType m_readType; | 118 ReadType m_readType; |
| 120 FileReaderLoaderClient* m_client; | 119 FileReaderLoaderClient* m_client; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 145 bool m_hasRange; | 144 bool m_hasRange; |
| 146 unsigned m_rangeStart; | 145 unsigned m_rangeStart; |
| 147 unsigned m_rangeEnd; | 146 unsigned m_rangeEnd; |
| 148 | 147 |
| 149 FileError::ErrorCode m_errorCode; | 148 FileError::ErrorCode m_errorCode; |
| 150 }; | 149 }; |
| 151 | 150 |
| 152 } // namespace blink | 151 } // namespace blink |
| 153 | 152 |
| 154 #endif // FileReaderLoader_h | 153 #endif // FileReaderLoader_h |
| OLD | NEW |