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

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: scoped_ptr 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..f2f4ea2559d923efd808196753123fc175c59ac2 100644
--- a/chrome/browser/sync_file_system/remote_file_sync_service.h
+++ b/chrome/browser/sync_file_system/remote_file_sync_service.h
@@ -11,6 +11,7 @@
#include <vector>
#include "base/basictypes.h"
+#include "base/memory/scoped_ptr.h"
#include "chrome/browser/sync_file_system/conflict_resolution_policy.h"
#include "chrome/browser/sync_file_system/sync_callbacks.h"
#include "chrome/browser/sync_file_system/sync_file_metadata.h"
@@ -111,6 +112,8 @@ class RemoteFileSyncService {
// For GetOriginStatusMap.
typedef std::map<GURL, std::string> OriginStatusMap;
+ typedef base::Callback<void(scoped_ptr<OriginStatusMap> status_map)>
+ StatusMapCallback;
// For GetRemoteVersions.
typedef base::Callback<void(SyncStatusCode status,
@@ -192,7 +195,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