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

Unified Diff: chrome/browser/sync_file_system/remote_file_sync_service.h

Issue 268413002: [SyncFS] Make DumpFiles async (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: work for a nit Created 6 years, 7 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: chrome/browser/sync_file_system/remote_file_sync_service.h
diff --git a/chrome/browser/sync_file_system/remote_file_sync_service.h b/chrome/browser/sync_file_system/remote_file_sync_service.h
index 4d0245887a294e33c697f50cb4f2c4f4ac2b4b0c..7c98d6d189ca114ca14d5f3b364bdf0a257a0fae 100644
--- a/chrome/browser/sync_file_system/remote_file_sync_service.h
+++ b/chrome/browser/sync_file_system/remote_file_sync_service.h
@@ -120,6 +120,9 @@ class RemoteFileSyncService {
webkit_blob::ScopedFile downloaded)>
DownloadVersionCallback;
+ // For DumpFile.
+ typedef base::Callback<void(scoped_ptr<base::ListValue> list)> ListCallback;
+
// Creates an initialized RemoteFileSyncService for backend |version|
// for |context|.
static scoped_ptr<RemoteFileSyncService> CreateForBrowserContext(
@@ -191,8 +194,9 @@ class RemoteFileSyncService {
// corresponding sync statuses.
virtual void GetOriginStatusMap(OriginStatusMap* status_map) = 0;
- // Returns file metadata for |origin|.
- virtual scoped_ptr<base::ListValue> DumpFiles(const GURL& origin) = 0;
+ // Returns file metadata for |origin| to call |callback|.
+ virtual void DumpFiles(const GURL& origin,
+ const ListCallback& callback) = 0;
// Returns the dump of internal database.
virtual scoped_ptr<base::ListValue> DumpDatabase() = 0;

Powered by Google App Engine
This is Rietveld 408576698