| OLD | NEW |
| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 13 #include "base/gtest_prod_util.h" | 13 #include "base/gtest_prod_util.h" |
| 14 #include "base/synchronization/lock.h" | 14 #include "base/synchronization/lock.h" |
| 15 #include "sync/engine/conflict_resolver.h" | 15 #include "sync/engine/conflict_resolver.h" |
| 16 #include "sync/engine/syncer_types.h" | 16 #include "sync/engine/syncer_types.h" |
| 17 #include "sync/engine/syncproto.h" | 17 #include "sync/engine/syncproto.h" |
| 18 #include "sync/internal_api/public/syncable/model_type.h" | 18 #include "sync/internal_api/public/syncable/model_type.h" |
| 19 #include "sync/sessions/sync_session.h" | 19 #include "sync/sessions/sync_session.h" |
| 20 #include "sync/util/extensions_activity_monitor.h" | 20 #include "sync/util/extensions_activity_monitor.h" |
| 21 | 21 |
| 22 namespace syncable { | 22 namespace syncable { |
| 23 class Entry; | 23 class Entry; |
| 24 class MutableEntry; | 24 class MutableEntry; |
| 25 } // namespace syncable | 25 } // namespace syncable |
| 26 | 26 |
| 27 namespace csync { | 27 namespace syncer { |
| 28 | 28 |
| 29 enum SyncerStep { | 29 enum SyncerStep { |
| 30 SYNCER_BEGIN, | 30 SYNCER_BEGIN, |
| 31 CLEANUP_DISABLED_TYPES, | 31 CLEANUP_DISABLED_TYPES, |
| 32 DOWNLOAD_UPDATES, | 32 DOWNLOAD_UPDATES, |
| 33 PROCESS_CLIENT_COMMAND, | 33 PROCESS_CLIENT_COMMAND, |
| 34 VERIFY_UPDATES, | 34 VERIFY_UPDATES, |
| 35 PROCESS_UPDATES, | 35 PROCESS_UPDATES, |
| 36 STORE_TIMESTAMPS, | 36 STORE_TIMESTAMPS, |
| 37 APPLY_UPDATES, | 37 APPLY_UPDATES, |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 EntryCreatedInNewFolderMidSync); | 100 EntryCreatedInNewFolderMidSync); |
| 101 | 101 |
| 102 DISALLOW_COPY_AND_ASSIGN(Syncer); | 102 DISALLOW_COPY_AND_ASSIGN(Syncer); |
| 103 }; | 103 }; |
| 104 | 104 |
| 105 // Utility function declarations. | 105 // Utility function declarations. |
| 106 void CopyServerFields(syncable::Entry* src, syncable::MutableEntry* dest); | 106 void CopyServerFields(syncable::Entry* src, syncable::MutableEntry* dest); |
| 107 void ClearServerData(syncable::MutableEntry* entry); | 107 void ClearServerData(syncable::MutableEntry* entry); |
| 108 const char* SyncerStepToString(const SyncerStep); | 108 const char* SyncerStepToString(const SyncerStep); |
| 109 | 109 |
| 110 } // namespace csync | 110 } // namespace syncer |
| 111 | 111 |
| 112 #endif // SYNC_ENGINE_SYNCER_H_ | 112 #endif // SYNC_ENGINE_SYNCER_H_ |
| OLD | NEW |