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_OBFUSCATED_FILE_UTIL_H_ | 5 #ifndef WEBKIT_FILEAPI_OBFUSCATED_FILE_UTIL_H_ |
6 #define WEBKIT_FILEAPI_OBFUSCATED_FILE_UTIL_H_ | 6 #define WEBKIT_FILEAPI_OBFUSCATED_FILE_UTIL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 virtual PlatformFileError CopyInForeignFile( | 115 virtual PlatformFileError CopyInForeignFile( |
116 FileSystemOperationContext* context, | 116 FileSystemOperationContext* context, |
117 const FilePath& src_file_path, | 117 const FilePath& src_file_path, |
118 const FileSystemURL& dest_url) OVERRIDE; | 118 const FileSystemURL& dest_url) OVERRIDE; |
119 virtual base::PlatformFileError DeleteFile( | 119 virtual base::PlatformFileError DeleteFile( |
120 FileSystemOperationContext* context, | 120 FileSystemOperationContext* context, |
121 const FileSystemURL& url) OVERRIDE; | 121 const FileSystemURL& url) OVERRIDE; |
122 virtual base::PlatformFileError DeleteSingleDirectory( | 122 virtual base::PlatformFileError DeleteSingleDirectory( |
123 FileSystemOperationContext* context, | 123 FileSystemOperationContext* context, |
124 const FileSystemURL& url) OVERRIDE; | 124 const FileSystemURL& url) OVERRIDE; |
125 virtual scoped_refptr<webkit_blob::ShareableFileReference> | 125 virtual base::PlatformFileError CreateSnapshotFile( |
126 CreateSnapshotFile(FileSystemOperationContext* context, | 126 FileSystemOperationContext* context, |
127 const FileSystemURL& url, | 127 const FileSystemURL& url, |
128 base::PlatformFileError* result, | 128 base::PlatformFileInfo* file_info, |
129 base::PlatformFileInfo* file_info, | 129 FilePath* platform_path, |
130 FilePath* platform_path) OVERRIDE; | 130 SnapshotFilePolicy* policy) OVERRIDE; |
131 | 131 |
132 // Gets the topmost directory specific to this origin and type. This will | 132 // Gets the topmost directory specific to this origin and type. This will |
133 // contain both the directory database's files and all the backing file | 133 // contain both the directory database's files and all the backing file |
134 // subdirectories. | 134 // subdirectories. |
135 // Returns an empty path if the directory is undefined (e.g. because |type| | 135 // Returns an empty path if the directory is undefined (e.g. because |type| |
136 // is invalid). If the directory is defined, it will be returned, even if | 136 // is invalid). If the directory is defined, it will be returned, even if |
137 // there is a file system error (e.g. the directory doesn't exist on disk and | 137 // there is a file system error (e.g. the directory doesn't exist on disk and |
138 // |create| is false). Callers should always check |error_code| to make sure | 138 // |create| is false). Callers should always check |error_code| to make sure |
139 // the returned path is usable. | 139 // the returned path is usable. |
140 FilePath GetDirectoryForOriginAndType( | 140 FilePath GetDirectoryForOriginAndType( |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 scoped_ptr<FileSystemOriginDatabase> origin_database_; | 257 scoped_ptr<FileSystemOriginDatabase> origin_database_; |
258 FilePath file_system_directory_; | 258 FilePath file_system_directory_; |
259 base::OneShotTimer<ObfuscatedFileUtil> timer_; | 259 base::OneShotTimer<ObfuscatedFileUtil> timer_; |
260 | 260 |
261 DISALLOW_COPY_AND_ASSIGN(ObfuscatedFileUtil); | 261 DISALLOW_COPY_AND_ASSIGN(ObfuscatedFileUtil); |
262 }; | 262 }; |
263 | 263 |
264 } // namespace fileapi | 264 } // namespace fileapi |
265 | 265 |
266 #endif // WEBKIT_FILEAPI_OBFUSCATED_FILE_UTIL_H_ | 266 #endif // WEBKIT_FILEAPI_OBFUSCATED_FILE_UTIL_H_ |
OLD | NEW |