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

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

Issue 11314008: sync: Follow-up to conflict resolution refactor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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
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 4
5 #ifndef SYNC_ENGINE_SYNCER_H_ 5 #ifndef SYNC_ENGINE_SYNCER_H_
6 #define SYNC_ENGINE_SYNCER_H_ 6 #define SYNC_ENGINE_SYNCER_H_
7 7
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 58
59 // Runs a sync cycle from |first_step| to |last_step|. 59 // Runs a sync cycle from |first_step| to |last_step|.
60 virtual void SyncShare(sessions::SyncSession* session, 60 virtual void SyncShare(sessions::SyncSession* session,
61 SyncerStep first_step, 61 SyncerStep first_step,
62 SyncerStep last_step); 62 SyncerStep last_step);
63 63
64 private: 64 private:
65 bool early_exit_requested_; 65 bool early_exit_requested_;
66 base::Lock early_exit_requested_lock_; 66 base::Lock early_exit_requested_lock_;
67 67
68 ConflictResolver resolver_;
69
70 friend class SyncerTest; 68 friend class SyncerTest;
71 FRIEND_TEST_ALL_PREFIXES(SyncerTest, NameClashWithResolver); 69 FRIEND_TEST_ALL_PREFIXES(SyncerTest, NameClashWithResolver);
72 FRIEND_TEST_ALL_PREFIXES(SyncerTest, IllegalAndLegalUpdates); 70 FRIEND_TEST_ALL_PREFIXES(SyncerTest, IllegalAndLegalUpdates);
73 FRIEND_TEST_ALL_PREFIXES(SyncerTest, TestCommitListOrderingAndNewParent); 71 FRIEND_TEST_ALL_PREFIXES(SyncerTest, TestCommitListOrderingAndNewParent);
74 FRIEND_TEST_ALL_PREFIXES(SyncerTest, 72 FRIEND_TEST_ALL_PREFIXES(SyncerTest,
75 TestCommitListOrderingAndNewParentAndChild); 73 TestCommitListOrderingAndNewParentAndChild);
76 FRIEND_TEST_ALL_PREFIXES(SyncerTest, TestCommitListOrderingCounterexample); 74 FRIEND_TEST_ALL_PREFIXES(SyncerTest, TestCommitListOrderingCounterexample);
77 FRIEND_TEST_ALL_PREFIXES(SyncerTest, TestCommitListOrderingWithNesting); 75 FRIEND_TEST_ALL_PREFIXES(SyncerTest, TestCommitListOrderingWithNesting);
78 FRIEND_TEST_ALL_PREFIXES(SyncerTest, TestCommitListOrderingWithNewItems); 76 FRIEND_TEST_ALL_PREFIXES(SyncerTest, TestCommitListOrderingWithNewItems);
79 FRIEND_TEST_ALL_PREFIXES(SyncerTest, TestGetUnsyncedAndSimpleCommit); 77 FRIEND_TEST_ALL_PREFIXES(SyncerTest, TestGetUnsyncedAndSimpleCommit);
(...skipping 13 matching lines...) Expand all
93 }; 91 };
94 92
95 // Utility function declarations. 93 // Utility function declarations.
96 void CopyServerFields(syncable::Entry* src, syncable::MutableEntry* dest); 94 void CopyServerFields(syncable::Entry* src, syncable::MutableEntry* dest);
97 void ClearServerData(syncable::MutableEntry* entry); 95 void ClearServerData(syncable::MutableEntry* entry);
98 const char* SyncerStepToString(const SyncerStep); 96 const char* SyncerStepToString(const SyncerStep);
99 97
100 } // namespace syncer 98 } // namespace syncer
101 99
102 #endif // SYNC_ENGINE_SYNCER_H_ 100 #endif // SYNC_ENGINE_SYNCER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698