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

Unified Diff: content/renderer/render_view_impl.cc

Issue 10828043: Wire up the deleteFileSystem operation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adds comment. Created 8 years, 5 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
« no previous file with comments | « content/renderer/render_view_impl.h ('k') | webkit/chromeos/fileapi/cros_mount_point_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index 22a3a8831d6481beb49639f065e827e457edb2bc..4d136cc14d7f2612466e695c2e10854597030217 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -3687,6 +3687,25 @@ void RenderViewImpl::openFileSystem(
size, create, new WebFileSystemCallbackDispatcher(callbacks));
}
+void RenderViewImpl::deleteFileSystem(
+ WebFrame* frame,
+ WebFileSystem::Type type ,
+ WebFileSystemCallbacks* callbacks) {
+ DCHECK(callbacks);
+
+ WebSecurityOrigin origin = frame->document().securityOrigin();
+ if (origin.isUnique()) {
+ // Unique origins cannot store persistent state.
+ callbacks->didSucceed();
+ return;
+ }
+
+ ChildThread::current()->file_system_dispatcher()->DeleteFileSystem(
+ GURL(origin.toString()),
+ static_cast<fileapi::FileSystemType>(type),
+ new WebFileSystemCallbackDispatcher(callbacks));
+}
+
void RenderViewImpl::queryStorageUsageAndQuota(
WebFrame* frame,
WebStorageQuotaType type,
« no previous file with comments | « content/renderer/render_view_impl.h ('k') | webkit/chromeos/fileapi/cros_mount_point_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698