OLD | NEW |
(Empty) | |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "sync/engine/directory_commit_contributor.h" |
| 6 |
| 7 #include "sync/engine/directory_commit_contribution.h" |
| 8 |
| 9 namespace syncer { |
| 10 |
| 11 DirectoryCommitContributor::DirectoryCommitContributor( |
| 12 syncable::Directory* dir, |
| 13 ModelType type) |
| 14 : dir_(dir), |
| 15 type_(type) {} |
| 16 |
| 17 DirectoryCommitContributor::~DirectoryCommitContributor() {} |
| 18 |
| 19 scoped_ptr<CommitContribution> |
| 20 DirectoryCommitContributor::GetContribution(size_t max_entries) { |
| 21 return DirectoryCommitContribution::Build(dir_, type_, max_entries) |
| 22 .PassAs<CommitContribution>(); |
| 23 } |
| 24 |
| 25 } // namespace syncer |
OLD | NEW |