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 // 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 #pragma once | |
17 | 16 |
18 #include <map> | 17 #include <map> |
19 #include <set> | 18 #include <set> |
20 #include <string> | 19 #include <string> |
21 #include <utility> | 20 #include <utility> |
22 #include <vector> | 21 #include <vector> |
23 | 22 |
24 #include "base/basictypes.h" | 23 #include "base/basictypes.h" |
25 #include "base/memory/scoped_ptr.h" | 24 #include "base/memory/scoped_ptr.h" |
26 #include "base/time.h" | 25 #include "base/time.h" |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 | 242 |
244 private: | 243 private: |
245 SyncSession* session_; | 244 SyncSession* session_; |
246 DISALLOW_COPY_AND_ASSIGN(ScopedSetSessionWriteTransaction); | 245 DISALLOW_COPY_AND_ASSIGN(ScopedSetSessionWriteTransaction); |
247 }; | 246 }; |
248 | 247 |
249 } // namespace sessions | 248 } // namespace sessions |
250 } // namespace syncer | 249 } // namespace syncer |
251 | 250 |
252 #endif // SYNC_SESSIONS_SYNC_SESSION_H_ | 251 #endif // SYNC_SESSIONS_SYNC_SESSION_H_ |
OLD | NEW |