Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 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 #ifndef SYNC_ENGINE_SYNC_DIRECTORY_COMMIT_CONTRIBUTOR_H_ | |
| 6 #define SYNC_ENGINE_SYNC_DIRECTORY_COMMIT_CONTRIBUTOR_H_ | |
| 7 | |
| 8 #include <map> | |
| 9 | |
| 10 #include "sync/internal_api/public/base/model_type.h" | |
| 11 | |
| 12 namespace syncer { | |
| 13 | |
| 14 class SyncDirectoryCommitContribution; | |
| 15 | |
| 16 namespace syncable { | |
| 17 class Directory; | |
| 18 } | |
| 19 | |
| 20 class SyncDirectoryCommitContributor { | |
|
Nicolas Zea
2013/10/10 21:34:45
Add comment about what this class is
rlarocque
2013/10/11 23:03:30
Done.
| |
| 21 public: | |
| 22 SyncDirectoryCommitContributor(syncable::Directory* dir, ModelType type); | |
| 23 ~SyncDirectoryCommitContributor(); | |
| 24 | |
| 25 SyncDirectoryCommitContribution* GetContribution(size_t max_entries); | |
| 26 | |
| 27 private: | |
| 28 syncable::Directory* dir_; | |
| 29 ModelType type_; | |
| 30 }; | |
| 31 | |
| 32 // TODO(rlarocque): Find a better place for this definition. | |
| 33 typedef std::map<ModelType, SyncDirectoryCommitContributor*> | |
| 34 CommitContributorMap; | |
| 35 | |
| 36 } // namespace | |
| 37 | |
| 38 #endif // SYNC_ENGINE_SYNC_DIRECTORY_COMMIT_CONTRIBUTOR_H_ | |
| OLD | NEW |