#ifndef SYNC_ENGINE_DIRECTORY_COMMIT_CONTRIBUTOR_H_
#define SYNC_ENGINE_DIRECTORY_COMMIT_CONTRIBUTOR_H_
#include <map>
#include "base/memory/scoped_ptr.h"
#include "sync/engine/commit_contributor.h"
#include "sync/engine/directory_commit_contribution.h"
#include "sync/internal_api/public/base/model_type.h"
namespace syncer {
namespace syncable {
class Directory;
}
class DirectoryCommitContributor : public CommitContributor {
public:
DirectoryCommitContributor(syncable::Directory* dir, ModelType type);
virtual ~DirectoryCommitContributor();
virtual scoped_ptr<CommitContribution> GetContribution(
size_t max_entries) OVERRIDE;
private:
syncable::Directory* dir_;
ModelType type_;
DISALLOW_COPY_AND_ASSIGN(DirectoryCommitContributor);
};
}
#endif