Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(154)

Unified Diff: webkit/fileapi/file_system_mount_point_provider.h

Issue 10082002: Add FileSystemMountPointProvider::CreateFileReader() which returns appropriate Reader instance (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/fileapi/file_system_context.cc ('k') | webkit/fileapi/file_system_url_request_job.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/file_system_mount_point_provider.h
diff --git a/webkit/fileapi/file_system_mount_point_provider.h b/webkit/fileapi/file_system_mount_point_provider.h
index fa8ca133836ba08b2395bd8d864e83b05d0207dc..18e1d9ab2973d7fbc4d954073a46800a08dc24da 100644
--- a/webkit/fileapi/file_system_mount_point_provider.h
+++ b/webkit/fileapi/file_system_mount_point_provider.h
@@ -20,6 +20,10 @@ namespace base {
class MessageLoopProxy;
}
+namespace webkit_blob {
+class FileReader;
+}
+
namespace fileapi {
class FileSystemContext;
@@ -90,6 +94,17 @@ class FileSystemMountPointProvider {
const FilePath& virtual_path,
base::MessageLoopProxy* file_proxy,
FileSystemContext* context) const = 0;
+
+ // Creates a new file reader for a given filesystem URL |url| with a offset
+ // |offset|.
+ // The returned object must be owned and managed by the caller.
+ // This method itself does *not* check if the given path exists and is a
+ // regular file.
+ virtual webkit_blob::FileReader* CreateFileReader(
+ const GURL& url,
+ int64 offset,
+ base::MessageLoopProxy* file_proxy,
+ FileSystemContext* context) const = 0;
};
// An interface to control external file system access permissions.
« no previous file with comments | « webkit/fileapi/file_system_context.cc ('k') | webkit/fileapi/file_system_url_request_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698