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

Unified Diff: webkit/chromeos/fileapi/remote_file_system_proxy.h

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 | « webkit/chromeos/fileapi/remote_file_system_operation.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/chromeos/fileapi/remote_file_system_proxy.h
===================================================================
--- webkit/chromeos/fileapi/remote_file_system_proxy.h (revision 126358)
+++ webkit/chromeos/fileapi/remote_file_system_proxy.h (working copy)
@@ -23,6 +23,22 @@
virtual void GetFileInfo(const GURL& path,
const FileSystemOperationInterface::GetMetadataCallback& callback) = 0;
+ // Copies a file or directory from |src_path| to |dest_path|. If
+ // |src_path| is a directory, the contents of |src_path| are copied to
+ // |dest_path| recursively. A new file or directory is created at
+ // |dest_path| as needed.
+ virtual void Copy(
+ const GURL& src_path,
+ const GURL& dest_path,
+ const FileSystemOperationInterface::StatusCallback& callback) = 0;
+
+ // Moves a file or directory from |src_path| to |dest_path|. A new file
+ // or directory is created at |dest_path| as needed.
+ virtual void Move(
+ const GURL& src_path,
+ const GURL& dest_path,
+ const FileSystemOperationInterface::StatusCallback& callback) = 0;
+
// Reads contents of a directory at |path|.
virtual void ReadDirectory(const GURL& path,
const FileSystemOperationInterface::ReadDirectoryCallback& callback) = 0;
« no previous file with comments | « webkit/chromeos/fileapi/remote_file_system_operation.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698