| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 // called), returns it. | 92 // called), returns it. |
| 93 // - Otherwise, returns -1. | 93 // - Otherwise, returns -1. |
| 94 long long totalBytes() const { return m_totalBytes; } | 94 long long totalBytes() const { return m_totalBytes; } |
| 95 | 95 |
| 96 FileError::ErrorCode errorCode() const { return m_errorCode; } | 96 FileError::ErrorCode errorCode() const { return m_errorCode; } |
| 97 | 97 |
| 98 void setEncoding(const String&); | 98 void setEncoding(const String&); |
| 99 void setDataType(const String& dataType) { m_dataType = dataType; } | 99 void setDataType(const String& dataType) { m_dataType = dataType; } |
| 100 | 100 |
| 101 private: | 101 private: |
| 102 void startInternal(ExecutionContext*, const Stream*, PassRefPtr<BlobDataHand
le>); | 102 void startInternal(ExecutionContext&, const Stream*, PassRefPtr<BlobDataHand
le>); |
| 103 void terminate(); | 103 void terminate(); |
| 104 void cleanup(); | 104 void cleanup(); |
| 105 | 105 |
| 106 void failed(FileError::ErrorCode); | 106 void failed(FileError::ErrorCode); |
| 107 void convertToText(); | 107 void convertToText(); |
| 108 void convertToDataURL(); | 108 void convertToDataURL(); |
| 109 | 109 |
| 110 static FileError::ErrorCode httpStatusCodeToErrorCode(int); | 110 static FileError::ErrorCode httpStatusCodeToErrorCode(int); |
| 111 | 111 |
| 112 ReadType m_readType; | 112 ReadType m_readType; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 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 |