Chromium Code Reviews| Index: sync/syncable/directory.h |
| diff --git a/sync/syncable/directory.h b/sync/syncable/directory.h |
| index 61c55224911d4b894ab0960ee73fec0f686691b2..1ea0d122dd2b896e197ece44a88d44a755e19707 100644 |
| --- a/sync/syncable/directory.h |
| +++ b/sync/syncable/directory.h |
| @@ -321,6 +321,9 @@ class SYNC_EXPORT Directory { |
| bool GetChildHandlesByHandle(BaseTransaction*, int64 handle, |
| ChildHandles* result); |
| + // Counts all items under the given node, including the node itself. |
| + int GetTotalNodeCount(BaseTransaction*, EntryKernel* kernel_) const; |
| + |
| // Returns true iff |id| has children. |
| bool HasChildren(BaseTransaction* trans, const Id& id); |
| @@ -454,6 +457,13 @@ class SYNC_EXPORT Directory { |
| bool SafeToPurgeFromMemory(WriteTransaction* trans, |
| const EntryKernel* const entry) const; |
| + |
|
Nicolas Zea
2013/05/28 22:12:39
remove extra newline, and period at end of comment
rlarocque
2013/05/29 19:01:13
Done.
|
| + // A helper used by GetTotalNodeCount |
| + void GetTotalNodeCountImpl( |
| + BaseTransaction*, |
| + EntryKernel* kernel_, |
| + std::deque<const OrderedChildSet*>* child_sets) const; |
| + |
| Directory& operator = (const Directory&); |
| public: |