OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 // The 'sessions' namespace comprises all the pieces of state that are | 5 // The 'sessions' namespace comprises all the pieces of state that are |
6 // combined to form a SyncSession instance. In that way, it can be thought of | 6 // combined to form a SyncSession instance. In that way, it can be thought of |
7 // as an extension of the SyncSession type itself. Session scoping gives | 7 // as an extension of the SyncSession type itself. Session scoping gives |
8 // context to things like "conflict progress", "update progress", etc, and the | 8 // context to things like "conflict progress", "update progress", etc, and the |
9 // separation this file provides allows clients to only include the parts they | 9 // separation this file provides allows clients to only include the parts they |
10 // need rather than the entire session stack. | 10 // need rather than the entire session stack. |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 void CoalescePayloads(TypePayloadMap* original, const TypePayloadMap& update); | 53 void CoalescePayloads(TypePayloadMap* original, const TypePayloadMap& update); |
54 | 54 |
55 // A container for the source of a sync session. This includes the update | 55 // A container for the source of a sync session. This includes the update |
56 // source, the datatypes triggering the sync session, and possible session | 56 // source, the datatypes triggering the sync session, and possible session |
57 // specific payloads which should be sent to the server. | 57 // specific payloads which should be sent to the server. |
58 struct SyncSourceInfo { | 58 struct SyncSourceInfo { |
59 SyncSourceInfo(); | 59 SyncSourceInfo(); |
60 SyncSourceInfo( | 60 SyncSourceInfo( |
61 const sync_pb::GetUpdatesCallerInfo::GetUpdatesSource& u, | 61 const sync_pb::GetUpdatesCallerInfo::GetUpdatesSource& u, |
62 const TypePayloadMap& t); | 62 const TypePayloadMap& t); |
| 63 ~SyncSourceInfo(); |
63 | 64 |
64 sync_pb::GetUpdatesCallerInfo::GetUpdatesSource updates_source; | 65 sync_pb::GetUpdatesCallerInfo::GetUpdatesSource updates_source; |
65 TypePayloadMap types; | 66 TypePayloadMap types; |
66 }; | 67 }; |
67 | 68 |
68 // Data pertaining to the status of an active Syncer object. | 69 // Data pertaining to the status of an active Syncer object. |
69 struct SyncerStatus { | 70 struct SyncerStatus { |
70 SyncerStatus(); | 71 SyncerStatus(); |
71 | 72 |
72 // True when we get such an INVALID_STORE error from the server. | 73 // True when we get such an INVALID_STORE error from the server. |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 ~PerModelSafeGroupState(); | 286 ~PerModelSafeGroupState(); |
286 | 287 |
287 UpdateProgress update_progress; | 288 UpdateProgress update_progress; |
288 ConflictProgress conflict_progress; | 289 ConflictProgress conflict_progress; |
289 }; | 290 }; |
290 | 291 |
291 } // namespace sessions | 292 } // namespace sessions |
292 } // namespace browser_sync | 293 } // namespace browser_sync |
293 | 294 |
294 #endif // CHROME_BROWSER_SYNC_SESSIONS_SESSION_STATE_H_ | 295 #endif // CHROME_BROWSER_SYNC_SESSIONS_SESSION_STATE_H_ |
OLD | NEW |