Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: sync/internal_api/public/sessions/model_neutral_state.h

Issue 10933075: FYI: Remove PerModelSafeGroupState + move ConflictResolution (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 #ifndef SYNC_SESSIONS_MODEL_NEUTRAL_STATE_H 5 #ifndef SYNC_SESSIONS_MODEL_NEUTRAL_STATE_H
6 #define SYNC_SESSIONS_MODEL_NEUTRAL_STATE_H 6 #define SYNC_SESSIONS_MODEL_NEUTRAL_STATE_H
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "sync/internal_api/public/util/syncer_error.h" 9 #include "sync/internal_api/public/util/syncer_error.h"
10 #include "sync/protocol/sync.pb.h" 10 #include "sync/protocol/sync.pb.h"
(...skipping 23 matching lines...) Expand all
34 34
35 // Download event counters. 35 // Download event counters.
36 int num_updates_downloaded_total; 36 int num_updates_downloaded_total;
37 int num_tombstone_updates_downloaded_total; 37 int num_tombstone_updates_downloaded_total;
38 int num_reflected_updates_downloaded_total; 38 int num_reflected_updates_downloaded_total;
39 39
40 // If the syncer encountered a MIGRATION_DONE code, these are the types that 40 // If the syncer encountered a MIGRATION_DONE code, these are the types that
41 // the client must now "migrate", by purging and re-downloading all updates. 41 // the client must now "migrate", by purging and re-downloading all updates.
42 ModelTypeSet types_needing_local_migration; 42 ModelTypeSet types_needing_local_migration;
43 43
44 // Update application and conflicts.
45 int num_updates_applied;
46 int num_encryption_conflicts;
47 int num_server_conflicts;
48 int num_hierarchy_conflicts;
49
44 // Overwrites due to conflict resolution counters. 50 // Overwrites due to conflict resolution counters.
45 int num_local_overwrites; 51 int num_local_overwrites;
46 int num_server_overwrites; 52 int num_server_overwrites;
47 53
48 // Any protocol errors that we received during this sync session. 54 // Any protocol errors that we received during this sync session.
49 SyncProtocolError sync_protocol_error; 55 SyncProtocolError sync_protocol_error;
50 56
51 // Records the most recent results of GetKey, PostCommit and GetUpdates 57 // Records the most recent results of GetKey, PostCommit and GetUpdates
52 // commands. 58 // commands.
53 SyncerError last_get_key_result; 59 SyncerError last_get_key_result;
54 SyncerError last_download_updates_result; 60 SyncerError last_download_updates_result;
55 SyncerError commit_result; 61 SyncerError commit_result;
56 62
57 // Set to true by ResolveConflictsCommand if any forward progress was made.
58 bool conflicts_resolved;
59
60 // Set to true by PostCommitMessageCommand if any commits were successful. 63 // Set to true by PostCommitMessageCommand if any commits were successful.
61 bool items_committed; 64 bool items_committed;
62 65
63 // True indicates debug info has been sent once this session. 66 // True indicates debug info has been sent once this session.
64 bool debug_info_sent; 67 bool debug_info_sent;
65 68
66 // Number of changes remaining, according to the server. 69 // Number of changes remaining, according to the server.
67 // Take it as an estimate unless it's value is zero, in which case there 70 // Take it as an estimate unless it's value is zero, in which case there
68 // really is nothing more to download. 71 // really is nothing more to download.
69 int64 num_server_changes_remaining; 72 int64 num_server_changes_remaining;
70 }; 73 };
71 74
72 } // namespace sessions 75 } // namespace sessions
73 } // namespace syncer 76 } // namespace syncer
74 77
75 #endif // SYNC_SESSIONS_MODEL_NEUTRAL_STATE_H_ 78 #endif // SYNC_SESSIONS_MODEL_NEUTRAL_STATE_H_
OLDNEW
« no previous file with comments | « sync/internal_api/js_sync_manager_observer.cc ('k') | sync/internal_api/public/sessions/model_neutral_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698