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

Unified Diff: sync/sessions/ordered_commit_set.h

Issue 19982002: sync: Remove SyncSourceInfo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Convert SyncShareRecords to typedef Created 7 years, 5 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
« no previous file with comments | « sync/sessions/nudge_tracker_unittest.cc ('k') | sync/sessions/ordered_commit_set.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
};
« no previous file with comments | « sync/sessions/nudge_tracker_unittest.cc ('k') | sync/sessions/ordered_commit_set.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698