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 the topmost origin directory for the plugin private | |
204 // filesystem. This will delete its directory database. | |
xhwang
2014/09/22 16:41:25
Add a note that this will delete dirs/files for al
nhiroki
2014/09/24 06:00:31
Done.
| |
205 bool DeleteOriginDirectoryForPluginPrivateFileSystem(const GURL& origin); | |
206 | |
203 // This method and all methods of its returned class must be called only on | 207 // 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 | 208 // the FILE thread. The caller is responsible for deleting the returned |
205 // object. | 209 // object. |
206 AbstractOriginEnumerator* CreateOriginEnumerator(); | 210 AbstractOriginEnumerator* CreateOriginEnumerator(); |
207 | 211 |
208 // Deletes a directory database from the database list in the ObfuscatedFSFU | 212 // Deletes a directory database from the database list in the ObfuscatedFSFU |
209 // and destroys the database on the disk. | 213 // and destroys the database on the disk. |
210 bool DestroyDirectoryDatabase(const GURL& origin, | 214 bool DestroyDirectoryDatabase(const GURL& origin, |
211 const std::string& type_string); | 215 const std::string& type_string); |
212 | 216 |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
350 | 354 |
351 // Not owned. | 355 // Not owned. |
352 SandboxFileSystemBackendDelegate* sandbox_delegate_; | 356 SandboxFileSystemBackendDelegate* sandbox_delegate_; |
353 | 357 |
354 DISALLOW_COPY_AND_ASSIGN(ObfuscatedFileUtil); | 358 DISALLOW_COPY_AND_ASSIGN(ObfuscatedFileUtil); |
355 }; | 359 }; |
356 | 360 |
357 } // namespace storage | 361 } // namespace storage |
358 | 362 |
359 #endif // STORAGE_BROWSER_FILEAPI_OBFUSCATED_FILE_UTIL_H_ | 363 #endif // STORAGE_BROWSER_FILEAPI_OBFUSCATED_FILE_UTIL_H_ |
OLD | NEW |