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

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

Issue 1179733009: Always enable Oilpan for EventSource. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: msvc compile fix Created 5 years, 6 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/FileReaderSync.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 b58df20be210d1ba3d6ff48aab7bfdea5d15a4c5..5176b4c74c5dc21290548325a2780143d5a95789 100644
--- a/Source/core/fileapi/FileReaderLoader.h
+++ b/Source/core/fileapi/FileReaderLoader.h
@@ -52,6 +52,7 @@ class TextResourceDecoder;
class ThreadableLoader;
class CORE_EXPORT FileReaderLoader final : public ThreadableLoaderClient {
+ WTF_MAKE_FAST_ALLOCATED(FileReaderLoader);
public:
enum ReadType {
ReadAsArrayBuffer,
@@ -62,6 +63,11 @@ public:
};
// If client is given, do the loading asynchronously. Otherwise, load synchronously.
+ static PassOwnPtr<FileReaderLoader> create(ReadType readType, FileReaderLoaderClient* client)
+ {
+ return adoptPtr(new FileReaderLoader(readType, client));
+ }
+
FileReaderLoader(ReadType, FileReaderLoaderClient*);
virtual ~FileReaderLoader();
« no previous file with comments | « Source/core/fileapi/FileReader.cpp ('k') | Source/core/fileapi/FileReaderSync.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698