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

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

Issue 294893005: [SyncFS] Make GetOriginStatusMap asynchronous (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Work for nits 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 8a310548f4c6f122c828809ab80bb3c360d5913d..6f71c8a1c9d4a85cb0b00d9ac501a15b0f8a8594 100644
--- a/chrome/browser/sync_file_system/remote_file_sync_service.h
+++ b/chrome/browser/sync_file_system/remote_file_sync_service.h
@@ -111,6 +111,8 @@ class RemoteFileSyncService {
// For GetOriginStatusMap.
typedef std::map<GURL, std::string> OriginStatusMap;
+ typedef base::Callback<void(const OriginStatusMap& status_map)>
+ StatusMapCallback;
tzik 2014/05/22 03:51:13 # As we chatted locally. Can we change the paramet
peria 2014/05/22 04:37:58 Done.
// For GetRemoteVersions.
typedef base::Callback<void(SyncStatusCode status,
@@ -192,7 +194,7 @@ class RemoteFileSyncService {
// Returns all origins along with an arbitrary string description of their
// corresponding sync statuses.
- virtual void GetOriginStatusMap(OriginStatusMap* status_map) = 0;
+ virtual void GetOriginStatusMap(const StatusMapCallback& callback) = 0;
// Returns file metadata for |origin| to call |callback|.
virtual void DumpFiles(const GURL& origin,

Powered by Google App Engine
This is Rietveld 408576698