| OLD | NEW |
| 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 <stdint.h> |
| 6 |
| 5 #include "sync/api/sync_merge_result.h" | 7 #include "sync/api/sync_merge_result.h" |
| 6 | 8 |
| 7 namespace syncer { | 9 namespace syncer { |
| 8 | 10 |
| 9 SyncMergeResult::SyncMergeResult(ModelType type) | 11 SyncMergeResult::SyncMergeResult(ModelType type) |
| 10 : model_type_(type), | 12 : model_type_(type), |
| 11 num_items_before_association_(0), | 13 num_items_before_association_(0), |
| 12 num_items_after_association_(0), | 14 num_items_after_association_(0), |
| 13 num_items_added_(0), | 15 num_items_added_(0), |
| 14 num_items_deleted_(0), | 16 num_items_deleted_(0), |
| (...skipping 25 matching lines...) Expand all Loading... |
| 40 } | 42 } |
| 41 | 43 |
| 42 void SyncMergeResult::set_num_items_deleted(int num_items_deleted) { | 44 void SyncMergeResult::set_num_items_deleted(int num_items_deleted) { |
| 43 num_items_deleted_ = num_items_deleted; | 45 num_items_deleted_ = num_items_deleted; |
| 44 } | 46 } |
| 45 | 47 |
| 46 void SyncMergeResult::set_num_items_modified(int num_items_modified) { | 48 void SyncMergeResult::set_num_items_modified(int num_items_modified) { |
| 47 num_items_modified_ = num_items_modified; | 49 num_items_modified_ = num_items_modified; |
| 48 } | 50 } |
| 49 | 51 |
| 50 void SyncMergeResult::set_pre_association_version(int64 version) { | 52 void SyncMergeResult::set_pre_association_version(int64_t version) { |
| 51 pre_association_version_ = version; | 53 pre_association_version_ = version; |
| 52 } | 54 } |
| 53 | 55 |
| 54 ModelType SyncMergeResult::model_type() const { | 56 ModelType SyncMergeResult::model_type() const { |
| 55 return model_type_; | 57 return model_type_; |
| 56 } | 58 } |
| 57 | 59 |
| 58 SyncError SyncMergeResult::error() const { | 60 SyncError SyncMergeResult::error() const { |
| 59 return error_; | 61 return error_; |
| 60 } | 62 } |
| (...skipping 11 matching lines...) Expand all Loading... |
| 72 } | 74 } |
| 73 | 75 |
| 74 int SyncMergeResult::num_items_deleted() const { | 76 int SyncMergeResult::num_items_deleted() const { |
| 75 return num_items_deleted_; | 77 return num_items_deleted_; |
| 76 } | 78 } |
| 77 | 79 |
| 78 int SyncMergeResult::num_items_modified() const { | 80 int SyncMergeResult::num_items_modified() const { |
| 79 return num_items_modified_; | 81 return num_items_modified_; |
| 80 } | 82 } |
| 81 | 83 |
| 82 int64 SyncMergeResult::pre_association_version() const { | 84 int64_t SyncMergeResult::pre_association_version() const { |
| 83 return pre_association_version_; | 85 return pre_association_version_; |
| 84 } | 86 } |
| 85 | 87 |
| 86 } // namespace syncer | 88 } // namespace syncer |
| OLD | NEW |