diff options
author | kinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-19 05:40:19 +0000 |
---|---|---|
committer | kinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-19 05:40:19 +0000 |
commit | ad117b1784c28bf1cfd80d6d7ea85079eff4019d (patch) | |
tree | c96b4ab4f93df02784c9b287ac997cd1402a3159 /webkit/fileapi/sandbox_mount_point_provider.cc | |
parent | ee594e4b7a5bd3def2c0e4be7aa2e24e6e215a89 (diff) | |
download | chromium_src-ad117b1784c28bf1cfd80d6d7ea85079eff4019d.zip chromium_src-ad117b1784c28bf1cfd80d6d7ea85079eff4019d.tar.gz chromium_src-ad117b1784c28bf1cfd80d6d7ea85079eff4019d.tar.bz2 |
Add FileSystemContext::CreateFileReader() which returns appropriate Reader instance by cracking a given filesystem URL.
In a short term a returned reader is to be used by FileSystemURLRequestJob and generalized cross-filesystem operation implementation.
For now in most cases it just returns a default FileSystemFileReader which internally calls CreateSnapshotFile (i.e. downloads everything first).
(diff to http://codereview.chromium.org/10038019/)
BUG=114999
TEST=FileSystemURLRequestJobTest.*
Review URL: http://codereview.chromium.org/10082002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132957 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/fileapi/sandbox_mount_point_provider.cc')
-rw-r--r-- | webkit/fileapi/sandbox_mount_point_provider.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/webkit/fileapi/sandbox_mount_point_provider.cc b/webkit/fileapi/sandbox_mount_point_provider.cc index 777b5ba..0ab51204 100644 --- a/webkit/fileapi/sandbox_mount_point_provider.cc +++ b/webkit/fileapi/sandbox_mount_point_provider.cc @@ -16,6 +16,7 @@ #include "base/metrics/histogram.h" #include "googleurl/src/gurl.h" #include "net/base/net_util.h" +#include "webkit/fileapi/file_system_file_reader.h" #include "webkit/fileapi/file_system_operation.h" #include "webkit/fileapi/file_system_operation_context.h" #include "webkit/fileapi/file_system_options.h" @@ -433,6 +434,14 @@ SandboxMountPointProvider::CreateFileSystemOperation( return new FileSystemOperation(file_proxy, context); } +webkit_blob::FileReader* SandboxMountPointProvider::CreateFileReader( + const GURL& url, + int64 offset, + base::MessageLoopProxy* file_proxy, + FileSystemContext* context) const { + return new FileSystemFileReader(file_proxy, context, url, offset); +} + FilePath SandboxMountPointProvider::old_base_path() const { return profile_path_.Append(kOldFileSystemDirectory); } |