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

Unified Diff: chrome/common/file_system/file_system_dispatcher.h

Issue 3394003: Add Worker support for FileSystem API. (Closed)
Patch Set: '' Created 10 years, 3 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 | « chrome/chrome_common.gypi ('k') | chrome/common/file_system/file_system_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/file_system/file_system_dispatcher.h
diff --git a/chrome/common/file_system/file_system_dispatcher.h b/chrome/common/file_system/file_system_dispatcher.h
index 8214b1c2be0bb0e9dae9a0f319e7718c046bff9b..58b3cc72c2acd755b415abbf294552c0137b260e 100644
--- a/chrome/common/file_system/file_system_dispatcher.h
+++ b/chrome/common/file_system/file_system_dispatcher.h
@@ -10,17 +10,17 @@
#include "base/basictypes.h"
#include "base/file_util_proxy.h"
#include "base/id_map.h"
-#include "base/nullable_string16.h"
-#include "googleurl/src/gurl.h"
#include "ipc/ipc_channel.h"
#include "ipc/ipc_message.h"
#include "webkit/fileapi/file_system_callback_dispatcher.h"
+#include "webkit/fileapi/file_system_types.h"
namespace base {
struct PlatformFileInfo;
}
class FilePath;
+class GURL;
// Dispatches and sends file system related messages sent to/from a child
// process from/to the main browser process. There is one instance
@@ -32,6 +32,10 @@ class FileSystemDispatcher {
bool OnMessageReceived(const IPC::Message& msg);
+ void OpenFileSystem(const GURL& origin_url,
+ fileapi::FileSystemType type,
+ long long size,
+ fileapi::FileSystemCallbackDispatcher* dispatcher);
bool Move(const FilePath& src_path,
const FilePath& dest_path,
fileapi::FileSystemCallbackDispatcher* dispatcher);
@@ -54,6 +58,14 @@ class FileSystemDispatcher {
fileapi::FileSystemCallbackDispatcher* dispatcher);
private:
+ // Message handler for OpenFileSystem.
+ void OnOpenFileSystemRequestComplete(
+ int request_id,
+ bool accepted,
+ const std::string& name,
+ const FilePath& root_path);
+
+ // Message handlers for regular file system operations.
void DidSucceed(int request_id);
void DidReadMetadata(int request_id,
const base::PlatformFileInfo& file_info);
« no previous file with comments | « chrome/chrome_common.gypi ('k') | chrome/common/file_system/file_system_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698