| 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 STORAGE_BROWSER_FILEAPI_OBFUSCATED_FILE_UTIL_H_ | 5 #ifndef STORAGE_BROWSER_FILEAPI_OBFUSCATED_FILE_UTIL_H_ |
| 6 #define STORAGE_BROWSER_FILEAPI_OBFUSCATED_FILE_UTIL_H_ | 6 #define STORAGE_BROWSER_FILEAPI_OBFUSCATED_FILE_UTIL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 bool create, | 193 bool create, |
| 194 base::File::Error* error_code); | 194 base::File::Error* error_code); |
| 195 | 195 |
| 196 // Deletes the topmost directory specific to this origin and type. This will | 196 // Deletes the topmost directory specific to this origin and type. This will |
| 197 // delete its directory database. | 197 // delete its directory database. |
| 198 // Deletes the topmost origin directory if |type_string| is empty. | 198 // Deletes the topmost origin directory if |type_string| is empty. |
| 199 bool DeleteDirectoryForOriginAndType( | 199 bool DeleteDirectoryForOriginAndType( |
| 200 const GURL& origin, | 200 const GURL& origin, |
| 201 const std::string& type_string); | 201 const std::string& type_string); |
| 202 | 202 |
| 203 // Deletes all files and directories in all plugin private filesystems |
| 204 // associated with |origin|. And also deletes their directory databases from |
| 205 // the database list. |
| 206 bool DeleteOriginDirectoryForPluginPrivateFileSystem(const GURL& origin); |
| 207 |
| 203 // This method and all methods of its returned class must be called only on | 208 // This method and all methods of its returned class must be called only on |
| 204 // the FILE thread. The caller is responsible for deleting the returned | 209 // the FILE thread. The caller is responsible for deleting the returned |
| 205 // object. | 210 // object. |
| 206 AbstractOriginEnumerator* CreateOriginEnumerator(); | 211 AbstractOriginEnumerator* CreateOriginEnumerator(); |
| 207 | 212 |
| 208 // Deletes a directory database from the database list in the ObfuscatedFSFU | 213 // Deletes a directory database from the database list in the ObfuscatedFSFU |
| 209 // and destroys the database on the disk. | 214 // and destroys the database on the disk. |
| 210 bool DestroyDirectoryDatabase(const GURL& origin, | 215 bool DestroyDirectoryDatabase(const GURL& origin, |
| 211 const std::string& type_string); | 216 const std::string& type_string); |
| 212 | 217 |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 350 | 355 |
| 351 // Not owned. | 356 // Not owned. |
| 352 SandboxFileSystemBackendDelegate* sandbox_delegate_; | 357 SandboxFileSystemBackendDelegate* sandbox_delegate_; |
| 353 | 358 |
| 354 DISALLOW_COPY_AND_ASSIGN(ObfuscatedFileUtil); | 359 DISALLOW_COPY_AND_ASSIGN(ObfuscatedFileUtil); |
| 355 }; | 360 }; |
| 356 | 361 |
| 357 } // namespace storage | 362 } // namespace storage |
| 358 | 363 |
| 359 #endif // STORAGE_BROWSER_FILEAPI_OBFUSCATED_FILE_UTIL_H_ | 364 #endif // STORAGE_BROWSER_FILEAPI_OBFUSCATED_FILE_UTIL_H_ |
| OLD | NEW |