| 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 // 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 | 65 |
| 66 // True when we get such an INVALID_STORE error from the server. | 66 // True when we get such an INVALID_STORE error from the server. |
| 67 bool invalid_store; | 67 bool invalid_store; |
| 68 int num_successful_commits; | 68 int num_successful_commits; |
| 69 // This is needed for monitoring extensions activity. | 69 // This is needed for monitoring extensions activity. |
| 70 int num_successful_bookmark_commits; | 70 int num_successful_bookmark_commits; |
| 71 | 71 |
| 72 // Download event counters. | 72 // Download event counters. |
| 73 int num_updates_downloaded_total; | 73 int num_updates_downloaded_total; |
| 74 int num_tombstone_updates_downloaded_total; | 74 int num_tombstone_updates_downloaded_total; |
| 75 int num_echo_updates_downloaded_total; |
| 75 | 76 |
| 76 // If the syncer encountered a MIGRATION_DONE code, these are the types that | 77 // If the syncer encountered a MIGRATION_DONE code, these are the types that |
| 77 // the client must now "migrate", by purging and re-downloading all updates. | 78 // the client must now "migrate", by purging and re-downloading all updates. |
| 78 syncable::ModelTypeSet types_needing_local_migration; | 79 syncable::ModelTypeSet types_needing_local_migration; |
| 79 | 80 |
| 80 // Overwrites due to conflict resolution counters. | 81 // Overwrites due to conflict resolution counters. |
| 81 int num_local_overwrites; | 82 int num_local_overwrites; |
| 82 int num_server_overwrites; | 83 int num_server_overwrites; |
| 83 }; | 84 }; |
| 84 | 85 |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 ~PerModelSafeGroupState(); | 321 ~PerModelSafeGroupState(); |
| 321 | 322 |
| 322 UpdateProgress update_progress; | 323 UpdateProgress update_progress; |
| 323 ConflictProgress conflict_progress; | 324 ConflictProgress conflict_progress; |
| 324 }; | 325 }; |
| 325 | 326 |
| 326 } // namespace sessions | 327 } // namespace sessions |
| 327 } // namespace browser_sync | 328 } // namespace browser_sync |
| 328 | 329 |
| 329 #endif // SYNC_SESSIONS_SESSION_STATE_H_ | 330 #endif // SYNC_SESSIONS_SESSION_STATE_H_ |
| OLD | NEW |