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

Unified Diff: Source/modules/filesystem/LocalFileSystem.cpp

Issue 23537011: FileAPI: Add WebFileSystem::resolveURL (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix Created 7 years, 3 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: Source/modules/filesystem/LocalFileSystem.cpp
diff --git a/Source/modules/filesystem/LocalFileSystem.cpp b/Source/modules/filesystem/LocalFileSystem.cpp
index 84950bbfe5ce67d9e664ae8cc4b93838f4c11ed5..5466b2de9e67d3bccaf391ab3e7fb6f02e391ae4 100644
--- a/Source/modules/filesystem/LocalFileSystem.cpp
+++ b/Source/modules/filesystem/LocalFileSystem.cpp
@@ -40,6 +40,8 @@
#include "core/platform/AsyncFileSystemCallbacks.h"
#include "modules/filesystem/FileSystemClient.h"
#include "modules/filesystem/WorkerLocalFileSystem.h"
+#include "public/platform/Platform.h"
+#include "public/platform/WebFileSystem.h"
namespace WebCore {
@@ -56,13 +58,13 @@ LocalFileSystemBase::~LocalFileSystemBase()
{
}
-void LocalFileSystemBase::readFileSystem(ScriptExecutionContext* context, FileSystemType type, PassOwnPtr<AsyncFileSystemCallbacks> callbacks)
+void LocalFileSystemBase::resolveURL(ScriptExecutionContext* context, KURL fileSystemURL, PassOwnPtr<AsyncFileSystemCallbacks> callbacks)
{
if (!client() || !client()->allowFileSystem(context)) {
context->postTask(createCallbackTask(&fileSystemNotAllowed, callbacks));
return;
}
- client()->openFileSystem(context, type, callbacks, 0, OpenExistingFileSystem);
+ WebKit::Platform::current()->fileSystem()->resolveURL(fileSystemURL, callbacks);
}
void LocalFileSystemBase::requestFileSystem(ScriptExecutionContext* context, FileSystemType type, long long size, PassOwnPtr<AsyncFileSystemCallbacks> callbacks)

Powered by Google App Engine
This is Rietveld 408576698