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

Unified Diff: webkit/fileapi/file_system_context.h

Issue 10082002: Add FileSystemMountPointProvider::CreateFileReader() which returns appropriate Reader instance (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' 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
Index: webkit/fileapi/file_system_context.h
diff --git a/webkit/fileapi/file_system_context.h b/webkit/fileapi/file_system_context.h
index 35e043debe7f3b8999847632375c2e4c72bec2aa..d72a3ca745fdef0a1e2b6d2d962bbeca866482a3 100644
--- a/webkit/fileapi/file_system_context.h
+++ b/webkit/fileapi/file_system_context.h
@@ -25,6 +25,10 @@ namespace quota {
class QuotaManagerProxy;
}
+namespace webkit_blob {
+class FileReader;
+}
+
namespace fileapi {
class ExternalFileSystemMountPointProvider;
@@ -114,6 +118,17 @@ class FileSystemContext
const GURL& url,
base::MessageLoopProxy* file_proxy);
+ // Creates new FileReader instance to read a file pointed by the given
+ // filesystem URL |url| starting from |offset|.
+ // This method internally cracks the |url|, get an appropriate
+ // MountPointProvider for the URL and call the provider's CreateFileReader.
+ // The resolved MountPointProvider could perform further specialization
+ // depending on the filesystem type pointed by the |url|.
+ webkit_blob::FileReader* CreateFileReader(
+ const GURL& url,
+ int64 offset,
+ base::MessageLoopProxy* file_proxy);
+
private:
friend struct DefaultContextDeleter;
void DeleteOnCorrectThread() const;

Powered by Google App Engine
This is Rietveld 408576698