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

Unified Diff: content/child/fileapi/file_system_dispatcher.h

Issue 19387002: Implement Worker-MainThread bridge for FileSystem API in Chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 5 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 | « no previous file | content/child/fileapi/file_system_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/fileapi/file_system_dispatcher.h
diff --git a/content/child/fileapi/file_system_dispatcher.h b/content/child/fileapi/file_system_dispatcher.h
index 4a8ced4c0c186513dd425ff470961f57c44224fa..e0260fda17e2274f9e30bf3c457f4b81c5e76e8c 100644
--- a/content/child/fileapi/file_system_dispatcher.h
+++ b/content/child/fileapi/file_system_dispatcher.h
@@ -40,7 +40,8 @@ class FileSystemDispatcher : public IPC::Listener {
const base::PlatformFileInfo& file_info)> MetadataCallback;
typedef base::Callback<void(
const base::PlatformFileInfo& file_info,
- const base::FilePath& platform_path)> CreateSnapshotFileCallback;
+ const base::FilePath& platform_path,
+ int request_id)> CreateSnapshotFileCallback;
typedef base::Callback<void(
const std::vector<fileapi::DirectoryEntry>& entries,
bool has_more)> ReadDirectoryCallback;
@@ -122,6 +123,9 @@ class FileSystemDispatcher : public IPC::Listener {
// raw PlatformFile returned from OpenFile.
void NotifyCloseFile(int file_open_id);
+ // The caller must send FileSystemHostMsg_DidReceiveSnapshot message
+ // with |request_id| passed to |success_callback| after the snapshot file
+ // is successfully received.
void CreateSnapshotFile(const GURL& file_path,
const CreateSnapshotFileCallback& success_callback,
const StatusCallback& error_callback);
« no previous file with comments | « no previous file | content/child/fileapi/file_system_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698