| 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 if (value == 0) | 105 if (value == 0) |
| 106 return; | 106 return; |
| 107 shared_.error.mutate()->num_conflicting_commits += value; | 107 shared_.error.mutate()->num_conflicting_commits += value; |
| 108 } | 108 } |
| 109 | 109 |
| 110 void StatusController::increment_num_updates_downloaded_by(int value) { | 110 void StatusController::increment_num_updates_downloaded_by(int value) { |
| 111 shared_.syncer_status.mutate()->num_updates_downloaded_total += value; | 111 shared_.syncer_status.mutate()->num_updates_downloaded_total += value; |
| 112 } | 112 } |
| 113 | 113 |
| 114 void StatusController::set_types_needing_local_migration( | 114 void StatusController::set_types_needing_local_migration( |
| 115 syncable::ModelEnumSet types) { | 115 syncable::ModelTypeSet types) { |
| 116 shared_.syncer_status.mutate()->types_needing_local_migration = types; | 116 shared_.syncer_status.mutate()->types_needing_local_migration = types; |
| 117 } | 117 } |
| 118 | 118 |
| 119 void StatusController::increment_num_tombstone_updates_downloaded_by( | 119 void StatusController::increment_num_tombstone_updates_downloaded_by( |
| 120 int value) { | 120 int value) { |
| 121 shared_.syncer_status.mutate()->num_tombstone_updates_downloaded_total += | 121 shared_.syncer_status.mutate()->num_tombstone_updates_downloaded_total += |
| 122 value; | 122 value; |
| 123 } | 123 } |
| 124 | 124 |
| 125 void StatusController::reset_num_conflicting_commits() { | 125 void StatusController::reset_num_conflicting_commits() { |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 void StatusController::set_debug_info_sent() { | 302 void StatusController::set_debug_info_sent() { |
| 303 shared_.control_params.debug_info_sent = true; | 303 shared_.control_params.debug_info_sent = true; |
| 304 } | 304 } |
| 305 | 305 |
| 306 bool StatusController::debug_info_sent() const { | 306 bool StatusController::debug_info_sent() const { |
| 307 return shared_.control_params.debug_info_sent; | 307 return shared_.control_params.debug_info_sent; |
| 308 } | 308 } |
| 309 | 309 |
| 310 } // namespace sessions | 310 } // namespace sessions |
| 311 } // namespace browser_sync | 311 } // namespace browser_sync |
| OLD | NEW |