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

Unified Diff: sync/internal_api/public/base_node.h

Issue 14667013: sync: Better iteration in GenericChangeProcessor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Undo unnecessary change Created 7 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: sync/internal_api/public/base_node.h
diff --git a/sync/internal_api/public/base_node.h b/sync/internal_api/public/base_node.h
index 7cf2edb2af257ab15ebf97cb2afaa13afeccf5e9..5cdac2880bc97167567010bebc7b86c264c7b33f 100644
--- a/sync/internal_api/public/base_node.h
+++ b/sync/internal_api/public/base_node.h
@@ -191,6 +191,9 @@ class SYNC_EXPORT BaseNode {
// children, return 0.
int64 GetFirstChildId() const;
+ // Returns an ordered list of the children of this node.
Nicolas Zea 2013/05/22 22:34:02 nit: mention what the order is?
rlarocque 2013/05/23 00:39:39 Done.
+ void GetChildIds(std::vector<int64>* result) const;
+
// Returns the total number of nodes including and beneath this node.
// Recursively iterates through all children.
int GetTotalNodeCount() const;

Powered by Google App Engine
This is Rietveld 408576698