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> |
11 | 11 |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/callback.h" | 13 #include "base/callback.h" |
14 #include "base/gtest_prod_util.h" | 14 #include "base/gtest_prod_util.h" |
15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
16 #include "base/synchronization/lock.h" | 16 #include "base/synchronization/lock.h" |
17 #include "chrome/browser/sync/engine/conflict_resolver.h" | 17 #include "chrome/browser/sync/engine/conflict_resolver.h" |
18 #include "chrome/browser/sync/engine/syncer_types.h" | 18 #include "chrome/browser/sync/engine/syncer_types.h" |
19 #include "chrome/browser/sync/engine/syncproto.h" | 19 #include "chrome/browser/sync/engine/syncproto.h" |
20 #include "chrome/browser/sync/sessions/sync_session.h" | 20 #include "chrome/browser/sync/sessions/sync_session.h" |
21 #include "chrome/browser/sync/syncable/directory_event.h" | 21 #include "chrome/browser/sync/syncable/directory_event.h" |
22 #include "chrome/browser/sync/syncable/model_type.h" | 22 #include "chrome/browser/sync/syncable/model_type.h" |
23 #include "chrome/browser/sync/util/extensions_activity_monitor.h" | 23 #include "chrome/browser/sync/util/extensions_activity_monitor.h" |
24 | 24 |
25 namespace syncable { | 25 namespace syncable { |
26 class Directory; | |
27 class DirectoryManager; | |
28 class Entry; | 26 class Entry; |
29 class Id; | |
30 class MutableEntry; | 27 class MutableEntry; |
31 class WriteTransaction; | |
32 } // namespace syncable | 28 } // namespace syncable |
33 | 29 |
34 namespace browser_sync { | 30 namespace browser_sync { |
35 | 31 |
36 class ModelSafeWorker; | |
37 class ServerConnectionManager; | |
38 class SyncProcessState; | |
39 class URLFactory; | |
40 struct HttpResponse; | |
41 | |
42 enum SyncerStep { | 32 enum SyncerStep { |
43 SYNCER_BEGIN, | 33 SYNCER_BEGIN, |
44 CLEANUP_DISABLED_TYPES, | 34 CLEANUP_DISABLED_TYPES, |
45 DOWNLOAD_UPDATES, | 35 DOWNLOAD_UPDATES, |
46 PROCESS_CLIENT_COMMAND, | 36 PROCESS_CLIENT_COMMAND, |
47 VERIFY_UPDATES, | 37 VERIFY_UPDATES, |
48 PROCESS_UPDATES, | 38 PROCESS_UPDATES, |
49 STORE_TIMESTAMPS, | 39 STORE_TIMESTAMPS, |
50 APPLY_UPDATES, | 40 APPLY_UPDATES, |
51 BUILD_COMMIT_REQUEST, | 41 BUILD_COMMIT_REQUEST, |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 DISALLOW_COPY_AND_ASSIGN(Syncer); | 125 DISALLOW_COPY_AND_ASSIGN(Syncer); |
136 }; | 126 }; |
137 | 127 |
138 // Utility function declarations. | 128 // Utility function declarations. |
139 void CopyServerFields(syncable::Entry* src, syncable::MutableEntry* dest); | 129 void CopyServerFields(syncable::Entry* src, syncable::MutableEntry* dest); |
140 void ClearServerData(syncable::MutableEntry* entry); | 130 void ClearServerData(syncable::MutableEntry* entry); |
141 | 131 |
142 } // namespace browser_sync | 132 } // namespace browser_sync |
143 | 133 |
144 #endif // CHROME_BROWSER_SYNC_ENGINE_SYNCER_H_ | 134 #endif // CHROME_BROWSER_SYNC_ENGINE_SYNCER_H_ |
OLD | NEW |