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

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

Issue 158953004: sync: Move migration signal out of snapshot (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
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 #include "sync/sessions/status_controller.h" 5 #include "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 "sync/internal_api/public/base/model_type.h" 10 #include "sync/internal_api/public/base/model_type.h"
11 #include "sync/protocol/sync_protocol_error.h" 11 #include "sync/protocol/sync_protocol_error.h"
12 12
13 namespace syncer { 13 namespace syncer {
14 namespace sessions { 14 namespace sessions {
15 15
16 StatusController::StatusController() { 16 StatusController::StatusController() {
17 } 17 }
18 18
19 StatusController::~StatusController() {} 19 StatusController::~StatusController() {}
20 20
21 void StatusController::increment_num_updates_downloaded_by(int value) { 21 void StatusController::increment_num_updates_downloaded_by(int value) {
22 model_neutral_.num_updates_downloaded_total += value; 22 model_neutral_.num_updates_downloaded_total += value;
23 } 23 }
24 24
25 void StatusController::set_types_needing_local_migration(ModelTypeSet types) {
26 model_neutral_.types_needing_local_migration = types;
27 }
28
29 void StatusController::increment_num_tombstone_updates_downloaded_by( 25 void StatusController::increment_num_tombstone_updates_downloaded_by(
30 int value) { 26 int value) {
31 model_neutral_.num_tombstone_updates_downloaded_total += value; 27 model_neutral_.num_tombstone_updates_downloaded_total += value;
32 } 28 }
33 29
34 void StatusController::increment_num_reflected_updates_downloaded_by( 30 void StatusController::increment_num_reflected_updates_downloaded_by(
35 int value) { 31 int value) {
36 model_neutral_.num_reflected_updates_downloaded_total += value; 32 model_neutral_.num_reflected_updates_downloaded_total += value;
37 } 33 }
38 34
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 int StatusController::TotalNumConflictingItems() const { 117 int StatusController::TotalNumConflictingItems() const {
122 int sum = 0; 118 int sum = 0;
123 sum += num_encryption_conflicts(); 119 sum += num_encryption_conflicts();
124 sum += num_hierarchy_conflicts(); 120 sum += num_hierarchy_conflicts();
125 sum += num_server_conflicts(); 121 sum += num_server_conflicts();
126 return sum; 122 return sum;
127 } 123 }
128 124
129 } // namespace sessions 125 } // namespace sessions
130 } // namespace syncer 126 } // namespace syncer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698