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..b53d523a80c572980c00dc40e184bb1fe66639df 100644 |
--- a/webkit/fileapi/file_system_context.h |
+++ b/webkit/fileapi/file_system_context.h |
@@ -7,6 +7,7 @@ |
#include "base/memory/ref_counted.h" |
#include "base/memory/scoped_ptr.h" |
+#include "base/platform_file.h" |
ericu
2012/01/09 18:44:44
Why include platform_file.h?
kinuko
2012/01/10 09:48:53
Removed.
|
#include "webkit/fileapi/file_system_types.h" |
#include "webkit/quota/special_storage_policy.h" |
@@ -24,6 +25,7 @@ class QuotaManagerProxy; |
namespace fileapi { |
class ExternalFileSystemMountPointProvider; |
+class FileSystemCallbackDispatcher; |
class FileSystemContext; |
class FileSystemFileUtil; |
class FileSystemMountPointProvider; |
@@ -84,6 +86,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 setup a filesystem instance |
ericu
2012/01/09 18:44:44
s/setup/set up/
kinuko
2012/01/10 09:48:53
Done.
|
+ // (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; |