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

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

Issue 26435003: WebCore blob hacking (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 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/FileReaderLoader.h
diff --git a/Source/core/fileapi/FileReaderLoader.h b/Source/core/fileapi/FileReaderLoader.h
index 1373afddbc8581fe8da00acd7bbe739ba3e379eb..98e3489686a0d76a56b7a1b0bde81e9cc1a8b087 100644
--- a/Source/core/fileapi/FileReaderLoader.h
+++ b/Source/core/fileapi/FileReaderLoader.h
@@ -40,7 +40,7 @@
namespace WebCore {
-class Blob;
+class BlobDataHandle;
class FileReaderLoaderClient;
class ScriptExecutionContext;
class Stream;
@@ -62,7 +62,7 @@ public:
FileReaderLoader(ReadType, FileReaderLoaderClient*);
~FileReaderLoader();
- void start(ScriptExecutionContext*, const Blob&);
+ void start(ScriptExecutionContext*, PassRefPtr<BlobDataHandle>);
void start(ScriptExecutionContext*, const Stream&, unsigned readSize);
void cancel();
@@ -82,10 +82,7 @@ public:
void setDataType(const String& dataType) { m_dataType = dataType; }
private:
- // We have start() methods for Blob and Stream instead of exposing this
- // method so that users don't misuse this by calling with non Blob/Stream
- // URL.
- void startForURL(ScriptExecutionContext*, const KURL&);
+ void startInternal(ScriptExecutionContext*, const Stream*, PassRefPtr<BlobDataHandle>);
void terminate();
void cleanup();
void failed(FileError::ErrorCode);
@@ -107,7 +104,6 @@ private:
bool m_isRawDataConverted;
String m_stringResult;
- RefPtr<Blob> m_blobResult;
// The decoder used to decode the text data.
RefPtr<TextResourceDecoder> m_decoder;

Powered by Google App Engine
This is Rietveld 408576698