OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 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_COMMIT_CONTRIBUTOR_H_ | |
6 #define SYNC_ENGINE_COMMIT_CONTRIBUTOR_H_ | |
7 | |
8 #include <cstddef> | |
9 | |
10 namespace syncer { | |
11 | |
12 class CommitContribution; | |
13 | |
14 namespace syncable { | |
15 class Directory; | |
16 } | |
17 | |
18 // This class represents a source of items to commit to the sync server. | |
19 // | |
20 // When asked, it can return CommitContribution objects that contain a set of | |
21 // items to be committed from this source. | |
22 class CommitContributor { | |
23 public: | |
24 CommitContributor(); | |
25 virtual ~CommitContributor() = 0; | |
26 | |
27 virtual CommitContribution* GetContribution(size_t max_entries) = 0; | |
tim (not reviewing)
2014/02/18 19:15:01
Even though these are ultimately going into an STL
rlarocque
2014/02/18 20:01:13
Done.
| |
28 }; | |
29 | |
30 } // namespace | |
31 | |
32 #endif // SYNC_ENGINE_COMMIT_CONTRIBUTOR_H_ | |
OLD | NEW |