Index: webkit/fileapi/file_system_context.h |
diff --git a/webkit/fileapi/file_system_context.h b/webkit/fileapi/file_system_context.h |
index f7e1086156c5a892d64d83ee2fad28bb265285fe..d57b2e337f0e3010781455645199f0e9e853c947 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" |
#include "webkit/fileapi/file_system_types.h" |
#include "webkit/quota/special_storage_policy.h" |
@@ -28,6 +29,7 @@ class FileSystemCallbackDispatcher; |
class FileSystemContext; |
class FileSystemFileUtil; |
class FileSystemMountPointProvider; |
+class FileSystemOperationInterface; |
class FileSystemOptions; |
class FileSystemPathManager; |
class FileSystemQuotaUtil; |
@@ -97,6 +99,16 @@ class FileSystemContext |
bool create, |
scoped_ptr<FileSystemCallbackDispatcher> dispatcher); |
+ // Creates a new FileSystemOperation instance by cracking |
+ // the given filesystem URL |url| to get an appropriate MountPointProvider |
+ // and calling the provider's corresponding CreateFileSystemOperation method. |
+ // The resolved MountPointProvider could perform further specialization |
+ // depending on the filesystem type pointed by the |url|. |
+ FileSystemOperationInterface* CreateFileSystemOperation( |
+ const GURL& url, |
+ scoped_ptr<FileSystemCallbackDispatcher> dispatcher, |
+ base::MessageLoopProxy* file_proxy); |
+ |
private: |
friend struct DefaultContextDeleter; |
void DeleteOnCorrectThread() const; |