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

Side by Side Diff: webkit/fileapi/syncable/syncable_file_system_operation.h

Issue 12051055: 2nd try: FileAPI: Split recursive remove into multiple tasks. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WEBKIT_FILEAPI_SYNCABLE_SYNCABLE_FILE_SYSTEM_OPERATION_H_ 5 #ifndef WEBKIT_FILEAPI_SYNCABLE_SYNCABLE_FILE_SYSTEM_OPERATION_H_
6 #define WEBKIT_FILEAPI_SYNCABLE_SYNCABLE_FILE_SYSTEM_OPERATION_H_ 6 #define WEBKIT_FILEAPI_SYNCABLE_SYNCABLE_FILE_SYSTEM_OPERATION_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 SyncableFileSystemOperation(FileSystemContext* file_system_context, 82 SyncableFileSystemOperation(FileSystemContext* file_system_context,
83 FileSystemOperation* file_system_operation); 83 FileSystemOperation* file_system_operation);
84 84
85 void DidFinish(base::PlatformFileError status); 85 void DidFinish(base::PlatformFileError status);
86 void DidWrite(const WriteCallback& callback, 86 void DidWrite(const WriteCallback& callback,
87 base::PlatformFileError result, 87 base::PlatformFileError result,
88 int64 bytes, 88 int64 bytes,
89 bool complete); 89 bool complete);
90 90
91 void OnCancelled(); 91 void OnCancelled();
92
93 void AbortOperation(const StatusCallback& callback, 92 void AbortOperation(const StatusCallback& callback,
94 base::PlatformFileError error); 93 base::PlatformFileError error);
95 94
95 // Just destruct this; used when we 9simply delegate the operation
96 // to the owning file_system_operation_.
97 // (See the comment at AsLocalFileSystemOperation())
98 void Destruct();
99
96 base::WeakPtr<SyncableFileOperationRunner> operation_runner_; 100 base::WeakPtr<SyncableFileOperationRunner> operation_runner_;
97 LocalFileSystemOperation* file_system_operation_; 101 LocalFileSystemOperation* file_system_operation_;
98 std::vector<FileSystemURL> target_paths_; 102 std::vector<FileSystemURL> target_paths_;
99 103
100 StatusCallback completion_callback_; 104 StatusCallback completion_callback_;
101 105
102 bool is_directory_operation_enabled_; 106 bool is_directory_operation_enabled_;
103 107
104 DISALLOW_COPY_AND_ASSIGN(SyncableFileSystemOperation); 108 DISALLOW_COPY_AND_ASSIGN(SyncableFileSystemOperation);
105 }; 109 };
106 110
107 } // namespace fileapi 111 } // namespace fileapi
108 112
109 #endif // WEBKIT_FILEAPI_SYNCABLE_SYNCABLE_FILE_SYSTEM_OPERATION_H_ 113 #endif // WEBKIT_FILEAPI_SYNCABLE_SYNCABLE_FILE_SYSTEM_OPERATION_H_
OLDNEW
« no previous file with comments | « webkit/fileapi/remove_operation_delegate.cc ('k') | webkit/fileapi/syncable/syncable_file_system_operation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698