| Index: webkit/fileapi/webfilewriter_base.h
|
| diff --git a/webkit/fileapi/webfilewriter_base.h b/webkit/fileapi/webfilewriter_base.h
|
| index 60872e29f89aa690fab2017a71ca033d97dfacb4..f7838e6d83b958fd2269ff4ad5a841649d76ae86 100644
|
| --- a/webkit/fileapi/webfilewriter_base.h
|
| +++ b/webkit/fileapi/webfilewriter_base.h
|
| @@ -30,6 +30,13 @@ class WEBKIT_STORAGE_EXPORT WebFileWriterBase
|
| virtual void cancel();
|
|
|
| protected:
|
| + // This calls DidSucceed() or DidFail() based on the value of |error_code|.
|
| + void DidFinish(base::PlatformFileError error_code);
|
| +
|
| + void DidWrite(int64 bytes, bool complete);
|
| + void DidSucceed();
|
| + void DidFail(base::PlatformFileError error_code);
|
| +
|
| // Derived classes must provide these methods to asynchronously perform
|
| // the requested operation, and they must call the appropiate DidSomething
|
| // method upon completion and as progress is made in the Write case.
|
| @@ -38,10 +45,6 @@ class WEBKIT_STORAGE_EXPORT WebFileWriterBase
|
| int64 offset) = 0;
|
| virtual void DoCancel() = 0;
|
|
|
| - void DidSucceed();
|
| - void DidFail(base::PlatformFileError error_code);
|
| - void DidWrite(int64 bytes, bool complete);
|
| -
|
| private:
|
| enum OperationType {
|
| kOperationNone,
|
|
|