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

Unified Diff: Source/core/inspector/InspectorFileSystemAgent.cpp

Issue 23537011: FileAPI: Add WebFileSystem::resolveURL (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
« no previous file with comments | « no previous file | Source/core/platform/AsyncFileSystemCallbacks.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InspectorFileSystemAgent.cpp
diff --git a/Source/core/inspector/InspectorFileSystemAgent.cpp b/Source/core/inspector/InspectorFileSystemAgent.cpp
index 872656560117d8eedd6bda1cc5a9b497e510dc8f..91e80b7eff186d351cb58acfc9793adf2f9f633c 100644
--- a/Source/core/inspector/InspectorFileSystemAgent.cpp
+++ b/Source/core/inspector/InspectorFileSystemAgent.cpp
@@ -163,7 +163,8 @@ void FileSystemRootRequest::start(ScriptExecutionContext* scriptExecutionContext
RefPtr<EntryCallback> successCallback = CallbackDispatcherFactory<EntryCallback>::create(this, &FileSystemRootRequest::didGetEntry);
OwnPtr<ResolveURICallbacks> fileSystemCallbacks = ResolveURICallbacks::create(successCallback, errorCallback, scriptExecutionContext, type, "/");
- LocalFileSystem::from(scriptExecutionContext)->readFileSystem(scriptExecutionContext, type, fileSystemCallbacks.release());
+ // TODO(nhiroki)
+ LocalFileSystem::from(scriptExecutionContext)->readFileSystem(scriptExecutionContext, KURL(), fileSystemCallbacks.release());
}
bool FileSystemRootRequest::didGetEntry(Entry* entry)
@@ -233,7 +234,7 @@ void DirectoryContentRequest::start(ScriptExecutionContext* scriptExecutionConte
RefPtr<EntryCallback> successCallback = CallbackDispatcherFactory<EntryCallback>::create(this, &DirectoryContentRequest::didGetEntry);
OwnPtr<ResolveURICallbacks> fileSystemCallbacks = ResolveURICallbacks::create(successCallback, errorCallback, scriptExecutionContext, type, path);
- LocalFileSystem::from(scriptExecutionContext)->readFileSystem(scriptExecutionContext, type, fileSystemCallbacks.release());
+ LocalFileSystem::from(scriptExecutionContext)->readFileSystem(scriptExecutionContext, m_url, fileSystemCallbacks.release());
}
bool DirectoryContentRequest::didGetEntry(Entry* entry)
@@ -357,7 +358,7 @@ void MetadataRequest::start(ScriptExecutionContext* scriptExecutionContext)
RefPtr<EntryCallback> successCallback = CallbackDispatcherFactory<EntryCallback>::create(this, &MetadataRequest::didGetEntry);
OwnPtr<ResolveURICallbacks> fileSystemCallbacks = ResolveURICallbacks::create(successCallback, errorCallback, scriptExecutionContext, type, m_path);
kinuko 2013/09/05 11:12:11 Now that we can crack the given URL in the browser
nhiroki 2013/09/12 05:15:23 Done.
- LocalFileSystem::from(scriptExecutionContext)->readFileSystem(scriptExecutionContext, type, fileSystemCallbacks.release());
+ LocalFileSystem::from(scriptExecutionContext)->readFileSystem(scriptExecutionContext, m_url, fileSystemCallbacks.release());
}
bool MetadataRequest::didGetEntry(Entry* entry)
@@ -464,7 +465,7 @@ void FileContentRequest::start(ScriptExecutionContext* scriptExecutionContext)
RefPtr<EntryCallback> successCallback = CallbackDispatcherFactory<EntryCallback>::create(this, &FileContentRequest::didGetEntry);
OwnPtr<ResolveURICallbacks> fileSystemCallbacks = ResolveURICallbacks::create(successCallback, errorCallback, scriptExecutionContext, type, path);
- LocalFileSystem::from(scriptExecutionContext)->readFileSystem(scriptExecutionContext, type, fileSystemCallbacks.release());
+ LocalFileSystem::from(scriptExecutionContext)->readFileSystem(scriptExecutionContext, m_url, fileSystemCallbacks.release());
}
bool FileContentRequest::didGetEntry(Entry* entry)
@@ -577,7 +578,7 @@ void DeleteEntryRequest::start(ScriptExecutionContext* scriptExecutionContext)
} else {
RefPtr<EntryCallback> successCallback = CallbackDispatcherFactory<EntryCallback>::create(this, &DeleteEntryRequest::didGetEntry);
OwnPtr<ResolveURICallbacks> fileSystemCallbacks = ResolveURICallbacks::create(successCallback, errorCallback, scriptExecutionContext, type, path);
- LocalFileSystem::from(scriptExecutionContext)->readFileSystem(scriptExecutionContext, type, fileSystemCallbacks.release());
+ LocalFileSystem::from(scriptExecutionContext)->readFileSystem(scriptExecutionContext, m_url, fileSystemCallbacks.release());
}
}
« no previous file with comments | « no previous file | Source/core/platform/AsyncFileSystemCallbacks.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698