diff options
author | kinaba@chromium.org <kinaba@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-16 04:42:01 +0000 |
---|---|---|
committer | kinaba@chromium.org <kinaba@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-16 04:42:01 +0000 |
commit | 7e84b912f7ef7e5eb5b6b89342e14031d8c4845c (patch) | |
tree | cdd18c87d167886215d9ae9e840621b83f0a12e1 /webkit/chromeos | |
parent | 8203a05e750a3d2df91690e34eeffddd04b57b54 (diff) | |
download | chromium_src-7e84b912f7ef7e5eb5b6b89342e14031d8c4845c.zip chromium_src-7e84b912f7ef7e5eb5b6b89342e14031d8c4845c.tar.gz chromium_src-7e84b912f7ef7e5eb5b6b89342e14031d8c4845c.tar.bz2 |
Add CreateFileWriter method to MountPointProvider.
In this patch, just adding an interface. Concrete implementations that return
appropriate FileWriter subclass instances are on the way.
BUG=123993
TEST=check it compiles.
Review URL: https://chromiumcodereview.appspot.com/10332164
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@137363 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/chromeos')
-rw-r--r-- | webkit/chromeos/fileapi/cros_mount_point_provider.cc | 10 | ||||
-rw-r--r-- | webkit/chromeos/fileapi/cros_mount_point_provider.h | 4 |
2 files changed, 14 insertions, 0 deletions
diff --git a/webkit/chromeos/fileapi/cros_mount_point_provider.cc b/webkit/chromeos/fileapi/cros_mount_point_provider.cc index d796399..4b1b0c2 100644 --- a/webkit/chromeos/fileapi/cros_mount_point_provider.cc +++ b/webkit/chromeos/fileapi/cros_mount_point_provider.cc @@ -266,6 +266,16 @@ webkit_blob::FileReader* CrosMountPointProvider::CreateFileReader( return new fileapi::FileSystemFileReader(context, url, offset); } +fileapi::FileWriter* CrosMountPointProvider::CreateFileWriter( + const GURL& url, + int64 offset, + fileapi::FileSystemContext* context) const { + // TODO(kinaba,kinuko,benchan,satorux): return a writer for remote or local + // file system depending on the mount point location. + NOTIMPLEMENTED(); + return NULL; +} + 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 730e5d5..ae7bc51 100644 --- a/webkit/chromeos/fileapi/cros_mount_point_provider.h +++ b/webkit/chromeos/fileapi/cros_mount_point_provider.h @@ -72,6 +72,10 @@ class CrosMountPointProvider const GURL& path, int64 offset, fileapi::FileSystemContext* context) const OVERRIDE; + virtual fileapi::FileWriter* CreateFileWriter( + const GURL& url, + int64 offset, + fileapi::FileSystemContext* context) const OVERRIDE; virtual fileapi::FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE; // fileapi::ExternalFileSystemMountPointProvider overrides. |