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

Unified Diff: chrome/browser/sync/profile_sync_service.h

Issue 224563004: sync: Re-implement getAllNodes WebUI function (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comment fix Created 6 years, 9 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 | « chrome/browser/sync/glue/sync_backend_host_mock.cc ('k') | chrome/browser/sync/profile_sync_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/profile_sync_service.h
diff --git a/chrome/browser/sync/profile_sync_service.h b/chrome/browser/sync/profile_sync_service.h
index 79b2a52657a5ed9577560b9a270eaa7320710a91..926a98510d21f5e45c066b6ea6d5683521554b76 100644
--- a/chrome/browser/sync/profile_sync_service.h
+++ b/chrome/browser/sync/profile_sync_service.h
@@ -276,6 +276,15 @@ class ProfileSyncService : public ProfileSyncServiceBase,
void RemoveProtocolEventObserver(
browser_sync::ProtocolEventObserver* observer);
+ // Asynchronously fetches base::Value representations of all sync nodes and
+ // returns them to the specified callback on this thread.
+ //
+ // These requests can live a long time and return when you least expect it.
+ // For safety, the callback should be bound to some sort of WeakPtr<> or
+ // scoped_refptr<>.
+ void GetAllNodes(
+ const base::Callback<void(scoped_ptr<base::ListValue>)>& callback);
+
void RegisterAuthNotifications();
void UnregisterAuthNotifications();
« no previous file with comments | « chrome/browser/sync/glue/sync_backend_host_mock.cc ('k') | chrome/browser/sync/profile_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698