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

Unified Diff: sync/engine/directory_commit_contributor.cc

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/directory_commit_contributor.h ('k') | sync/engine/directory_update_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/engine/directory_commit_contributor.cc
diff --git a/sync/engine/directory_commit_contributor.cc b/sync/engine/directory_commit_contributor.cc
new file mode 100644
index 0000000000000000000000000000000000000000..b4cf4c2e0daf8a46942b1ace0b7cb7c82f770ded
--- /dev/null
+++ b/sync/engine/directory_commit_contributor.cc
@@ -0,0 +1,25 @@
+// Copyright 2013 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.
+
+#include "sync/engine/directory_commit_contributor.h"
+
+#include "sync/engine/directory_commit_contribution.h"
+
+namespace syncer {
+
+DirectoryCommitContributor::DirectoryCommitContributor(
+ syncable::Directory* dir,
+ ModelType type)
+ : dir_(dir),
+ type_(type) {}
+
+DirectoryCommitContributor::~DirectoryCommitContributor() {}
+
+scoped_ptr<CommitContribution>
+DirectoryCommitContributor::GetContribution(size_t max_entries) {
+ return DirectoryCommitContribution::Build(dir_, type_, max_entries)
+ .PassAs<CommitContribution>();
+}
+
+} // namespace syncer
« no previous file with comments | « sync/engine/directory_commit_contributor.h ('k') | sync/engine/directory_update_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698