Index: webkit/browser/fileapi/file_system_context.h |
diff --git a/webkit/browser/fileapi/file_system_context.h b/webkit/browser/fileapi/file_system_context.h |
index ba91af7ef97b9510c00018581b385c2a5988d990..c5b5ee34e9cb97f3b56fabefcfa6498a74f2b141 100644 |
--- a/webkit/browser/fileapi/file_system_context.h |
+++ b/webkit/browser/fileapi/file_system_context.h |
@@ -188,10 +188,15 @@ class WEBKIT_STORAGE_BROWSER_EXPORT FileSystemContext |
OpenFileSystemCallback; |
// Used for ResolveURL. |
+ enum ResolvedEntryType { |
+ RESOLVED_ENTRY_FILE, |
+ RESOLVED_ENTRY_DIRECTORY, |
+ RESOLVED_ENTRY_NOT_FOUND, |
+ }; |
typedef base::Callback<void(base::File::Error result, |
const FileSystemInfo& info, |
const base::FilePath& file_path, |
- bool is_directory)> ResolveURLCallback; |
+ ResolvedEntryType type)> ResolveURLCallback; |
// Used for DeleteFileSystem and OpenPluginPrivateFileSystem. |
typedef base::Callback<void(base::File::Error result)> StatusCallback; |
@@ -207,9 +212,11 @@ class WEBKIT_STORAGE_BROWSER_EXPORT FileSystemContext |
OpenFileSystemMode mode, |
const OpenFileSystemCallback& callback); |
- // Opens the filesystem for the given |url| as read-only, and then checks the |
- // existence of the file entry referred by the URL. This should be called on |
- // the IO thread. |
+ // Opens the filesystem for the given |url| as read-only. It succeeds even if |
+ // the entry referred by the URL does not exist, but in that case |
kinuko
2014/04/21 10:01:37
nit: this might be read it could always succeed, i
kinaba
2014/04/22 00:32:54
Done.
|
+ // RESOLVED_ENTRY_NOT_FOUND type is returned to the callback for indicating |
+ // the absence. Can be called from any thread with a message loop. |callback| |
+ // is invoked on the caller thread. |
void ResolveURL( |
const FileSystemURL& url, |
const ResolveURLCallback& callback); |