| Index: Source/core/fileapi/FileReader.h
|
| diff --git a/Source/core/fileapi/FileReader.h b/Source/core/fileapi/FileReader.h
|
| index 27a4a2bbb5f10fed5195fd6a61014b6ef9a61144..f96edd57eb9ebfd8e33cbd2cb0d7c8e47164909e 100644
|
| --- a/Source/core/fileapi/FileReader.h
|
| +++ b/Source/core/fileapi/FileReader.h
|
| @@ -37,13 +37,13 @@
|
| #include "core/fileapi/FileError.h"
|
| #include "core/fileapi/FileReaderLoader.h"
|
| #include "core/fileapi/FileReaderLoaderClient.h"
|
| +#include "core/fileapi/Stream.h"
|
| #include "wtf/Forward.h"
|
| #include "wtf/RefCounted.h"
|
| #include "wtf/text/WTFString.h"
|
|
|
| namespace WebCore {
|
|
|
| -class Blob;
|
| class ScriptExecutionContext;
|
|
|
| typedef int ExceptionCode;
|
| @@ -65,6 +65,7 @@ public:
|
| void readAsText(Blob*, const String& encoding, ExceptionCode&);
|
| void readAsText(Blob*, ExceptionCode&);
|
| void readAsDataURL(Blob*, ExceptionCode&);
|
| + void readAsArrayBuffer(Stream*, ExceptionCode&);
|
| void abort();
|
|
|
| void doAbort();
|
| @@ -109,7 +110,7 @@ private:
|
| virtual EventTargetData* ensureEventTargetData() { return &m_eventTargetData; }
|
|
|
| void terminate();
|
| - void readInternal(Blob*, FileReaderLoader::ReadType, ExceptionCode&);
|
| + void readInternal(Blob*, Stream*, FileReaderLoader::ReadType, ExceptionCode&);
|
| void fireErrorEvent(int httpStatusCode);
|
| void fireEvent(const AtomicString& type);
|
|
|
| @@ -118,6 +119,7 @@ private:
|
| EventTargetData m_eventTargetData;
|
|
|
| RefPtr<Blob> m_blob;
|
| + RefPtr<Stream> m_stream;
|
| FileReaderLoader::ReadType m_readType;
|
| String m_encoding;
|
|
|
|
|