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

Unified Diff: components/sync/driver/data_type_controller.h

Issue 2276943006: [USS] Move GetAllNodes from backend to controller (Closed)
Patch Set: update for Max 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/sync/driver/data_type_controller.h
diff --git a/components/sync/driver/data_type_controller.h b/components/sync/driver/data_type_controller.h
index 7035b5dcb78b8dc994a0c4529f7368b64a008558..3221d83b42c8c5e81728470b9d1f0e16b6ae21d4 100644
--- a/components/sync/driver/data_type_controller.h
+++ b/components/sync/driver/data_type_controller.h
@@ -76,6 +76,10 @@ class DataTypeController
typedef base::Callback<void(syncer::ModelType, syncer::SyncError)>
ModelLoadCallback;
+ typedef base::Callback<void(const syncer::ModelType,
+ std::unique_ptr<base::ListValue>)>
+ AllNodesCallback;
+
typedef std::map<syncer::ModelType, scoped_refptr<DataTypeController>>
TypeMap;
typedef std::map<syncer::ModelType, DataTypeController::State> StateMap;
@@ -153,6 +157,11 @@ class DataTypeController
// Returns true by default.
virtual bool ReadyForStart() const;
+ // Returns a ListValue representing all nodes for this data type through
+ // |callback| on this thread.
+ // Used for populating nodes in Sync Node Browser of chrome://sync-internals.
+ virtual void GetAllNodes(const AllNodesCallback& callback) = 0;
+
protected:
friend class base::RefCountedDeleteOnMessageLoop<DataTypeController>;
friend class base::DeleteHelper<DataTypeController>;
« no previous file with comments | « components/sync/core_impl/test/fake_sync_manager.cc ('k') | components/sync/driver/directory_data_type_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698