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

Side by Side Diff: webkit/browser/fileapi/copy_or_move_operation_delegate.h

Issue 18565002: [FileSystem] Add another copy-or-move validation hook for post-write. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add test Created 7 years, 5 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_BROWSER_FILEAPI_COPY_OR_MOVE_OPERATION_DELEGATE_H_ 5 #ifndef WEBKIT_BROWSER_FILEAPI_COPY_OR_MOVE_OPERATION_DELEGATE_H_
6 #define WEBKIT_BROWSER_FILEAPI_COPY_OR_MOVE_OPERATION_DELEGATE_H_ 6 #define WEBKIT_BROWSER_FILEAPI_COPY_OR_MOVE_OPERATION_DELEGATE_H_
7 7
8 #include <stack> 8 #include <stack>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 const base::PlatformFileInfo& file_info, 69 const base::PlatformFileInfo& file_info,
70 const base::FilePath& platform_path, 70 const base::FilePath& platform_path,
71 const scoped_refptr<webkit_blob::ShareableFileReference>& file_ref); 71 const scoped_refptr<webkit_blob::ShareableFileReference>& file_ref);
72 void DidValidateFile( 72 void DidValidateFile(
73 const FileSystemURL& dest, 73 const FileSystemURL& dest,
74 const StatusCallback& callback, 74 const StatusCallback& callback,
75 const base::PlatformFileInfo& file_info, 75 const base::PlatformFileInfo& file_info,
76 const base::FilePath& platform_path, 76 const base::FilePath& platform_path,
77 base::PlatformFileError error); 77 base::PlatformFileError error);
78 void DidFinishCopy( 78 void DidFinishCopy(
79 const FileSystemURL& src, 79 const URLPair& url_pair,
vandebo (ex-Chrome) 2013/07/10 15:52:46 Does this chain work correctly when source is mult
Greg Billock 2013/07/11 22:54:35 I think so. multiple objects should be handled ups
80 const StatusCallback& callback,
81 base::PlatformFileError error);
82 void DoPostWriteValidation(
83 const URLPair& url_pair,
84 const StatusCallback& callback,
85 base::PlatformFileError error,
86 const base::PlatformFileInfo& file_info,
87 const base::FilePath& platform_path,
88 const scoped_refptr<webkit_blob::ShareableFileReference>& file_ref);
89 void DidPostWriteValidation(
90 const URLPair& url_pair,
80 const StatusCallback& callback, 91 const StatusCallback& callback,
81 base::PlatformFileError error); 92 base::PlatformFileError error);
82 void DidRemoveSourceForMove( 93 void DidRemoveSourceForMove(
83 const StatusCallback& callback, 94 const StatusCallback& callback,
84 base::PlatformFileError error); 95 base::PlatformFileError error);
96 void DidRemoveDestForError(
97 base::PlatformFileError prior_error,
98 const StatusCallback& callback,
99 base::PlatformFileError error);
85 100
86 FileSystemURL CreateDestURL(const FileSystemURL& src_url) const; 101 FileSystemURL CreateDestURL(const FileSystemURL& src_url) const;
87 102
88 FileSystemURL src_root_; 103 FileSystemURL src_root_;
89 FileSystemURL dest_root_; 104 FileSystemURL dest_root_;
90 bool same_file_system_; 105 bool same_file_system_;
91 OperationType operation_type_; 106 OperationType operation_type_;
92 StatusCallback callback_; 107 StatusCallback callback_;
93 108
94 scoped_refptr<webkit_blob::ShareableFileReference> current_file_ref_; 109 scoped_refptr<webkit_blob::ShareableFileReference> current_file_ref_;
95 110
96 scoped_ptr<CopyOrMoveFileValidator> validator_; 111 scoped_ptr<CopyOrMoveFileValidator> validator_;
97 112
98 DISALLOW_COPY_AND_ASSIGN(CopyOrMoveOperationDelegate); 113 DISALLOW_COPY_AND_ASSIGN(CopyOrMoveOperationDelegate);
99 }; 114 };
100 115
101 } // namespace fileapi 116 } // namespace fileapi
102 117
103 #endif // WEBKIT_BROWSER_FILEAPI_COPY_OR_MOVE_OPERATION_DELEGATE_H_ 118 #endif // WEBKIT_BROWSER_FILEAPI_COPY_OR_MOVE_OPERATION_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698