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

Side by Side Diff: chrome/browser/sync/sessions/status_controller.h

Issue 9149017: Remove broken variables from sync's AllStatus (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix sync_unit_test failure Created 8 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 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 // 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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 // A toolbelt full of methods for updating counters and flags. 210 // A toolbelt full of methods for updating counters and flags.
211 void increment_num_conflicting_commits_by(int value); 211 void increment_num_conflicting_commits_by(int value);
212 void reset_num_conflicting_commits(); 212 void reset_num_conflicting_commits();
213 void set_num_consecutive_transient_error_commits(int value); 213 void set_num_consecutive_transient_error_commits(int value);
214 void increment_num_consecutive_transient_error_commits_by(int value); 214 void increment_num_consecutive_transient_error_commits_by(int value);
215 void set_num_consecutive_errors(int value); 215 void set_num_consecutive_errors(int value);
216 void increment_num_consecutive_errors(); 216 void increment_num_consecutive_errors();
217 void increment_num_consecutive_errors_by(int value); 217 void increment_num_consecutive_errors_by(int value);
218 void set_num_server_changes_remaining(int64 changes_remaining); 218 void set_num_server_changes_remaining(int64 changes_remaining);
219 void set_invalid_store(bool invalid_store); 219 void set_invalid_store(bool invalid_store);
220 void set_syncer_stuck(bool syncer_stuck);
221 void set_num_successful_bookmark_commits(int value); 220 void set_num_successful_bookmark_commits(int value);
222 void increment_num_successful_commits(); 221 void increment_num_successful_commits();
223 void increment_num_successful_bookmark_commits(); 222 void increment_num_successful_bookmark_commits();
224 void increment_num_updates_downloaded_by(int value); 223 void increment_num_updates_downloaded_by(int value);
225 void increment_num_tombstone_updates_downloaded_by(int value); 224 void increment_num_tombstone_updates_downloaded_by(int value);
226 void set_types_needing_local_migration(syncable::ModelTypeSet types); 225 void set_types_needing_local_migration(syncable::ModelTypeSet types);
227 void set_unsynced_handles(const std::vector<int64>& unsynced_handles); 226 void set_unsynced_handles(const std::vector<int64>& unsynced_handles);
228 void increment_num_local_overwrites(); 227 void increment_num_local_overwrites();
229 void increment_num_server_overwrites(); 228 void increment_num_server_overwrites();
230 void set_sync_protocol_error(const SyncProtocolError& error); 229 void set_sync_protocol_error(const SyncProtocolError& error);
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 } 297 }
299 private: 298 private:
300 StatusController* status_; 299 StatusController* status_;
301 DISALLOW_COPY_AND_ASSIGN(ScopedModelSafeGroupRestriction); 300 DISALLOW_COPY_AND_ASSIGN(ScopedModelSafeGroupRestriction);
302 }; 301 };
303 302
304 } 303 }
305 } 304 }
306 305
307 #endif // CHROME_BROWSER_SYNC_SESSIONS_STATUS_CONTROLLER_H_ 306 #endif // CHROME_BROWSER_SYNC_SESSIONS_STATUS_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/sessions/session_state_unittest.cc ('k') | chrome/browser/sync/sessions/status_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698