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

Side by Side Diff: chrome/browser/sync/sessions/status_controller.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: For review. 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 // StatusController handles all counter and status related number crunching and 5 // StatusController handles all counter and status related number crunching and
6 // state tracking on behalf of a SyncSession. It 'controls' the model data 6 // state tracking on behalf of a SyncSession. It 'controls' the model data
7 // defined in session_state.h. The most important feature of StatusController 7 // defined in session_state.h. The most important feature of StatusController
8 // is the ScopedModelSafetyRestriction. When one of these is active, the 8 // is the ScopedModelSafetyRestriction. When one of these is active, the
9 // underlying data set exposed via accessors is swapped out to the appropriate 9 // underlying data set exposed via accessors is swapped out to the appropriate
10 // set for the restricted ModelSafeGroup behind the scenes. For example, if 10 // set for the restricted ModelSafeGroup behind the scenes. For example, if
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 void reset_num_conflicting_commits(); 208 void reset_num_conflicting_commits();
209 void set_num_consecutive_transient_error_commits(int value); 209 void set_num_consecutive_transient_error_commits(int value);
210 void increment_num_consecutive_transient_error_commits_by(int value); 210 void increment_num_consecutive_transient_error_commits_by(int value);
211 void set_num_consecutive_errors(int value); 211 void set_num_consecutive_errors(int value);
212 void increment_num_consecutive_errors(); 212 void increment_num_consecutive_errors();
213 void increment_num_consecutive_errors_by(int value); 213 void increment_num_consecutive_errors_by(int value);
214 void set_num_server_changes_remaining(int64 changes_remaining); 214 void set_num_server_changes_remaining(int64 changes_remaining);
215 void set_invalid_store(bool invalid_store); 215 void set_invalid_store(bool invalid_store);
216 void set_syncer_stuck(bool syncer_stuck); 216 void set_syncer_stuck(bool syncer_stuck);
217 void set_syncing(bool syncing); 217 void set_syncing(bool syncing);
218 void set_throttled();
218 void set_num_successful_bookmark_commits(int value); 219 void set_num_successful_bookmark_commits(int value);
219 void increment_num_successful_commits(); 220 void increment_num_successful_commits();
220 void increment_num_successful_bookmark_commits(); 221 void increment_num_successful_bookmark_commits();
221 void increment_num_updates_downloaded_by(int value); 222 void increment_num_updates_downloaded_by(int value);
222 void increment_num_tombstone_updates_downloaded_by(int value); 223 void increment_num_tombstone_updates_downloaded_by(int value);
223 void set_types_needing_local_migration(const syncable::ModelTypeSet& types); 224 void set_types_needing_local_migration(const syncable::ModelTypeSet& types);
224 void set_unsynced_handles(const std::vector<int64>& unsynced_handles); 225 void set_unsynced_handles(const std::vector<int64>& unsynced_handles);
225 void increment_num_local_overwrites(); 226 void increment_num_local_overwrites();
226 void increment_num_server_overwrites(); 227 void increment_num_server_overwrites();
227 228
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 } 280 }
280 private: 281 private:
281 StatusController* status_; 282 StatusController* status_;
282 DISALLOW_COPY_AND_ASSIGN(ScopedModelSafeGroupRestriction); 283 DISALLOW_COPY_AND_ASSIGN(ScopedModelSafeGroupRestriction);
283 }; 284 };
284 285
285 } 286 }
286 } 287 }
287 288
288 #endif // CHROME_BROWSER_SYNC_SESSIONS_STATUS_CONTROLLER_H_ 289 #endif // CHROME_BROWSER_SYNC_SESSIONS_STATUS_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698