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 STORAGE_BROWSER_FILEAPI_COPY_OR_MOVE_FILE_VALIDATOR_H_ |
6 #define WEBKIT_BROWSER_FILEAPI_COPY_OR_MOVE_FILE_VALIDATOR_H_ | 6 #define STORAGE_BROWSER_FILEAPI_COPY_OR_MOVE_FILE_VALIDATOR_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/files/file.h" | 9 #include "base/files/file.h" |
10 #include "webkit/browser/storage_browser_export.h" | 10 #include "storage/browser/storage_browser_export.h" |
11 | 11 |
12 namespace base { | 12 namespace base { |
13 class FilePath; | 13 class FilePath; |
14 } | 14 } |
15 | 15 |
16 namespace storage { | 16 namespace storage { |
17 | 17 |
18 class FileSystemURL; | 18 class FileSystemURL; |
19 | 19 |
20 class STORAGE_EXPORT CopyOrMoveFileValidator { | 20 class STORAGE_EXPORT CopyOrMoveFileValidator { |
(...skipping 23 matching lines...) Expand all Loading... |
44 // This method must always return a non-NULL validator. |src_url| is needed | 44 // This method must always return a non-NULL validator. |src_url| is needed |
45 // in addition to |platform_path| because in the obfuscated file system | 45 // in addition to |platform_path| because in the obfuscated file system |
46 // case, |platform_path| will be an obfuscated filename and extension. | 46 // case, |platform_path| will be an obfuscated filename and extension. |
47 virtual CopyOrMoveFileValidator* CreateCopyOrMoveFileValidator( | 47 virtual CopyOrMoveFileValidator* CreateCopyOrMoveFileValidator( |
48 const FileSystemURL& src_url, | 48 const FileSystemURL& src_url, |
49 const base::FilePath& platform_path) = 0; | 49 const base::FilePath& platform_path) = 0; |
50 }; | 50 }; |
51 | 51 |
52 } // namespace storage | 52 } // namespace storage |
53 | 53 |
54 #endif // WEBKIT_BROWSER_FILEAPI_COPY_OR_MOVE_FILE_VALIDATOR_H_ | 54 #endif // STORAGE_BROWSER_FILEAPI_COPY_OR_MOVE_FILE_VALIDATOR_H_ |
OLD | NEW |