OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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_FILE_VALIDATOR_H_ | 5 #ifndef WEBKIT_BROWSER_FILEAPI_COPY_OR_MOVE_FILE_VALIDATOR_H_ |
6 #define WEBKIT_BROWSER_FILEAPI_COPY_OR_MOVE_FILE_VALIDATOR_H_ | 6 #define WEBKIT_BROWSER_FILEAPI_COPY_OR_MOVE_FILE_VALIDATOR_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/platform_file.h" | 9 #include "base/platform_file.h" |
10 #include "webkit/storage/webkit_storage_export.h" | 10 #include "webkit/storage/webkit_storage_export.h" |
11 | 11 |
12 namespace base { | 12 namespace base { |
13 class FilePath; | 13 class FilePath; |
14 } | 14 } |
15 | 15 |
16 namespace base { | |
Lei Zhang
2013/05/24 22:50:44
merge error? ^^
vandebo (ex-Chrome)
2013/05/29 06:09:15
Done.
| |
17 class FilePath; | |
18 } | |
19 | |
16 namespace fileapi { | 20 namespace fileapi { |
17 | 21 |
18 class FileSystemURL; | 22 class FileSystemURL; |
19 | 23 |
20 class WEBKIT_STORAGE_EXPORT CopyOrMoveFileValidator { | 24 class WEBKIT_STORAGE_EXPORT CopyOrMoveFileValidator { |
21 public: | 25 public: |
22 // Callback that is invoked when validation completes. A result of | 26 // Callback that is invoked when validation completes. A result of |
23 // base::PLATFORM_FILE_OK means the file validated. | 27 // base::PLATFORM_FILE_OK means the file validated. |
24 typedef base::Callback<void(base::PlatformFileError result)> ResultCallback; | 28 typedef base::Callback<void(base::PlatformFileError result)> ResultCallback; |
25 | 29 |
(...skipping 10 matching lines...) Expand all Loading... | |
36 // in addition to |platform_path| because in the obfuscated file system | 40 // in addition to |platform_path| because in the obfuscated file system |
37 // case, |platform_path| will be an obfuscated filename and extension. | 41 // case, |platform_path| will be an obfuscated filename and extension. |
38 virtual CopyOrMoveFileValidator* CreateCopyOrMoveFileValidator( | 42 virtual CopyOrMoveFileValidator* CreateCopyOrMoveFileValidator( |
39 const FileSystemURL& src_url, | 43 const FileSystemURL& src_url, |
40 const base::FilePath& platform_path) = 0; | 44 const base::FilePath& platform_path) = 0; |
41 }; | 45 }; |
42 | 46 |
43 } // namespace fileapi | 47 } // namespace fileapi |
44 | 48 |
45 #endif // WEBKIT_BROWSER_FILEAPI_COPY_OR_MOVE_FILE_VALIDATOR_H_ | 49 #endif // WEBKIT_BROWSER_FILEAPI_COPY_OR_MOVE_FILE_VALIDATOR_H_ |
OLD | NEW |