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

Side by Side Diff: components/sync/engine_impl/conflict_resolver.h

Issue 2425673003: [Sync] Moved down comments directly following copyright. (Closed)
Patch Set: Updates for Max. Created 4 years, 2 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
« no previous file with comments | « components/sync/engine_impl/all_status.h ('k') | components/sync/engine_impl/conflict_util.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 //
5 // A class that watches the syncer and attempts to resolve any conflicts that
6 // occur.
7 4
8 #ifndef COMPONENTS_SYNC_ENGINE_IMPL_CONFLICT_RESOLVER_H_ 5 #ifndef COMPONENTS_SYNC_ENGINE_IMPL_CONFLICT_RESOLVER_H_
9 #define COMPONENTS_SYNC_ENGINE_IMPL_CONFLICT_RESOLVER_H_ 6 #define COMPONENTS_SYNC_ENGINE_IMPL_CONFLICT_RESOLVER_H_
10 7
11 #include <set> 8 #include <set>
12 9
13 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
14 #include "base/macros.h" 11 #include "base/macros.h"
15 #include "components/sync/engine_impl/syncer_types.h" 12 #include "components/sync/engine_impl/syncer_types.h"
16 13
17 namespace syncer { 14 namespace syncer {
18 15
19 namespace syncable { 16 namespace syncable {
20 class Id; 17 class Id;
21 class WriteTransaction; 18 class WriteTransaction;
22 } // namespace syncable 19 } // namespace syncable
23 20
24 class Cryptographer; 21 class Cryptographer;
25 class StatusController; 22 class StatusController;
26 struct UpdateCounters; 23 struct UpdateCounters;
27 24
25 // A class that watches the syncer and attempts to resolve any conflicts that
26 // occur.
28 class ConflictResolver { 27 class ConflictResolver {
29 public: 28 public:
30 // Enumeration of different conflict resolutions. Used for histogramming. 29 // Enumeration of different conflict resolutions. Used for histogramming.
31 enum SimpleConflictResolutions { 30 enum SimpleConflictResolutions {
32 OVERWRITE_LOCAL, // Resolved by overwriting local changes. 31 OVERWRITE_LOCAL, // Resolved by overwriting local changes.
33 OVERWRITE_SERVER, // Resolved by overwriting server changes. 32 OVERWRITE_SERVER, // Resolved by overwriting server changes.
34 UNDELETE, // Resolved by undeleting local item. 33 UNDELETE, // Resolved by undeleting local item.
35 IGNORE_ENCRYPTION, // Resolved by ignoring an encryption-only server 34 IGNORE_ENCRYPTION, // Resolved by ignoring an encryption-only server
36 // change. 35 // change.
37 NIGORI_MERGE, // Resolved by merging nigori nodes. 36 NIGORI_MERGE, // Resolved by merging nigori nodes.
(...skipping 22 matching lines...) Expand all
60 const Cryptographer* cryptographer, 59 const Cryptographer* cryptographer,
61 StatusController* status, 60 StatusController* status,
62 UpdateCounters* counters); 61 UpdateCounters* counters);
63 62
64 DISALLOW_COPY_AND_ASSIGN(ConflictResolver); 63 DISALLOW_COPY_AND_ASSIGN(ConflictResolver);
65 }; 64 };
66 65
67 } // namespace syncer 66 } // namespace syncer
68 67
69 #endif // COMPONENTS_SYNC_ENGINE_IMPL_CONFLICT_RESOLVER_H_ 68 #endif // COMPONENTS_SYNC_ENGINE_IMPL_CONFLICT_RESOLVER_H_
OLDNEW
« no previous file with comments | « components/sync/engine_impl/all_status.h ('k') | components/sync/engine_impl/conflict_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698