| 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 "components/sync/api/sync_change.h" | 5 #include "components/sync/model/sync_change.h" |
| 6 | 6 |
| 7 #include <ostream> | 7 #include <ostream> |
| 8 | 8 |
| 9 namespace syncer { | 9 namespace syncer { |
| 10 | 10 |
| 11 SyncChange::SyncChange() : change_type_(ACTION_INVALID) {} | 11 SyncChange::SyncChange() : change_type_(ACTION_INVALID) {} |
| 12 | 12 |
| 13 SyncChange::SyncChange(const tracked_objects::Location& from_here, | 13 SyncChange::SyncChange(const tracked_objects::Location& from_here, |
| 14 SyncChangeType change_type, | 14 SyncChangeType change_type, |
| 15 const SyncData& sync_data) | 15 const SyncData& sync_data) |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 return "{ " + location_.ToString() + ", changeType: " + | 73 return "{ " + location_.ToString() + ", changeType: " + |
| 74 ChangeTypeToString(change_type_) + ", syncData: " + | 74 ChangeTypeToString(change_type_) + ", syncData: " + |
| 75 sync_data_.ToString() + "}"; | 75 sync_data_.ToString() + "}"; |
| 76 } | 76 } |
| 77 | 77 |
| 78 void PrintTo(const SyncChange& sync_change, std::ostream* os) { | 78 void PrintTo(const SyncChange& sync_change, std::ostream* os) { |
| 79 *os << sync_change.ToString(); | 79 *os << sync_change.ToString(); |
| 80 } | 80 } |
| 81 | 81 |
| 82 } // namespace syncer | 82 } // namespace syncer |
| OLD | NEW |