Index: webkit/fileapi/file_system_context.h |
diff --git a/webkit/fileapi/file_system_context.h b/webkit/fileapi/file_system_context.h |
index d7203c61d39422c9ee12001faa121e1a49af48d5..f7e1086156c5a892d64d83ee2fad28bb265285fe 100644 |
--- a/webkit/fileapi/file_system_context.h |
+++ b/webkit/fileapi/file_system_context.h |
@@ -24,6 +24,7 @@ class QuotaManagerProxy; |
namespace fileapi { |
class ExternalFileSystemMountPointProvider; |
+class FileSystemCallbackDispatcher; |
class FileSystemContext; |
class FileSystemFileUtil; |
class FileSystemMountPointProvider; |
@@ -84,6 +85,18 @@ class FileSystemContext |
// calling GetMountPointProvider(kFileSystemTypeExternal). |
ExternalFileSystemMountPointProvider* external_provider() const; |
+ // Opens the filesystem for the given |origin_url| and |type|, and dispatches |
+ // the DidOpenFileSystem callback of the given |dispatcher|. |
+ // If |create| is true this may actually set up a filesystem instance |
+ // (e.g. by creating the root directory or initializing the database |
+ // entry etc). |
+ // TODO(kinuko): replace the dispatcher with a regular callback. |
+ void OpenFileSystem( |
+ const GURL& origin_url, |
+ FileSystemType type, |
+ bool create, |
+ scoped_ptr<FileSystemCallbackDispatcher> dispatcher); |
+ |
private: |
friend struct DefaultContextDeleter; |
void DeleteOnCorrectThread() const; |