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

Side by Side Diff: chrome/browser/sync/engine/syncapi.h

Issue 7013040: Add information about sync session and other useful data to about:sync. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Upload before commit. Created 9 years, 7 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // This file defines the "sync API", an interface to the syncer 5 // This file defines the "sync API", an interface to the syncer
6 // backend that exposes (1) the core functionality of maintaining a consistent 6 // backend that exposes (1) the core functionality of maintaining a consistent
7 // local snapshot of a hierarchical object set; (2) a means to transactionally 7 // local snapshot of a hierarchical object set; (2) a means to transactionally
8 // access and modify those objects; (3) a means to control client/server 8 // access and modify those objects; (3) a means to control client/server
9 // synchronization tasks, namely: pushing local object modifications to a 9 // synchronization tasks, namely: pushing local object modifications to a
10 // server, pulling nonlocal object modifications from a server to this client, 10 // server, pulling nonlocal object modifications from a server to this client,
(...skipping 718 matching lines...) Expand 10 before | Expand all | Expand 10 after
729 // Total updates received by the syncer since browser start. 729 // Total updates received by the syncer since browser start.
730 int updates_received; 730 int updates_received;
731 731
732 // Of updates_received, how many were tombstones. 732 // Of updates_received, how many were tombstones.
733 int tombstone_updates_received; 733 int tombstone_updates_received;
734 bool disk_full; 734 bool disk_full;
735 735
736 // Total number of overwrites due to conflict resolver since browser start. 736 // Total number of overwrites due to conflict resolver since browser start.
737 int num_local_overwrites_total; 737 int num_local_overwrites_total;
738 int num_server_overwrites_total; 738 int num_server_overwrites_total;
739
740 // Count of empty and non empty getupdates;
741 int nonempty_get_updates;
742 int empty_get_updates;
743
744 // Count of useless and useful syncs we perform.
745 int useless_sync_cycles;
746 int useful_sync_cycles;
739 }; 747 };
740 748
741 // An interface the embedding application implements to receive notifications 749 // An interface the embedding application implements to receive notifications
742 // from the SyncManager. Register an observer via SyncManager::AddObserver. 750 // from the SyncManager. Register an observer via SyncManager::AddObserver.
743 // This observer is an event driven model as the events may be raised from 751 // This observer is an event driven model as the events may be raised from
744 // different internal threads, and simply providing an "OnStatusChanged" type 752 // different internal threads, and simply providing an "OnStatusChanged" type
745 // notification complicates things such as trying to determine "what changed", 753 // notification complicates things such as trying to determine "what changed",
746 // if different members of the Status object are modified from different 754 // if different members of the Status object are modified from different
747 // threads. This way, the event is explicit, and it is safe for the Observer 755 // threads. This way, the event is explicit, and it is safe for the Observer
748 // to dispatch to a native thread or synchronize accordingly. 756 // to dispatch to a native thread or synchronize accordingly.
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
1031 private: 1039 private:
1032 // An opaque pointer to the nested private class. 1040 // An opaque pointer to the nested private class.
1033 SyncInternal* data_; 1041 SyncInternal* data_;
1034 1042
1035 DISALLOW_COPY_AND_ASSIGN(SyncManager); 1043 DISALLOW_COPY_AND_ASSIGN(SyncManager);
1036 }; 1044 };
1037 1045
1038 } // namespace sync_api 1046 } // namespace sync_api
1039 1047
1040 #endif // CHROME_BROWSER_SYNC_ENGINE_SYNCAPI_H_ 1048 #endif // CHROME_BROWSER_SYNC_ENGINE_SYNCAPI_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/engine/all_status.cc ('k') | chrome/browser/sync/js_sync_manager_observer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698