Index: webkit/browser/fileapi/copy_or_move_file_validator.h |
diff --git a/webkit/browser/fileapi/copy_or_move_file_validator.h b/webkit/browser/fileapi/copy_or_move_file_validator.h |
index 9b32f5b8d3b101f81caae0d29038d76fb6ebd289..75462b3a00869f865a208b07651e177c44149146 100644 |
--- a/webkit/browser/fileapi/copy_or_move_file_validator.h |
+++ b/webkit/browser/fileapi/copy_or_move_file_validator.h |
@@ -25,7 +25,19 @@ class WEBKIT_STORAGE_BROWSER_EXPORT CopyOrMoveFileValidator { |
virtual ~CopyOrMoveFileValidator() {} |
+ // Called on a source file before copying or moving to the final |
+ // destination. |
virtual void StartValidation(const ResultCallback& result_callback) = 0; |
+ |
+ // Called on a destination file after copying or moving to the final |
+ // destination. Suitable for running Anti-Virus checks. The |file_ref| is |
+ // a refcounted keepalive token for the destination file which may or |
+ // may not be present. Implementations should maintain the |file_ref| until |
kinuko
2013/07/12 05:00:19
This comment also needs to be updated?
Greg Billock
2013/07/12 18:02:19
Done.
|
+ // they finish and return in order to make sure the file is not prematurely |
+ // deleted from under them. |
+ virtual void StartPostWriteValidation( |
+ const base::FilePath& dest_platform_path, |
+ const ResultCallback& result_callback) = 0; |
}; |
class CopyOrMoveFileValidatorFactory { |