| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 class ModelSafeWorker; | 37 class ModelSafeWorker; |
| 38 class ServerConnectionManager; | 38 class ServerConnectionManager; |
| 39 class SyncProcessState; | 39 class SyncProcessState; |
| 40 class URLFactory; | 40 class URLFactory; |
| 41 struct HttpResponse; | 41 struct HttpResponse; |
| 42 | 42 |
| 43 static const int kDefaultMaxCommitBatchSize = 25; | 43 static const int kDefaultMaxCommitBatchSize = 25; |
| 44 | 44 |
| 45 enum SyncerStep { | 45 enum SyncerStep { |
| 46 SYNCER_BEGIN, | 46 SYNCER_BEGIN, |
| 47 CLEANUP_DISABLED_TYPES, |
| 47 DOWNLOAD_UPDATES, | 48 DOWNLOAD_UPDATES, |
| 48 PROCESS_CLIENT_COMMAND, | 49 PROCESS_CLIENT_COMMAND, |
| 49 VERIFY_UPDATES, | 50 VERIFY_UPDATES, |
| 50 PROCESS_UPDATES, | 51 PROCESS_UPDATES, |
| 51 STORE_TIMESTAMPS, | 52 STORE_TIMESTAMPS, |
| 52 APPLY_UPDATES, | 53 APPLY_UPDATES, |
| 53 BUILD_COMMIT_REQUEST, | 54 BUILD_COMMIT_REQUEST, |
| 54 POST_COMMIT_MESSAGE, | 55 POST_COMMIT_MESSAGE, |
| 55 PROCESS_COMMIT_RESPONSE, | 56 PROCESS_COMMIT_RESPONSE, |
| 56 BUILD_AND_PROCESS_CONFLICT_SETS, | 57 BUILD_AND_PROCESS_CONFLICT_SETS, |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 } | 209 } |
| 209 return false; | 210 return false; |
| 210 } | 211 } |
| 211 // Utility function declarations. | 212 // Utility function declarations. |
| 212 void CopyServerFields(syncable::Entry* src, syncable::MutableEntry* dest); | 213 void CopyServerFields(syncable::Entry* src, syncable::MutableEntry* dest); |
| 213 void ClearServerData(syncable::MutableEntry* entry); | 214 void ClearServerData(syncable::MutableEntry* entry); |
| 214 | 215 |
| 215 } // namespace browser_sync | 216 } // namespace browser_sync |
| 216 | 217 |
| 217 #endif // CHROME_BROWSER_SYNC_ENGINE_SYNCER_H_ | 218 #endif // CHROME_BROWSER_SYNC_ENGINE_SYNCER_H_ |
| OLD | NEW |