Chromium Code Reviews| 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..a89b4728ac2ce778d9de111d2d55c57f6fa5851e 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; |
| @@ -208,8 +213,8 @@ class WEBKIT_STORAGE_BROWSER_EXPORT FileSystemContext |
| 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. |
| + // existence of the file entry referred by the URL. Can be called from any |
| + // thread with a message loop. |callback| is invoked on the caller thread. |
|
kinuko
2014/04/21 08:56:02
So the new contract is: this returns OK if the giv
kinaba
2014/04/21 09:21:59
Exactly. Updated the comment.
|
| void ResolveURL( |
| const FileSystemURL& url, |
| const ResolveURLCallback& callback); |