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

Unified Diff: webkit/fileapi/file_system_context.h

Issue 9016020: Cleanup FileSystemOperation for preparing for adding FSO-factory method (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 11 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/chromeos/fileapi/cros_mount_point_provider.cc ('k') | webkit/fileapi/file_system_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/file_system_context.h
diff --git a/webkit/fileapi/file_system_context.h b/webkit/fileapi/file_system_context.h
index d7203c61d39422c9ee12001faa121e1a49af48d5..f7e1086156c5a892d64d83ee2fad28bb265285fe 100644
--- a/webkit/fileapi/file_system_context.h
+++ b/webkit/fileapi/file_system_context.h
@@ -24,6 +24,7 @@ class QuotaManagerProxy;
namespace fileapi {
class ExternalFileSystemMountPointProvider;
+class FileSystemCallbackDispatcher;
class FileSystemContext;
class FileSystemFileUtil;
class FileSystemMountPointProvider;
@@ -84,6 +85,18 @@ class FileSystemContext
// calling GetMountPointProvider(kFileSystemTypeExternal).
ExternalFileSystemMountPointProvider* external_provider() const;
+ // Opens the filesystem for the given |origin_url| and |type|, and dispatches
+ // the DidOpenFileSystem callback of the given |dispatcher|.
+ // If |create| is true this may actually set up a filesystem instance
+ // (e.g. by creating the root directory or initializing the database
+ // entry etc).
+ // TODO(kinuko): replace the dispatcher with a regular callback.
+ void OpenFileSystem(
+ const GURL& origin_url,
+ FileSystemType type,
+ bool create,
+ scoped_ptr<FileSystemCallbackDispatcher> dispatcher);
+
private:
friend struct DefaultContextDeleter;
void DeleteOnCorrectThread() const;
« no previous file with comments | « webkit/chromeos/fileapi/cros_mount_point_provider.cc ('k') | webkit/fileapi/file_system_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698