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

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

Issue 152013003: Split up SyncEngineEventListener callbacks (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: One more forward declaration Created 6 years, 10 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
« no previous file with comments | « sync/internal_api/sync_manager_impl.cc ('k') | sync/sessions/status_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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. 6 // state tracking on behalf of a SyncSession.
7 // 7 //
8 // This object may be accessed from many different threads. It will be accessed 8 // This object may be accessed from many different threads. It will be accessed
9 // most often from the syncer thread. However, when update application is in 9 // most often from the syncer thread. However, when update application is in
10 // progress it may also be accessed from the worker threads. This is safe 10 // progress it may also be accessed from the worker threads. This is safe
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 void increment_num_server_conflicts(); 85 void increment_num_server_conflicts();
86 void increment_num_local_overwrites(); 86 void increment_num_local_overwrites();
87 void increment_num_server_overwrites(); 87 void increment_num_server_overwrites();
88 88
89 // Commit counters. 89 // Commit counters.
90 void increment_num_successful_commits(); 90 void increment_num_successful_commits();
91 void increment_num_successful_bookmark_commits(); 91 void increment_num_successful_bookmark_commits();
92 void set_num_successful_bookmark_commits(int value); 92 void set_num_successful_bookmark_commits(int value);
93 93
94 // Server communication status tracking. 94 // Server communication status tracking.
95 void set_sync_protocol_error(const SyncProtocolError& error);
96 void set_last_get_key_result(const SyncerError result); 95 void set_last_get_key_result(const SyncerError result);
97 void set_last_download_updates_result(const SyncerError result); 96 void set_last_download_updates_result(const SyncerError result);
98 void set_commit_result(const SyncerError result); 97 void set_commit_result(const SyncerError result);
99 98
100 // A very important flag used to inform frontend of need to migrate. 99 // A very important flag used to inform frontend of need to migrate.
101 void set_types_needing_local_migration(ModelTypeSet types); 100 void set_types_needing_local_migration(ModelTypeSet types);
102 101
103 void UpdateStartTime(); 102 void UpdateStartTime();
104 103
105 private: 104 private:
106 ModelNeutralState model_neutral_; 105 ModelNeutralState model_neutral_;
107 106
108 base::Time sync_start_time_; 107 base::Time sync_start_time_;
109 108
110 DISALLOW_COPY_AND_ASSIGN(StatusController); 109 DISALLOW_COPY_AND_ASSIGN(StatusController);
111 }; 110 };
112 111
113 } // namespace sessions 112 } // namespace sessions
114 } // namespace syncer 113 } // namespace syncer
115 114
116 #endif // SYNC_SESSIONS_STATUS_CONTROLLER_H_ 115 #endif // SYNC_SESSIONS_STATUS_CONTROLLER_H_
OLDNEW
« no previous file with comments | « sync/internal_api/sync_manager_impl.cc ('k') | sync/sessions/status_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698