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

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: rebase 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 298b7989a2e2c02ce516e1d55cdcf0922c99f6d8..324e18f2679802f4b342271dec32b13c2068542a 100644
--- a/Source/modules/filesystem/LocalFileSystem.cpp
+++ b/Source/modules/filesystem/LocalFileSystem.cpp
@@ -58,14 +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;
}
- KURL storagePartition = KURL(KURL(), context->securityOrigin()->toString());
- WebKit::Platform::current()->fileSystem()->openFileSystem(storagePartition, static_cast<WebKit::WebFileSystemType>(type), false, callbacks);
+ 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