OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_FILEAPI_ISOLATED_FILE_UTIL_H_ | 5 #ifndef WEBKIT_FILEAPI_ISOLATED_FILE_UTIL_H_ |
6 #define WEBKIT_FILEAPI_ISOLATED_FILE_UTIL_H_ | 6 #define WEBKIT_FILEAPI_ISOLATED_FILE_UTIL_H_ |
7 | 7 |
8 #include "base/file_path.h" | 8 #include "base/file_path.h" |
9 #include "base/file_util_proxy.h" | 9 #include "base/file_util_proxy.h" |
10 #include "base/platform_file.h" | 10 #include "base/platform_file.h" |
| 11 #include "webkit/fileapi/fileapi_export.h" |
11 #include "webkit/fileapi/file_system_file_util.h" | 12 #include "webkit/fileapi/file_system_file_util.h" |
12 | 13 |
13 namespace base { | 14 namespace base { |
14 class Time; | 15 class Time; |
15 } | 16 } |
16 | 17 |
17 namespace fileapi { | 18 namespace fileapi { |
18 | 19 |
19 class FileSystemOperationContext; | 20 class FileSystemOperationContext; |
20 class IsolatedContext; | 21 class IsolatedContext; |
21 | 22 |
22 class IsolatedFileUtil : public FileSystemFileUtil { | 23 class FILEAPI_EXPORT_PRIVATE IsolatedFileUtil : public FileSystemFileUtil { |
23 public: | 24 public: |
24 IsolatedFileUtil(); | 25 IsolatedFileUtil(); |
25 virtual ~IsolatedFileUtil() {} | 26 virtual ~IsolatedFileUtil() {} |
26 | 27 |
27 // FileSystemFileUtil overrides. | 28 // FileSystemFileUtil overrides. |
28 virtual base::PlatformFileError CreateOrOpen( | 29 virtual base::PlatformFileError CreateOrOpen( |
29 FileSystemOperationContext* context, | 30 FileSystemOperationContext* context, |
30 const FileSystemPath& path, | 31 const FileSystemPath& path, |
31 int file_flags, | 32 int file_flags, |
32 base::PlatformFile* file_handle, | 33 base::PlatformFile* file_handle, |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 // Returns false if the given |virtual_path| is not a valid path. | 94 // Returns false if the given |virtual_path| is not a valid path. |
94 bool GetPlatformPath(const FileSystemPath& virtual_path, | 95 bool GetPlatformPath(const FileSystemPath& virtual_path, |
95 FilePath* platform_path) const; | 96 FilePath* platform_path) const; |
96 | 97 |
97 DISALLOW_COPY_AND_ASSIGN(IsolatedFileUtil); | 98 DISALLOW_COPY_AND_ASSIGN(IsolatedFileUtil); |
98 }; | 99 }; |
99 | 100 |
100 } // namespace fileapi | 101 } // namespace fileapi |
101 | 102 |
102 #endif // WEBKIT_FILEAPI_ISOLATED_FILE_UTIL_H_ | 103 #endif // WEBKIT_FILEAPI_ISOLATED_FILE_UTIL_H_ |
OLD | NEW |