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

Unified Diff: webkit/fileapi/file_system_context.cc

Issue 7003021: Added DeleteOriginData to QuotaClient (Closed)
Patch Set: Added callback 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..e1ef77b2a052a9a0296b90c7200e855ada1b6ced 100644
--- a/webkit/fileapi/file_system_context.cc
+++ b/webkit/fileapi/file_system_context.cc
@@ -80,6 +80,17 @@ void FileSystemContext::DeleteDataForOriginOnFileThread(
file_util::Delete(path_for_origin, true /* recursive */);
}
+
+void FileSystemContext::DeleteDataForOriginAndTypeOnFileThread(
+ const GURL& origin_url, FileSystemType type) {
+ DCHECK(path_manager_.get());
kinuko 2011/05/11 09:45:56 This doesn't seem to be necessary. (Ditto in the
tzik (google) 2011/05/11 11:32:25 Done.
+ DCHECK(file_message_loop_->BelongsToCurrentThread());
+
+ FilePath path_for_origin =
+ sandbox_provider()->GetBaseDirectoryForOriginAndType(origin_url, type);
+ file_util::Delete(path_for_origin, true /* recursive */);
Dai Mikurube (NOT FULLTIME) 2011/05/11 09:14:57 Is the .usage file updated? (Updating may not be
kinuko 2011/05/11 09:38:15 Sorry I hadn't read this review comment (and wasn'
+}
+
void FileSystemContext::DeleteOnCorrectThread() const {
if (!io_message_loop_->BelongsToCurrentThread()) {
io_message_loop_->DeleteSoon(FROM_HERE, this);

Powered by Google App Engine
This is Rietveld 408576698