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

Unified Diff: webkit/fileapi/cross_operation_delegate.h

Issue 14225022: fileapi: Pass virtual path to copy validator. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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
Index: webkit/fileapi/cross_operation_delegate.h
diff --git a/webkit/fileapi/cross_operation_delegate.h b/webkit/fileapi/cross_operation_delegate.h
index 77c15f58a66febada75c443db8a00812d9d04696..fd8e0efa438b5772c619dfd3a1ae8a0f14282287 100644
--- a/webkit/fileapi/cross_operation_delegate.h
+++ b/webkit/fileapi/cross_operation_delegate.h
@@ -50,31 +50,37 @@ class CrossOperationDelegate
using base::SupportsWeakPtr<CrossOperationDelegate>::AsWeakPtr;
private:
+ struct Request {
+ Request(const FileSystemURL& src, const FileSystemURL& dest,
kinuko 2013/04/18 03:32:00 nit: can we break the line after 'src,'
vandebo (ex-Chrome) 2013/04/19 01:07:18 With just src and dest, they fit on one line. Do
+ const StatusCallback& callback)
+ : src(src),
+ dest(dest),
+ callback(callback) {
+ }
+ FileSystemURL src;
+ FileSystemURL dest;
+ StatusCallback callback;
+ };
+
void DidTryCopyOrMoveFile(base::PlatformFileError error);
void DidTryRemoveDestRoot(base::PlatformFileError error);
- void CopyOrMoveFile(
- const FileSystemURL& src,
- const FileSystemURL& dest,
- const StatusCallback& callback);
+ void CopyOrMoveFile(const Request& request);
void DidCreateSnapshot(
- const FileSystemURL& dest,
- const StatusCallback& callback,
+ const Request& request,
vandebo (ex-Chrome) 2013/04/17 23:50:48 In order to pass virtual_path into the copy valida
kinuko 2013/04/18 03:32:00 This looks fine, the name Request sounds a bit unc
vandebo (ex-Chrome) 2013/04/19 01:07:18 Done. Named URLPair. Since it's just the two val
base::PlatformFileError error,
const base::PlatformFileInfo& file_info,
const base::FilePath& platform_path,
const scoped_refptr<webkit_blob::ShareableFileReference>& file_ref);
void DidValidateFile(
- const FileSystemURL& dest,
- const StatusCallback& callback,
+ const Request& request,
const base::PlatformFileInfo& file_info,
const base::FilePath& platform_path,
base::PlatformFileError error);
void DidFinishCopy(
- const FileSystemURL& src,
- const StatusCallback& callback,
+ const Request& request,
base::PlatformFileError error);
void DidRemoveSourceForMove(
- const StatusCallback& callback,
+ const Request& request,
base::PlatformFileError error);
FileSystemURL CreateDestURL(const FileSystemURL& src_url) const;

Powered by Google App Engine
This is Rietveld 408576698