diff options
author | rlarocque@chromium.org <rlarocque@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-24 02:17:30 +0000 |
---|---|---|
committer | rlarocque@chromium.org <rlarocque@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-24 02:17:30 +0000 |
commit | de4963c3f017007f36853564f4ed2ccbf299f454 (patch) | |
tree | 9d68f678cfceb2c61d29bc68fca27b421e2194b8 /sync/sessions/session_state.h | |
parent | c87efedd255ab42f25fc44588ecdb22e7af43bcb (diff) | |
download | chromium_src-de4963c3f017007f36853564f4ed2ccbf299f454.zip chromium_src-de4963c3f017007f36853564f4ed2ccbf299f454.tar.gz chromium_src-de4963c3f017007f36853564f4ed2ccbf299f454.tar.bz2 |
sync: Count and report reflected updates
Many of the updates a sync client receives are echoes of its own
changes. This patch attempts to count how often these updates are
received by comparing the version of downloaded updates against the
local version.
These counts are exposed locally through AllStatus/about:sync. We also
upload this information to the server through the ClientDebugInfo
mechanism.
BUG=117565
TEST=
Review URL: http://codereview.chromium.org/9702083
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128659 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sync/sessions/session_state.h')
-rw-r--r-- | sync/sessions/session_state.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sync/sessions/session_state.h b/sync/sessions/session_state.h index 676fe5b..7403758 100644 --- a/sync/sessions/session_state.h +++ b/sync/sessions/session_state.h @@ -72,6 +72,7 @@ struct SyncerStatus { // Download event counters. int num_updates_downloaded_total; int num_tombstone_updates_downloaded_total; + int num_reflected_updates_downloaded_total; // If the syncer encountered a MIGRATION_DONE code, these are the types that // the client must now "migrate", by purging and re-downloading all updates. @@ -121,6 +122,7 @@ struct SyncSessionSnapshot { int num_server_conflicts, bool did_commit_items, const SyncSourceInfo& source, + bool notifications_enabled, size_t num_entries, base::Time sync_start_time, bool retry_scheduled); @@ -146,6 +148,7 @@ struct SyncSessionSnapshot { const int num_server_conflicts; const bool did_commit_items; const SyncSourceInfo source; + const bool notifications_enabled; const size_t num_entries; base::Time sync_start_time; const bool retry_scheduled; |