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

Unified Diff: webkit/chromeos/fileapi/remote_file_system_operation.cc

Issue 9662041: Implement copy and move operations within the same remote file system. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: rebase to HEAD Created 8 years, 9 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 | « chrome/browser/chromeos/gdata/gdata_mock.cc ('k') | webkit/chromeos/fileapi/remote_file_system_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/chromeos/fileapi/remote_file_system_operation.cc
===================================================================
--- webkit/chromeos/fileapi/remote_file_system_operation.cc (revision 126358)
+++ webkit/chromeos/fileapi/remote_file_system_operation.cc (working copy)
@@ -81,13 +81,21 @@
void RemoteFileSystemOperation::Copy(const GURL& src_path,
const GURL& dest_path,
const StatusCallback& callback) {
- NOTIMPLEMENTED();
+ DCHECK(SetPendingOperationType(kOperationCopy));
+
+ remote_proxy_->Copy(src_path, dest_path,
+ base::Bind(&RemoteFileSystemOperation::DidFinishFileOperation,
+ base::Owned(this), callback));
}
void RemoteFileSystemOperation::Move(const GURL& src_path,
const GURL& dest_path,
- const StatusCallback& callback) {
- NOTIMPLEMENTED();
+ const StatusCallback& callback) {
+ DCHECK(SetPendingOperationType(kOperationMove));
+
+ remote_proxy_->Move(src_path, dest_path,
+ base::Bind(&RemoteFileSystemOperation::DidFinishFileOperation,
+ base::Owned(this), callback));
}
void RemoteFileSystemOperation::Write(
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_mock.cc ('k') | webkit/chromeos/fileapi/remote_file_system_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698