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

Unified Diff: sync/engine/commit_contributor.h

Issue 161253002: sync: Add interfaces for per-type sync (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Minor 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
Index: sync/engine/commit_contributor.h
diff --git a/sync/engine/commit_contributor.h b/sync/engine/commit_contributor.h
new file mode 100644
index 0000000000000000000000000000000000000000..926468360c3425e354495d34fadef3389a95f4da
--- /dev/null
+++ b/sync/engine/commit_contributor.h
@@ -0,0 +1,32 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef SYNC_ENGINE_COMMIT_CONTRIBUTOR_H_
+#define SYNC_ENGINE_COMMIT_CONTRIBUTOR_H_
+
+#include <cstddef>
+
+namespace syncer {
+
+class CommitContribution;
+
+namespace syncable {
+class Directory;
+}
+
+// This class represents a source of items to commit to the sync server.
+//
+// When asked, it can return CommitContribution objects that contain a set of
+// items to be committed from this source.
+class CommitContributor {
+ public:
+ CommitContributor();
+ virtual ~CommitContributor() = 0;
+
+ virtual CommitContribution* GetContribution(size_t max_entries) = 0;
tim (not reviewing) 2014/02/18 19:15:01 Even though these are ultimately going into an STL
rlarocque 2014/02/18 20:01:13 Done.
+};
+
+} // namespace
+
+#endif // SYNC_ENGINE_COMMIT_CONTRIBUTOR_H_

Powered by Google App Engine
This is Rietveld 408576698