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

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

Issue 23856002: SyncFS: Support resolveLocalFileSystemURL on SyncFileSystem (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
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 e0260fda17e2274f9e30bf3c457f4b81c5e76e8c..789887624a008ba8a853176165ec4fdfe5171f1d 100644
--- a/content/child/fileapi/file_system_dispatcher.h
+++ b/content/child/fileapi/file_system_dispatcher.h
@@ -49,6 +49,11 @@ class FileSystemDispatcher : public IPC::Listener {
const std::string& name,
const GURL& root)> OpenFileSystemCallback;
typedef base::Callback<void(
+ const std::string& name,
+ const GURL& root,
+ const base::FilePath& file_path,
+ bool is_directory)> ResolveURLCallback;
+ typedef base::Callback<void(
int64 bytes,
bool complete)> WriteCallback;
typedef base::Callback<void(
@@ -68,6 +73,9 @@ class FileSystemDispatcher : public IPC::Listener {
bool create,
const OpenFileSystemCallback& success_callback,
const StatusCallback& error_callback);
+ void ResolveURL(const GURL& filesystem_url,
+ const ResolveURLCallback& success_callback,
+ const StatusCallback& error_callback);
void DeleteFileSystem(const GURL& origin_url,
fileapi::FileSystemType type,
const StatusCallback& callback);
@@ -137,6 +145,11 @@ class FileSystemDispatcher : public IPC::Listener {
void OnDidOpenFileSystem(int request_id,
const std::string& name,
const GURL& root);
+ void OnDidResolveURL(int request_id,
+ const std::string& name,
+ const GURL& root,
+ const base::FilePath& file_path,
+ bool is_directory);
void OnDidSucceed(int request_id);
void OnDidReadMetadata(int request_id,
const base::PlatformFileInfo& file_info);

Powered by Google App Engine
This is Rietveld 408576698