Index: sync/engine/commit_processor.h |
diff --git a/sync/engine/commit_processor.h b/sync/engine/commit_processor.h |
index 9ab09576797e35402d3408a4aec0a007b687032a..c3af5d814455e9069383d7f3adef18b87fcd6769 100644 |
--- a/sync/engine/commit_processor.h |
+++ b/sync/engine/commit_processor.h |
@@ -20,8 +20,8 @@ namespace syncable { |
class Directory; |
} // namespace syncable |
-class SyncDirectoryCommitContributor; |
-class SyncDirectoryCommitContribution; |
+class CommitContributor; |
+class CommitContribution; |
// This class manages the set of per-type committer objects. |
// |
@@ -31,12 +31,19 @@ class SyncDirectoryCommitContribution; |
// contains a type which was not previously registered. |
class SYNC_EXPORT_PRIVATE CommitProcessor { |
public: |
- typedef std::map<ModelType, SyncDirectoryCommitContribution*> ContributionMap; |
+ typedef std::map<ModelType, CommitContribution*> ContributionMap; |
+ // Contructs a CommitProcessor from a map of CommitContributors. |
+ // The CommitProcessor does not own this map. |
explicit CommitProcessor(CommitContributorMap* commit_contributor_map); |
~CommitProcessor(); |
// Gathers a set of contributions to be used to populate a commit message. |
+ // |
+ // For each of the |commit_types| in this CommitProcessor's CommitContributor |
+ // map, gather any entries queued for commit into CommitContributions. The |
+ // total number of entries in all the returned CommitContributions shall not |
+ // exceed |max_entries|. |
void GatherCommitContributions( |
ModelTypeSet commit_types, |
size_t max_entries, |