Chromium Code Reviews| Index: webkit/fileapi/file_system_context.cc |
| diff --git a/webkit/fileapi/file_system_context.cc b/webkit/fileapi/file_system_context.cc |
| index d27b87d0f6f6bd17b0bb1266e70d8c776fd88bfc..4946aa0997a8de4d6360bc93455f6ee2dbeded1a 100644 |
| --- a/webkit/fileapi/file_system_context.cc |
| +++ b/webkit/fileapi/file_system_context.cc |
| @@ -70,14 +70,22 @@ bool FileSystemContext::IsStorageUnlimited(const GURL& origin) { |
| special_storage_policy_->IsStorageUnlimited(origin)); |
| } |
| -void FileSystemContext::DeleteDataForOriginOnFileThread( |
| +bool FileSystemContext::DeleteDataForOriginOnFileThread( |
| const GURL& origin_url) { |
| - DCHECK(path_manager_.get()); |
| DCHECK(file_message_loop_->BelongsToCurrentThread()); |
| FilePath path_for_origin = |
| sandbox_provider()->GetBaseDirectoryForOrigin(origin_url); |
| - file_util::Delete(path_for_origin, true /* recursive */); |
| + return file_util::Delete(path_for_origin, true /* recursive */); |
| +} |
| + |
| +bool FileSystemContext::DeleteDataForOriginAndTypeOnFileThread( |
| + const GURL& origin_url, FileSystemType type) { |
| + DCHECK(file_message_loop_->BelongsToCurrentThread()); |
| + |
| + FilePath path_for_origin = |
| + sandbox_provider()->GetBaseDirectoryForOriginAndType(origin_url, type); |
| + return file_util::Delete(path_for_origin, true /* recursive */); |
|
kinuko
2011/05/16 06:18:53
Can you add TODO here to report the amount of dele
tzik (google)
2011/05/16 07:47:01
Done.
|
| } |
| void FileSystemContext::DeleteOnCorrectThread() const { |