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

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: build fix 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
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..b53d523a80c572980c00dc40e184bb1fe66639df 100644
--- a/webkit/fileapi/file_system_context.h
+++ b/webkit/fileapi/file_system_context.h
@@ -7,6 +7,7 @@
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
+#include "base/platform_file.h"
ericu 2012/01/09 18:44:44 Why include platform_file.h?
kinuko 2012/01/10 09:48:53 Removed.
#include "webkit/fileapi/file_system_types.h"
#include "webkit/quota/special_storage_policy.h"
@@ -24,6 +25,7 @@ class QuotaManagerProxy;
namespace fileapi {
class ExternalFileSystemMountPointProvider;
+class FileSystemCallbackDispatcher;
class FileSystemContext;
class FileSystemFileUtil;
class FileSystemMountPointProvider;
@@ -84,6 +86,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 setup a filesystem instance
ericu 2012/01/09 18:44:44 s/setup/set up/
kinuko 2012/01/10 09:48:53 Done.
+ // (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;

Powered by Google App Engine
This is Rietveld 408576698