| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 CHROME_BROWSER_SYNC_GLUE_PREFERENCE_MODEL_ASSOCIATOR_H_ | 5 #ifndef CHROME_BROWSER_SYNC_GLUE_PREFERENCE_MODEL_ASSOCIATOR_H_ |
| 6 #define CHROME_BROWSER_SYNC_GLUE_PREFERENCE_MODEL_ASSOCIATOR_H_ | 6 #define CHROME_BROWSER_SYNC_GLUE_PREFERENCE_MODEL_ASSOCIATOR_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 // Iterates through the sync model looking for matched pairs of items. | 50 // Iterates through the sync model looking for matched pairs of items. |
| 51 virtual bool AssociateModels(); | 51 virtual bool AssociateModels(); |
| 52 | 52 |
| 53 // Clears all associations. | 53 // Clears all associations. |
| 54 virtual bool DisassociateModels(); | 54 virtual bool DisassociateModels(); |
| 55 | 55 |
| 56 // Returns whether the sync model has nodes other than the permanent tagged | 56 // Returns whether the sync model has nodes other than the permanent tagged |
| 57 // nodes. | 57 // nodes. |
| 58 virtual bool SyncModelHasUserCreatedNodes(bool* has_nodes); | 58 virtual bool SyncModelHasUserCreatedNodes(bool* has_nodes); |
| 59 | 59 |
| 60 // Returns whether the preference model has any user-defined preferences. | |
| 61 virtual bool ChromeModelHasUserCreatedNodes(bool* has_nodes); | |
| 62 | |
| 63 virtual void AbortAssociation() { | 60 virtual void AbortAssociation() { |
| 64 // No implementation needed, this associator runs on the main | 61 // No implementation needed, this associator runs on the main |
| 65 // thread. | 62 // thread. |
| 66 } | 63 } |
| 67 | 64 |
| 68 // Not implemented. | 65 // Not implemented. |
| 69 virtual const PrefService::Preference* GetChromeNodeFromSyncId( | 66 virtual const PrefService::Preference* GetChromeNodeFromSyncId( |
| 70 int64 sync_id) { | 67 int64 sync_id) { |
| 71 return NULL; | 68 return NULL; |
| 72 } | 69 } |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 | 121 |
| 125 PreferenceNameToSyncIdMap id_map_; | 122 PreferenceNameToSyncIdMap id_map_; |
| 126 SyncIdToPreferenceNameMap id_map_inverse_; | 123 SyncIdToPreferenceNameMap id_map_inverse_; |
| 127 | 124 |
| 128 DISALLOW_COPY_AND_ASSIGN(PreferenceModelAssociator); | 125 DISALLOW_COPY_AND_ASSIGN(PreferenceModelAssociator); |
| 129 }; | 126 }; |
| 130 | 127 |
| 131 } // namespace browser_sync | 128 } // namespace browser_sync |
| 132 | 129 |
| 133 #endif // CHROME_BROWSER_SYNC_GLUE_PREFERENCE_MODEL_ASSOCIATOR_H_ | 130 #endif // CHROME_BROWSER_SYNC_GLUE_PREFERENCE_MODEL_ASSOCIATOR_H_ |
| OLD | NEW |