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" |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 virtual base::PlatformFileError CopyInForeignFile( | 82 virtual base::PlatformFileError CopyInForeignFile( |
83 FileSystemOperationContext* context, | 83 FileSystemOperationContext* context, |
84 const FilePath& src_file_path, | 84 const FilePath& src_file_path, |
85 const FileSystemURL& dest_url) OVERRIDE; | 85 const FileSystemURL& dest_url) OVERRIDE; |
86 virtual base::PlatformFileError DeleteFile( | 86 virtual base::PlatformFileError DeleteFile( |
87 FileSystemOperationContext* context, | 87 FileSystemOperationContext* context, |
88 const FileSystemURL& url) OVERRIDE; | 88 const FileSystemURL& url) OVERRIDE; |
89 virtual base::PlatformFileError DeleteSingleDirectory( | 89 virtual base::PlatformFileError DeleteSingleDirectory( |
90 FileSystemOperationContext* context, | 90 FileSystemOperationContext* context, |
91 const FileSystemURL& url) OVERRIDE; | 91 const FileSystemURL& url) OVERRIDE; |
| 92 virtual scoped_refptr<webkit_blob::ShareableFileReference> |
| 93 CreateSnapshotFile(FileSystemOperationContext* context, |
| 94 const FileSystemURL& url, |
| 95 base::PlatformFileError* result, |
| 96 base::PlatformFileInfo* file_info, |
| 97 FilePath* platform_path) OVERRIDE; |
92 | 98 |
93 private: | 99 private: |
94 // Returns false if the given |url| is not a valid path. | 100 // Returns false if the given |url| is not a valid path. |
95 bool GetPlatformPath(const FileSystemURL& url, | 101 bool GetPlatformPath(const FileSystemURL& url, |
96 FilePath* platform_path) const; | 102 FilePath* platform_path) const; |
97 DISALLOW_COPY_AND_ASSIGN(IsolatedFileUtil); | 103 DISALLOW_COPY_AND_ASSIGN(IsolatedFileUtil); |
98 }; | 104 }; |
99 | 105 |
100 } // namespace fileapi | 106 } // namespace fileapi |
101 | 107 |
102 #endif // WEBKIT_FILEAPI_ISOLATED_FILE_UTIL_H_ | 108 #endif // WEBKIT_FILEAPI_ISOLATED_FILE_UTIL_H_ |
OLD | NEW |