| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef COMPONENTS_SYNC_DRIVER_MODEL_ASSOCIATOR_H_ | 5 #ifndef COMPONENTS_SYNC_DRIVER_MODEL_ASSOCIATOR_H_ |
| 6 #define COMPONENTS_SYNC_DRIVER_MODEL_ASSOCIATOR_H_ | 6 #define COMPONENTS_SYNC_DRIVER_MODEL_ASSOCIATOR_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/synchronization/lock.h" | 10 #include "base/synchronization/lock.h" |
| 11 #include "sync/api/sync_error.h" | 11 #include "components/sync/api/sync_error.h" |
| 12 #include "sync/internal_api/public/base/model_type.h" | 12 #include "components/sync/base/model_type.h" |
| 13 | 13 |
| 14 namespace syncer { | 14 namespace syncer { |
| 15 class BaseNode; | 15 class BaseNode; |
| 16 class SyncMergeResult; | 16 class SyncMergeResult; |
| 17 } | 17 } |
| 18 | 18 |
| 19 namespace sync_driver { | 19 namespace sync_driver { |
| 20 | 20 |
| 21 // This represents the fundamental operations used for model association that | 21 // This represents the fundamental operations used for model association that |
| 22 // are common to all ModelAssociators and do not depend on types of the models | 22 // are common to all ModelAssociators and do not depend on types of the models |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 virtual void Associate(const Node* node, | 88 virtual void Associate(const Node* node, |
| 89 const syncer::BaseNode& sync_node) = 0; | 89 const syncer::BaseNode& sync_node) = 0; |
| 90 | 90 |
| 91 // Remove the association that corresponds to the given sync id. | 91 // Remove the association that corresponds to the given sync id. |
| 92 virtual void Disassociate(int64_t sync_id) = 0; | 92 virtual void Disassociate(int64_t sync_id) = 0; |
| 93 }; | 93 }; |
| 94 | 94 |
| 95 } // namespace sync_driver | 95 } // namespace sync_driver |
| 96 | 96 |
| 97 #endif // COMPONENTS_SYNC_DRIVER_MODEL_ASSOCIATOR_H_ | 97 #endif // COMPONENTS_SYNC_DRIVER_MODEL_ASSOCIATOR_H_ |
| OLD | NEW |