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

Unified Diff: chrome/browser/sync/engine/syncapi.h

Issue 6104003: sync: use progress markers instead of timestamps during GetUpdates (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Tim's fixes Created 9 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/sync/engine/store_timestamps_command.cc ('k') | chrome/browser/sync/engine/syncapi.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/engine/syncapi.h
diff --git a/chrome/browser/sync/engine/syncapi.h b/chrome/browser/sync/engine/syncapi.h
index d86ed71f504de377e78fb9f85e58ed255a43f852..601e58e75ddd527e2bf9fd0b9f789fc52dc1493b 100644
--- a/chrome/browser/sync/engine/syncapi.h
+++ b/chrome/browser/sync/engine/syncapi.h
@@ -648,32 +648,43 @@ class SyncManager {
// Can't connect to server, and we haven't completed the initial
// sync yet. So there's nothing we can do but wait for the server.
OFFLINE_UNUSABLE,
+
+ SUMMARY_STATUS_COUNT,
};
- Summary summary;
- // Various server related information.
+ Summary summary;
bool authenticated; // Successfully authenticated via GAIA.
bool server_up; // True if we have received at least one good
// reply from the server.
bool server_reachable; // True if we received any reply from the server.
bool server_broken; // True of the syncer is stopped because of server
// issues.
-
bool notifications_enabled; // True only if subscribed for notifications.
+
+ // Notifications counters updated by the actions in synapi.
int notifications_received;
int notifications_sent;
- // Various Syncer data.
+ // The max number of consecutive errors from any component.
+ int max_consecutive_errors;
+
int unsynced_count;
+
int conflicting_count;
bool syncing;
+ // True after a client has done a first sync.
bool initial_sync_ended;
+ // True if any syncer is stuck.
bool syncer_stuck;
+
+ // Total updates available. If zero, nothing left to download.
int64 updates_available;
- int64 updates_received;
+ // Total updates received by the syncer since browser start.
+ int updates_received;
+
+ // Of updates_received, how many were tombstones.
+ int tombstone_updates_received;
bool disk_full;
- bool invalid_store;
- int max_consecutive_errors; // The max number of errors from any component.
};
// An interface the embedding application implements to receive notifications
« no previous file with comments | « chrome/browser/sync/engine/store_timestamps_command.cc ('k') | chrome/browser/sync/engine/syncapi.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698