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_LOCAL_FILE_UTIL_H_ | 5 #ifndef WEBKIT_FILEAPI_LOCAL_FILE_UTIL_H_ |
6 #define WEBKIT_FILEAPI_LOCAL_FILE_UTIL_H_ | 6 #define WEBKIT_FILEAPI_LOCAL_FILE_UTIL_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 virtual PlatformFileError CopyInForeignFile( | 96 virtual PlatformFileError CopyInForeignFile( |
97 FileSystemOperationContext* context, | 97 FileSystemOperationContext* context, |
98 const FilePath& src_file_path, | 98 const FilePath& src_file_path, |
99 const FileSystemURL& dest_url) OVERRIDE; | 99 const FileSystemURL& dest_url) OVERRIDE; |
100 virtual PlatformFileError DeleteFile( | 100 virtual PlatformFileError DeleteFile( |
101 FileSystemOperationContext* context, | 101 FileSystemOperationContext* context, |
102 const FileSystemURL& url) OVERRIDE; | 102 const FileSystemURL& url) OVERRIDE; |
103 virtual PlatformFileError DeleteSingleDirectory( | 103 virtual PlatformFileError DeleteSingleDirectory( |
104 FileSystemOperationContext* context, | 104 FileSystemOperationContext* context, |
105 const FileSystemURL& url) OVERRIDE; | 105 const FileSystemURL& url) OVERRIDE; |
106 virtual scoped_refptr<webkit_blob::ShareableFileReference> | 106 virtual PlatformFileError CreateSnapshotFile( |
107 CreateSnapshotFile(FileSystemOperationContext* context, | 107 FileSystemOperationContext* context, |
108 const FileSystemURL& url, | 108 const FileSystemURL& url, |
109 base::PlatformFileError* result, | 109 base::PlatformFileInfo* file_info, |
110 base::PlatformFileInfo* file_info, | 110 FilePath* platform_path, |
111 FilePath* platform_path) OVERRIDE; | 111 SnapshotFilePolicy* snapshot_policy) OVERRIDE; |
112 | 112 |
113 private: | 113 private: |
114 // Given the filesystem url, produces a real, full local path for the | 114 // Given the filesystem url, produces a real, full local path for the |
115 // underlying filesystem (which is usually the native filesystem). | 115 // underlying filesystem (which is usually the native filesystem). |
116 FileSystemURL GetLocalPath( | 116 FileSystemURL GetLocalPath( |
117 FileSystemOperationContext* context, | 117 FileSystemOperationContext* context, |
118 const FileSystemURL& url); | 118 const FileSystemURL& url); |
119 | 119 |
120 DISALLOW_COPY_AND_ASSIGN(LocalFileUtil); | 120 DISALLOW_COPY_AND_ASSIGN(LocalFileUtil); |
121 }; | 121 }; |
122 | 122 |
123 } // namespace fileapi | 123 } // namespace fileapi |
124 | 124 |
125 #endif // WEBKIT_FILEAPI_LOCAL_FILE_UTIL_H_ | 125 #endif // WEBKIT_FILEAPI_LOCAL_FILE_UTIL_H_ |
OLD | NEW |