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

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

Issue 10832286: sync: Introduce control data types (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add ToFullModelTypeSet() function Created 8 years, 3 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
OLDNEW
(Empty)
1 // Copyright (c) 2012 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 // Utility functions that act on syncable::MutableEntry to resolve conflicts.
6
7 #ifndef SYNC_ENGINE_CONFLICT_UTIL_H_
8 #define SYNC_ENGINE_CONFLICT_UTIL_H_
9
10 namespace syncable {
11 class MutableEntry;
12 }
13
14 namespace syncer {
15
16 // Marks the item as no longer requiring sync, allowing the server's version
17 // to 'win' during the next update application step.
18 void IgnoreLocalChanges(syncable::MutableEntry* entry);
19
20 // Marks the item as no longer requiring update from server data. This will
21 // cause the item to be committed to the server, overwriting the server's
22 // version.
23 void OverwriteServerChanges(syncable::MutableEntry* entry);
24
25 // The local and server versions are identical, so unset the bits that put them
26 // into a conflicting state.
27 void IgnoreConflict(syncable::MutableEntry *trans);
28
29 } // namespace syncer
30
31 #endif // SYNC_ENGINE_CONFLICT_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698