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

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

Issue 2276943006: [USS] Move GetAllNodes from backend to controller (Closed)
Patch Set: git rebase master 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..958b2967d7b682b1c1a3d1abaf05f0eb73fc32c6 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,10 @@ 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.
maxbogue 2016/08/30 21:47:44 Add "Used for populating chrome://sync-internals."
Gang Wu 2016/08/30 23:46:06 Done.
+ virtual void GetAllNodes(const AllNodesCallback& callback) = 0;
+
protected:
friend class base::RefCountedDeleteOnMessageLoop<DataTypeController>;
friend class base::DeleteHelper<DataTypeController>;

Powered by Google App Engine
This is Rietveld 408576698