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

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

Issue 11091009: sync: Merge {Verify,Process}UpdatesCommand (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Amend comment Created 8 years, 2 months 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/process_updates_command_unittest.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
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/gtest_prod_util.h" 12 #include "base/gtest_prod_util.h"
13 #include "base/synchronization/lock.h" 13 #include "base/synchronization/lock.h"
14 #include "sync/engine/conflict_resolver.h" 14 #include "sync/engine/conflict_resolver.h"
15 #include "sync/engine/syncer_types.h" 15 #include "sync/engine/syncer_types.h"
16 #include "sync/internal_api/public/base/model_type.h" 16 #include "sync/internal_api/public/base/model_type.h"
17 #include "sync/sessions/sync_session.h" 17 #include "sync/sessions/sync_session.h"
18 #include "sync/util/extensions_activity_monitor.h" 18 #include "sync/util/extensions_activity_monitor.h"
19 19
20 namespace syncer { 20 namespace syncer {
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 enum SyncerStep { 27 enum SyncerStep {
28 SYNCER_BEGIN, 28 SYNCER_BEGIN,
29 DOWNLOAD_UPDATES, 29 DOWNLOAD_UPDATES,
30 VERIFY_UPDATES,
31 PROCESS_UPDATES, 30 PROCESS_UPDATES,
32 STORE_TIMESTAMPS, 31 STORE_TIMESTAMPS,
33 APPLY_UPDATES, 32 APPLY_UPDATES,
34 COMMIT, 33 COMMIT,
35 RESOLVE_CONFLICTS, 34 RESOLVE_CONFLICTS,
36 APPLY_UPDATES_TO_RESOLVE_CONFLICTS, 35 APPLY_UPDATES_TO_RESOLVE_CONFLICTS,
37 SYNCER_END 36 SYNCER_END
38 }; 37 };
39 38
40 // A Syncer provides a control interface for driving the individual steps 39 // A Syncer provides a control interface for driving the individual steps
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 }; 95 };
97 96
98 // Utility function declarations. 97 // Utility function declarations.
99 void CopyServerFields(syncable::Entry* src, syncable::MutableEntry* dest); 98 void CopyServerFields(syncable::Entry* src, syncable::MutableEntry* dest);
100 void ClearServerData(syncable::MutableEntry* entry); 99 void ClearServerData(syncable::MutableEntry* entry);
101 const char* SyncerStepToString(const SyncerStep); 100 const char* SyncerStepToString(const SyncerStep);
102 101
103 } // namespace syncer 102 } // namespace syncer
104 103
105 #endif // SYNC_ENGINE_SYNCER_H_ 104 #endif // SYNC_ENGINE_SYNCER_H_
OLDNEW
« no previous file with comments | « sync/engine/process_updates_command_unittest.cc ('k') | sync/engine/syncer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698