Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(785)

Unified Diff: Source/core/fileapi/FileReader.h

Issue 18635004: [Not ready for review] Add Streams API support to FileReader Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
« no previous file with comments | « LayoutTests/http/tests/xmlhttprequest/response-stream-partial-chunk-expected.txt ('k') | Source/core/fileapi/FileReader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698