Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(112)

Side by Side Diff: sync/engine/commit_contributor.h

Issue 161253002: sync: Add interfaces for per-type sync (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Another win compile fix Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sync/engine/commit_contribution.cc ('k') | sync/engine/commit_contributor.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 #include "base/memory/scoped_ptr.h"
11
12 namespace syncer {
13
14 class CommitContribution;
15
16 namespace syncable {
17 class Directory;
18 }
19
20 // This class represents a source of items to commit to the sync server.
21 //
22 // When asked, it can return CommitContribution objects that contain a set of
23 // items to be committed from this source.
24 class CommitContributor {
25 public:
26 CommitContributor();
27 virtual ~CommitContributor() = 0;
28
29 // Gathers up to |max_entries| unsynced items from this contributor into a
30 // CommitContribution. Returns NULL when the contributor has nothing to
31 // contribute.
32 virtual scoped_ptr<CommitContribution> GetContribution(
33 size_t max_entries) = 0;
34 };
35
36 } // namespace
37
38 #endif // SYNC_ENGINE_COMMIT_CONTRIBUTOR_H_
OLDNEW
« no previous file with comments | « sync/engine/commit_contribution.cc ('k') | sync/engine/commit_contributor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698