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

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: 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 FileSystemURL& src,
80 const FileSystemURL& dest,
81 const StatusCallback& callback,
82 base::PlatformFileError error);
83 void PostWriteValidate(
84 const FileSystemURL& dest,
85 const StatusCallback& callback);
86 void DoPostWriteValidation(
87 const StatusCallback& callback,
88 base::PlatformFileError error,
89 const base::PlatformFileInfo& file_info,
90 const base::FilePath& platform_path,
91 const scoped_refptr<webkit_blob::ShareableFileReference>& file_ref);
92 void DidPostCopyValidation(
93 const StatusCallback& callback,
94 base::PlatformFileError error);
95 void DidPostMoveValidation(
96 const FileSystemURL& src,
80 const StatusCallback& callback, 97 const StatusCallback& callback,
81 base::PlatformFileError error); 98 base::PlatformFileError error);
82 void DidRemoveSourceForMove( 99 void DidRemoveSourceForMove(
83 const StatusCallback& callback, 100 const StatusCallback& callback,
84 base::PlatformFileError error); 101 base::PlatformFileError error);
85 102
86 FileSystemURL CreateDestURL(const FileSystemURL& src_url) const; 103 FileSystemURL CreateDestURL(const FileSystemURL& src_url) const;
87 104
88 FileSystemURL src_root_; 105 FileSystemURL src_root_;
89 FileSystemURL dest_root_; 106 FileSystemURL dest_root_;
90 bool same_file_system_; 107 bool same_file_system_;
91 OperationType operation_type_; 108 OperationType operation_type_;
92 StatusCallback callback_; 109 StatusCallback callback_;
93 110
94 scoped_refptr<webkit_blob::ShareableFileReference> current_file_ref_; 111 scoped_refptr<webkit_blob::ShareableFileReference> current_file_ref_;
95 112
96 scoped_ptr<CopyOrMoveFileValidator> validator_; 113 scoped_ptr<CopyOrMoveFileValidator> validator_;
97 114
98 DISALLOW_COPY_AND_ASSIGN(CopyOrMoveOperationDelegate); 115 DISALLOW_COPY_AND_ASSIGN(CopyOrMoveOperationDelegate);
99 }; 116 };
100 117
101 } // namespace fileapi 118 } // namespace fileapi
102 119
103 #endif // WEBKIT_BROWSER_FILEAPI_COPY_OR_MOVE_OPERATION_DELEGATE_H_ 120 #endif // WEBKIT_BROWSER_FILEAPI_COPY_OR_MOVE_OPERATION_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698