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

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: Fix tests 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
« no previous file with comments | « sync/engine/sync_session_job.cc ('k') | sync/engine/syncer.cc » ('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 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 // Returns true if the cycle completed with |last_step|, and false 60 // Returns true if the cycle completed with |last_step|, and false
61 // if it terminated early due to error / exit requested. 61 // if it terminated early due to error / exit requested.
62 virtual bool SyncShare(sessions::SyncSession* session, 62 virtual bool SyncShare(sessions::SyncSession* session,
63 SyncerStep first_step, 63 SyncerStep first_step,
64 SyncerStep last_step); 64 SyncerStep last_step);
65 65
66 private: 66 private:
67 bool early_exit_requested_; 67 bool early_exit_requested_;
68 base::Lock early_exit_requested_lock_; 68 base::Lock early_exit_requested_lock_;
69 69
70 ConflictResolver resolver_;
71
72 friend class SyncerTest; 70 friend class SyncerTest;
73 FRIEND_TEST_ALL_PREFIXES(SyncerTest, NameClashWithResolver); 71 FRIEND_TEST_ALL_PREFIXES(SyncerTest, NameClashWithResolver);
74 FRIEND_TEST_ALL_PREFIXES(SyncerTest, IllegalAndLegalUpdates); 72 FRIEND_TEST_ALL_PREFIXES(SyncerTest, IllegalAndLegalUpdates);
75 FRIEND_TEST_ALL_PREFIXES(SyncerTest, TestCommitListOrderingAndNewParent); 73 FRIEND_TEST_ALL_PREFIXES(SyncerTest, TestCommitListOrderingAndNewParent);
76 FRIEND_TEST_ALL_PREFIXES(SyncerTest, 74 FRIEND_TEST_ALL_PREFIXES(SyncerTest,
77 TestCommitListOrderingAndNewParentAndChild); 75 TestCommitListOrderingAndNewParentAndChild);
78 FRIEND_TEST_ALL_PREFIXES(SyncerTest, TestCommitListOrderingCounterexample); 76 FRIEND_TEST_ALL_PREFIXES(SyncerTest, TestCommitListOrderingCounterexample);
79 FRIEND_TEST_ALL_PREFIXES(SyncerTest, TestCommitListOrderingWithNesting); 77 FRIEND_TEST_ALL_PREFIXES(SyncerTest, TestCommitListOrderingWithNesting);
80 FRIEND_TEST_ALL_PREFIXES(SyncerTest, TestCommitListOrderingWithNewItems); 78 FRIEND_TEST_ALL_PREFIXES(SyncerTest, TestCommitListOrderingWithNewItems);
81 FRIEND_TEST_ALL_PREFIXES(SyncerTest, TestGetUnsyncedAndSimpleCommit); 79 FRIEND_TEST_ALL_PREFIXES(SyncerTest, TestGetUnsyncedAndSimpleCommit);
(...skipping 13 matching lines...) Expand all
95 }; 93 };
96 94
97 // Utility function declarations. 95 // Utility function declarations.
98 void CopyServerFields(syncable::Entry* src, syncable::MutableEntry* dest); 96 void CopyServerFields(syncable::Entry* src, syncable::MutableEntry* dest);
99 void ClearServerData(syncable::MutableEntry* entry); 97 void ClearServerData(syncable::MutableEntry* entry);
100 const char* SyncerStepToString(const SyncerStep); 98 const char* SyncerStepToString(const SyncerStep);
101 99
102 } // namespace syncer 100 } // namespace syncer
103 101
104 #endif // SYNC_ENGINE_SYNCER_H_ 102 #endif // SYNC_ENGINE_SYNCER_H_
OLDNEW
« no previous file with comments | « sync/engine/sync_session_job.cc ('k') | sync/engine/syncer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698