OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_BROWSER_SYNC_ENGINE_SYNCER_H_ | 5 #ifndef CHROME_BROWSER_SYNC_ENGINE_SYNCER_H_ |
6 #define CHROME_BROWSER_SYNC_ENGINE_SYNCER_H_ | 6 #define CHROME_BROWSER_SYNC_ENGINE_SYNCER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 22 matching lines...) Expand all Loading... |
33 CLEANUP_DISABLED_TYPES, | 33 CLEANUP_DISABLED_TYPES, |
34 DOWNLOAD_UPDATES, | 34 DOWNLOAD_UPDATES, |
35 PROCESS_CLIENT_COMMAND, | 35 PROCESS_CLIENT_COMMAND, |
36 VERIFY_UPDATES, | 36 VERIFY_UPDATES, |
37 PROCESS_UPDATES, | 37 PROCESS_UPDATES, |
38 STORE_TIMESTAMPS, | 38 STORE_TIMESTAMPS, |
39 APPLY_UPDATES, | 39 APPLY_UPDATES, |
40 BUILD_COMMIT_REQUEST, | 40 BUILD_COMMIT_REQUEST, |
41 POST_COMMIT_MESSAGE, | 41 POST_COMMIT_MESSAGE, |
42 PROCESS_COMMIT_RESPONSE, | 42 PROCESS_COMMIT_RESPONSE, |
43 BUILD_AND_PROCESS_CONFLICT_SETS, | |
44 RESOLVE_CONFLICTS, | 43 RESOLVE_CONFLICTS, |
45 APPLY_UPDATES_TO_RESOLVE_CONFLICTS, | 44 APPLY_UPDATES_TO_RESOLVE_CONFLICTS, |
46 CLEAR_PRIVATE_DATA, // TODO(tim): Rename 'private' to 'user'. | 45 CLEAR_PRIVATE_DATA, // TODO(tim): Rename 'private' to 'user'. |
47 SYNCER_END | 46 SYNCER_END |
48 }; | 47 }; |
49 | 48 |
50 // A Syncer provides a control interface for driving the individual steps | 49 // A Syncer provides a control interface for driving the individual steps |
51 // of the sync cycle. Each cycle (hopefully) moves the client into closer | 50 // of the sync cycle. Each cycle (hopefully) moves the client into closer |
52 // synchronization with the server. The individual steps are modeled | 51 // synchronization with the server. The individual steps are modeled |
53 // as SyncerCommands, and the ordering of the steps is expressed using | 52 // as SyncerCommands, and the ordering of the steps is expressed using |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 }; | 108 }; |
110 | 109 |
111 // Utility function declarations. | 110 // Utility function declarations. |
112 void CopyServerFields(syncable::Entry* src, syncable::MutableEntry* dest); | 111 void CopyServerFields(syncable::Entry* src, syncable::MutableEntry* dest); |
113 void ClearServerData(syncable::MutableEntry* entry); | 112 void ClearServerData(syncable::MutableEntry* entry); |
114 const char* SyncerStepToString(const SyncerStep); | 113 const char* SyncerStepToString(const SyncerStep); |
115 | 114 |
116 } // namespace browser_sync | 115 } // namespace browser_sync |
117 | 116 |
118 #endif // CHROME_BROWSER_SYNC_ENGINE_SYNCER_H_ | 117 #endif // CHROME_BROWSER_SYNC_ENGINE_SYNCER_H_ |
OLD | NEW |