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 769420f17e5650fbab8e9147720bb8e92e60121a..997b5fe1e5b7c591f34da9076ba8c5d8dea251a6 100644 |
--- a/webkit/browser/fileapi/file_system_context.h |
+++ b/webkit/browser/fileapi/file_system_context.h |
@@ -154,6 +154,13 @@ class WEBKIT_STORAGE_BROWSER_EXPORT FileSystemContext |
const std::string& name, |
const GURL& root)> OpenFileSystemCallback; |
+ // Used for ResolveURL. |
+ typedef base::Callback<void(base::PlatformFileError result, |
+ const std::string& name, |
+ const GURL& root, |
+ const base::FilePath& file_path, |
+ bool is_directory)> ResolveURLCallback; |
+ |
// Used for DeleteFileSystem. |
typedef base::Callback<void(base::PlatformFileError result)> |
DeleteFileSystemCallback; |
@@ -169,6 +176,11 @@ class WEBKIT_STORAGE_BROWSER_EXPORT FileSystemContext |
OpenFileSystemMode mode, |
const OpenFileSystemCallback& callback); |
+ // TODO(nhiroki): writing a comment. |
+ void ResolveURL( |
+ const GURL& filesystem_url, |
+ const ResolveURLCallback& callback); |
+ |
// Deletes the filesystem for the given |origin_url| and |type|. This should |
// be called on the IO Thread. |
void DeleteFileSystem( |
@@ -270,6 +282,20 @@ class WEBKIT_STORAGE_BROWSER_EXPORT FileSystemContext |
// the constructor. |
void RegisterBackend(FileSystemBackend* backend); |
+ void DidOpenFileSystemForResolveURL( |
+ const FileSystemURL& url, |
+ const ResolveURLCallback& callback, |
+ const GURL& filesystem_root, |
+ const std::string& filesystem_name, |
+ base::PlatformFileError error); |
+ void DidGetMetadataForResolveURL( |
+ const FileSystemURL& url, |
+ const FileSystemContext::ResolveURLCallback& callback, |
+ const GURL& filesystem_roor, |
+ const std::string& filesystem_name, |
+ base::PlatformFileError error, |
+ const base::PlatformFileInfo& file_info); |
+ |
// Returns a FileSystemBackend, used only by test code. |
SandboxFileSystemBackend* sandbox_backend() const { |
return sandbox_backend_.get(); |