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

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

Issue 18991017: Add Stream support to FileReaderLoader. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: tkent's comment 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
« no previous file with comments | « no previous file | 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 c4b0291553c1b6c27b52bfd60531cc29f738e2c0..1cd31b23702e94f9de08a29f636c281bcf02648f 100644
--- a/Source/core/fileapi/FileReaderLoader.h
+++ b/Source/core/fileapi/FileReaderLoader.h
@@ -43,6 +43,7 @@ namespace WebCore {
class Blob;
class FileReaderLoaderClient;
class ScriptExecutionContext;
+class Stream;
class TextResourceDecoder;
class ThreadableLoader;
@@ -61,6 +62,7 @@ public:
~FileReaderLoader();
void start(ScriptExecutionContext*, Blob*);
+ void start(ScriptExecutionContext*, const Stream&);
void cancel();
// ThreadableLoaderClient
@@ -85,6 +87,10 @@ public:
#endif // ENABLE(STREAM)
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 terminate();
void cleanup();
void failed(FileError::ErrorCode);
« no previous file with comments | « no previous file | Source/core/fileapi/FileReaderLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698