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

Unified Diff: components/browser_sync/browser/profile_sync_service.h

Issue 2276943006: [USS] Move GetAllNodes from backend to controller (Closed)
Patch Set: Created 4 years, 4 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: components/browser_sync/browser/profile_sync_service.h
diff --git a/components/browser_sync/browser/profile_sync_service.h b/components/browser_sync/browser/profile_sync_service.h
index f6c426846c7385446f3a789785bec1c64988ead9..0d9bad5774eb6ad16c89d441c580e8c816a4ee3d 100644
--- a/components/browser_sync/browser/profile_sync_service.h
+++ b/components/browser_sync/browser/profile_sync_service.h
@@ -803,6 +803,14 @@ class ProfileSyncService : public sync_driver::SyncService,
// Called when a SetupInProgressHandle issued by this instance is destroyed.
virtual void OnSetupInProgressHandleDestroyed();
+ // Returns a ListValue representing all nodes for the specified types through
+ // |callback| on this thread.
+ void GetAllNodesForTypes(
+ syncer::ModelTypeSet types,
+ scoped_refptr<base::SequencedTaskRunner> task_runner,
maxbogue 2016/08/25 23:38:59 You don't need to pass a task runner here.
Gang Wu 2016/08/26 16:48:04 Done.
+ base::Callback<void(const std::vector<syncer::ModelType>& type,
+ ScopedVector<base::ListValue>)> callback);
+
// This profile's SyncClient, which abstracts away non-Sync dependencies and
// the Sync API component factory.
std::unique_ptr<sync_driver::SyncClient> sync_client_;

Powered by Google App Engine
This is Rietveld 408576698