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 |