diff options
Diffstat (limited to 'WebCore/fileapi/FileWriter.h')
-rw-r--r-- | WebCore/fileapi/FileWriter.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/WebCore/fileapi/FileWriter.h b/WebCore/fileapi/FileWriter.h index 0737085..4bb91ef 100644 --- a/WebCore/fileapi/FileWriter.h +++ b/WebCore/fileapi/FileWriter.h @@ -34,8 +34,8 @@ #if ENABLE(FILE_SYSTEM) #include "ActiveDOMObject.h" +#include "AsyncFileWriterClient.h" #include "EventTarget.h" -#include "FileWriterClient.h" #include <wtf/OwnPtr.h> #include <wtf/PassOwnPtr.h> #include <wtf/PassRefPtr.h> @@ -49,7 +49,7 @@ class Blob; class FileError; class ScriptExecutionContext; -class FileWriter : public RefCounted<FileWriter>, public ActiveDOMObject, public EventTarget, public FileWriterClient { +class FileWriter : public RefCounted<FileWriter>, public ActiveDOMObject, public EventTarget, public AsyncFileWriterClient { public: static PassRefPtr<FileWriter> create(ScriptExecutionContext* context) { @@ -74,9 +74,9 @@ public: long long position() const { return m_position; } long long length() const { return m_length; } - // FileWriterClient + // AsyncFileWriterClient void didWrite(long long bytes, bool complete); - void didTruncate(long long length); + void didTruncate(); void didFail(ExceptionCode ec); // ActiveDOMObject @@ -121,6 +121,7 @@ private: long long m_length; long long m_bytesWritten; long long m_bytesToWrite; + long long m_truncateLength; }; } // namespace WebCore |