| 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 throughout the sync cycle. The SyncSession is not reused across |
| 8 // client view of data with that of the server. The commands twiddle with | 8 // sync cycles; each cycle starts with a new one. |
| 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 | |
| 11 // server updates, and access the SyncSessionContext for the current session | |
| 12 // via SyncSession instances. | |
| 13 | 9 |
| 14 #ifndef SYNC_SESSIONS_SYNC_SESSION_H_ | 10 #ifndef SYNC_SESSIONS_SYNC_SESSION_H_ |
| 15 #define SYNC_SESSIONS_SYNC_SESSION_H_ | 11 #define SYNC_SESSIONS_SYNC_SESSION_H_ |
| 16 | 12 |
| 17 #include <map> | 13 #include <map> |
| 18 #include <set> | 14 #include <set> |
| 19 #include <string> | 15 #include <string> |
| 20 #include <utility> | 16 #include <utility> |
| 21 #include <vector> | 17 #include <vector> |
| 22 | 18 |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 // Our controller for various status and error counters. | 135 // Our controller for various status and error counters. |
| 140 scoped_ptr<StatusController> status_controller_; | 136 scoped_ptr<StatusController> status_controller_; |
| 141 | 137 |
| 142 DISALLOW_COPY_AND_ASSIGN(SyncSession); | 138 DISALLOW_COPY_AND_ASSIGN(SyncSession); |
| 143 }; | 139 }; |
| 144 | 140 |
| 145 } // namespace sessions | 141 } // namespace sessions |
| 146 } // namespace syncer | 142 } // namespace syncer |
| 147 | 143 |
| 148 #endif // SYNC_SESSIONS_SYNC_SESSION_H_ | 144 #endif // SYNC_SESSIONS_SYNC_SESSION_H_ |
| OLD | NEW |