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

Unified Diff: webkit/fileapi/webfilewriter_base.h

Issue 14796018: Cleanup: Deprecate FileSystemCallbackDispatcher (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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 | « webkit/fileapi/isolated_mount_point_provider.cc ('k') | webkit/fileapi/webfilewriter_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « webkit/fileapi/isolated_mount_point_provider.cc ('k') | webkit/fileapi/webfilewriter_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698