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

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

Issue 23992003: blob hacking webcore style (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
« no previous file with comments | « Source/core/fileapi/FileReader.cpp ('k') | Source/core/fileapi/FileReaderLoader.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/fileapi/FileReaderLoader.h
diff --git a/Source/core/fileapi/FileReaderLoader.h b/Source/core/fileapi/FileReaderLoader.h
index 4a61392b2f49055ff8329079c5d49013a87f3983..627dd79cef3a8ef10bcddd9480994c68eb437de5 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 ExecutionContext;
class Stream;
@@ -62,7 +62,7 @@ public:
FileReaderLoader(ReadType, FileReaderLoaderClient*);
~FileReaderLoader();
- void start(ExecutionContext*, const Blob&);
+ void start(ExecutionContext*, PassRefPtr<BlobDataHandle>);
void start(ExecutionContext*, 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(ExecutionContext*, const KURL&);
+ void startInternal(ExecutionContext*, 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;
« no previous file with comments | « Source/core/fileapi/FileReader.cpp ('k') | Source/core/fileapi/FileReaderLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698