OLD | NEW |
---|---|
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 #include "chrome/browser/sync/sessions/status_controller.h" | 5 #include "chrome/browser/sync/sessions/status_controller.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "chrome/browser/sync/protocol/sync_protocol_error.h" | 10 #include "chrome/browser/sync/protocol/sync_protocol_error.h" |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
204 | 204 |
205 void StatusController::increment_num_server_overwrites() { | 205 void StatusController::increment_num_server_overwrites() { |
206 shared_.syncer_status.mutate()->num_server_overwrites++; | 206 shared_.syncer_status.mutate()->num_server_overwrites++; |
207 } | 207 } |
208 | 208 |
209 void StatusController::set_sync_protocol_error( | 209 void StatusController::set_sync_protocol_error( |
210 const SyncProtocolError& error) { | 210 const SyncProtocolError& error) { |
211 shared_.error.mutate()->sync_protocol_error = error; | 211 shared_.error.mutate()->sync_protocol_error = error; |
212 } | 212 } |
213 | 213 |
214 void StatusController::set_download_updates_result(const SyncerError result) { | |
215 shared_.error.mutate()->download_updates_result = result; | |
tim (not reviewing)
2012/01/10 17:17:34
If you add stuff to this class, it's a good idea t
rlarocque
2012/01/10 20:40:56
Done.
I usually wouldn't bother to test getter an
tim (not reviewing)
2012/01/11 01:09:00
Right... I made it that way because this file is p
| |
216 } | |
217 | |
218 void StatusController::set_post_commit_result(const SyncerError result) { | |
219 shared_.error.mutate()->post_commit_result = result; | |
220 } | |
221 | |
222 void StatusController::set_process_commit_response_result( | |
223 const SyncerError result) { | |
224 shared_.error.mutate()->process_commit_response_result = result; | |
225 } | |
226 | |
214 void StatusController::set_commit_set(const OrderedCommitSet& commit_set) { | 227 void StatusController::set_commit_set(const OrderedCommitSet& commit_set) { |
215 DCHECK(!group_restriction_in_effect_); | 228 DCHECK(!group_restriction_in_effect_); |
216 shared_.commit_set = commit_set; | 229 shared_.commit_set = commit_set; |
217 } | 230 } |
218 | 231 |
219 void StatusController::update_conflict_sets_built(bool built) { | 232 void StatusController::update_conflict_sets_built(bool built) { |
220 shared_.control_params.conflict_sets_built |= built; | 233 shared_.control_params.conflict_sets_built |= built; |
221 } | 234 } |
222 void StatusController::update_conflicts_resolved(bool resolved) { | 235 void StatusController::update_conflicts_resolved(bool resolved) { |
223 shared_.control_params.conflict_sets_built |= resolved; | 236 shared_.control_params.conflict_sets_built |= resolved; |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
298 void StatusController::set_debug_info_sent() { | 311 void StatusController::set_debug_info_sent() { |
299 shared_.control_params.debug_info_sent = true; | 312 shared_.control_params.debug_info_sent = true; |
300 } | 313 } |
301 | 314 |
302 bool StatusController::debug_info_sent() const { | 315 bool StatusController::debug_info_sent() const { |
303 return shared_.control_params.debug_info_sent; | 316 return shared_.control_params.debug_info_sent; |
304 } | 317 } |
305 | 318 |
306 } // namespace sessions | 319 } // namespace sessions |
307 } // namespace browser_sync | 320 } // namespace browser_sync |
OLD | NEW |