Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(39)

Unified Diff: webkit/fileapi/file_system_context.cc

Issue 7003021: Added DeleteOriginData to QuotaClient (Closed)
Patch Set: Added error report Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..71335d4a1175cf6669660a85ba0bb9f5dd9870c9 100644
--- a/webkit/fileapi/file_system_context.cc
+++ b/webkit/fileapi/file_system_context.cc
@@ -70,14 +70,23 @@ 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 */);
}
void FileSystemContext::DeleteOnCorrectThread() const {

Powered by Google App Engine
This is Rietveld 408576698