Index: sync/sessions/ordered_commit_set.h |
diff --git a/sync/sessions/ordered_commit_set.h b/sync/sessions/ordered_commit_set.h |
index 862ee23751bfa4e766e21a073a1454d93e21d932..ae99dcd942f6105a085141806e5b071dad2648c8 100644 |
--- a/sync/sessions/ordered_commit_set.h |
+++ b/sync/sessions/ordered_commit_set.h |
@@ -75,6 +75,11 @@ class SYNC_EXPORT_PRIVATE OrderedCommitSet { |
return Size() == 0; |
} |
+ // Returns all the types that are included in this list. |
+ ModelTypeSet Types() const { |
+ return types_in_list_; |
+ } |
+ |
// Returns true iff any of the commit ids added to this set have model type |
// BOOKMARKS. |
bool HasBookmarkCommitId() const; |
@@ -115,6 +120,9 @@ class SYNC_EXPORT_PRIVATE OrderedCommitSet { |
// and shouldn't take up too much extra space since commit lists are small. |
std::vector<ModelType> types_; |
+ // The set of types which are included in this particular list. |
+ ModelTypeSet types_in_list_; |
+ |
ModelSafeRoutingInfo routes_; |
}; |