OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 // A class representing an attempt to synchronize the local syncable data | 5 // A class representing an attempt to synchronize the local syncable data |
6 // store with a sync server. A SyncSession instance is passed as a stateful | 6 // store with a sync server. A SyncSession instance is passed as a stateful |
7 // bundle to and from various SyncerCommands with the goal of converging the | 7 // bundle to and from various SyncerCommands with the goal of converging the |
8 // client view of data with that of the server. The commands twiddle with | 8 // client view of data with that of the server. The commands twiddle with |
9 // session status in response to events and hiccups along the way, set and | 9 // session status in response to events and hiccups along the way, set and |
10 // query session progress with regards to conflict resolution and applying | 10 // query session progress with regards to conflict resolution and applying |
11 // server updates, and access the SyncSessionContext for the current session | 11 // server updates, and access the SyncSessionContext for the current session |
12 // via SyncSession instances. | 12 // via SyncSession instances. |
13 | 13 |
14 #ifndef SYNC_SESSIONS_SYNC_SESSION_H_ | 14 #ifndef SYNC_SESSIONS_SYNC_SESSION_H_ |
15 #define SYNC_SESSIONS_SYNC_SESSION_H_ | 15 #define SYNC_SESSIONS_SYNC_SESSION_H_ |
16 | 16 |
17 #include <map> | 17 #include <map> |
18 #include <set> | 18 #include <set> |
19 #include <string> | 19 #include <string> |
20 #include <utility> | 20 #include <utility> |
21 #include <vector> | 21 #include <vector> |
22 | 22 |
23 #include "base/basictypes.h" | 23 #include "base/basictypes.h" |
24 #include "base/memory/scoped_ptr.h" | 24 #include "base/memory/scoped_ptr.h" |
25 #include "base/time.h" | 25 #include "base/time/time.h" |
26 #include "sync/base/sync_export.h" | 26 #include "sync/base/sync_export.h" |
27 #include "sync/internal_api/public/base/model_type.h" | 27 #include "sync/internal_api/public/base/model_type.h" |
28 #include "sync/internal_api/public/engine/model_safe_worker.h" | 28 #include "sync/internal_api/public/engine/model_safe_worker.h" |
29 #include "sync/internal_api/public/sessions/sync_session_snapshot.h" | 29 #include "sync/internal_api/public/sessions/sync_session_snapshot.h" |
30 #include "sync/sessions/ordered_commit_set.h" | 30 #include "sync/sessions/ordered_commit_set.h" |
31 #include "sync/sessions/status_controller.h" | 31 #include "sync/sessions/status_controller.h" |
32 #include "sync/sessions/sync_session_context.h" | 32 #include "sync/sessions/sync_session_context.h" |
33 | 33 |
34 namespace syncer { | 34 namespace syncer { |
35 class ModelSafeWorker; | 35 class ModelSafeWorker; |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 | 156 |
157 const NudgeTracker* nudge_tracker_; | 157 const NudgeTracker* nudge_tracker_; |
158 | 158 |
159 DISALLOW_COPY_AND_ASSIGN(SyncSession); | 159 DISALLOW_COPY_AND_ASSIGN(SyncSession); |
160 }; | 160 }; |
161 | 161 |
162 } // namespace sessions | 162 } // namespace sessions |
163 } // namespace syncer | 163 } // namespace syncer |
164 | 164 |
165 #endif // SYNC_SESSIONS_SYNC_SESSION_H_ | 165 #endif // SYNC_SESSIONS_SYNC_SESSION_H_ |
OLD | NEW |