summaryrefslogtreecommitdiffstats
path: root/webkit/chromeos
diff options
context:
space:
mode:
authorkinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-16 04:20:06 +0000
committerkinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-16 04:20:06 +0000
commit3eb080d7d3350e2196eb70f2b0c662a3e493be2f (patch)
treefadf3dfb6718571885acfe6e501fc0c47dbf1386 /webkit/chromeos
parent1db76f2fa3aaf7b921a7514c1767bf8aa1f06410 (diff)
downloadchromium_src-3eb080d7d3350e2196eb70f2b0c662a3e493be2f.zip
chromium_src-3eb080d7d3350e2196eb70f2b0c662a3e493be2f.tar.gz
chromium_src-3eb080d7d3350e2196eb70f2b0c662a3e493be2f.tar.bz2
Add CreateFileSystemOperation() method to FileSystemContext
BUG=none TEST=no functional changes Review URL: http://codereview.chromium.org/8999017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117830 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/chromeos')
-rw-r--r--webkit/chromeos/fileapi/cros_mount_point_provider.cc13
-rw-r--r--webkit/chromeos/fileapi/cros_mount_point_provider.h7
2 files changed, 20 insertions, 0 deletions
diff --git a/webkit/chromeos/fileapi/cros_mount_point_provider.cc b/webkit/chromeos/fileapi/cros_mount_point_provider.cc
index 8951c0c7..a28cf159 100644
--- a/webkit/chromeos/fileapi/cros_mount_point_provider.cc
+++ b/webkit/chromeos/fileapi/cros_mount_point_provider.cc
@@ -16,6 +16,7 @@
#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebFileSystem.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h"
#include "webkit/chromeos/fileapi/file_access_permissions.h"
+#include "webkit/fileapi/file_system_operation.h"
#include "webkit/fileapi/file_system_util.h"
#include "webkit/fileapi/native_file_util.h"
#include "webkit/glue/webkit_glue.h"
@@ -177,6 +178,18 @@ fileapi::FileSystemFileUtil* CrosMountPointProvider::GetFileUtil() {
return local_file_util_.get();
}
+FileSystemOperationInterface* CrosMountPointProvider::CreateFileSystemOperation(
+ const GURL& origin_url,
+ FileSystemType file_system_type,
+ const FilePath& virtual_path,
+ scoped_ptr<FileSystemCallbackDispatcher> dispatcher,
+ base::MessageLoopProxy* file_proxy,
+ FileSystemContext* context) const {
+ // TODO(satorux,zel): instantiate appropriate FileSystemOperation that
+ // implements async/remote operations.
+ return new FileSystemOperation(dispatcher.Pass(), file_proxy, context);
+}
+
bool CrosMountPointProvider::GetVirtualPath(const FilePath& filesystem_path,
FilePath* virtual_path) {
for (MountPointMap::const_iterator iter = mount_point_map_.begin();
diff --git a/webkit/chromeos/fileapi/cros_mount_point_provider.h b/webkit/chromeos/fileapi/cros_mount_point_provider.h
index 7cf55ea..8ca6216 100644
--- a/webkit/chromeos/fileapi/cros_mount_point_provider.h
+++ b/webkit/chromeos/fileapi/cros_mount_point_provider.h
@@ -53,6 +53,13 @@ class CrosMountPointProvider
virtual bool IsRestrictedFileName(const FilePath& filename) const OVERRIDE;
virtual std::vector<FilePath> GetRootDirectories() const OVERRIDE;
virtual fileapi::FileSystemFileUtil* GetFileUtil() OVERRIDE;
+ virtual FileSystemOperationInterface* CreateFileSystemOperation(
+ const GURL& origin_url,
+ FileSystemType file_system_type,
+ const FilePath& virtual_path,
+ scoped_ptr<FileSystemCallbackDispatcher> dispatcher,
+ base::MessageLoopProxy* file_proxy,
+ FileSystemContext* context) const OVERRIDE;
// fileapi::ExternalFileSystemMountPointProvider overrides.
virtual void GrantFullAccessToExtension(