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

Unified Diff: sync/engine/commit_processor.h

Issue 161253002: sync: Add interfaces for per-type sync (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Another win compile fix Created 6 years, 10 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/engine/commit_contributor.cc ('k') | sync/engine/commit_processor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « sync/engine/commit_contributor.cc ('k') | sync/engine/commit_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698