| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_EXTENSION_MODEL_ASSOCIATOR_H_ | 5 #ifndef CHROME_BROWSER_SYNC_GLUE_EXTENSION_MODEL_ASSOCIATOR_H_ |
| 6 #define CHROME_BROWSER_SYNC_GLUE_EXTENSION_MODEL_ASSOCIATOR_H_ | 6 #define CHROME_BROWSER_SYNC_GLUE_EXTENSION_MODEL_ASSOCIATOR_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 explicit ExtensionModelAssociator(ProfileSyncService* sync_service); | 36 explicit ExtensionModelAssociator(ProfileSyncService* sync_service); |
| 37 virtual ~ExtensionModelAssociator(); | 37 virtual ~ExtensionModelAssociator(); |
| 38 | 38 |
| 39 // Used by profile_sync_test_util.h. | 39 // Used by profile_sync_test_util.h. |
| 40 static syncable::ModelType model_type() { return syncable::EXTENSIONS; } | 40 static syncable::ModelType model_type() { return syncable::EXTENSIONS; } |
| 41 | 41 |
| 42 // AssociatorInterface implementation. | 42 // AssociatorInterface implementation. |
| 43 virtual bool AssociateModels(); | 43 virtual bool AssociateModels(); |
| 44 virtual bool DisassociateModels(); | 44 virtual bool DisassociateModels(); |
| 45 virtual bool SyncModelHasUserCreatedNodes(bool* has_nodes); | 45 virtual bool SyncModelHasUserCreatedNodes(bool* has_nodes); |
| 46 // TODO(akalin): Remove this unused function. | |
| 47 virtual bool ChromeModelHasUserCreatedNodes(bool* has_nodes); | |
| 48 virtual void AbortAssociation() { | 46 virtual void AbortAssociation() { |
| 49 // No implementation needed, this associator runs on the main | 47 // No implementation needed, this associator runs on the main |
| 50 // thread. | 48 // thread. |
| 51 } | 49 } |
| 52 | 50 |
| 53 // Used by ExtensionChangeProcessor. | 51 // Used by ExtensionChangeProcessor. |
| 54 // | 52 // |
| 55 // TODO(akalin): These functions can actually be moved to the | 53 // TODO(akalin): These functions can actually be moved to the |
| 56 // ChangeProcessor after some refactoring. | 54 // ChangeProcessor after some refactoring. |
| 57 | 55 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 | 99 |
| 102 // Weak pointer. | 100 // Weak pointer. |
| 103 ProfileSyncService* sync_service_; | 101 ProfileSyncService* sync_service_; |
| 104 | 102 |
| 105 DISALLOW_COPY_AND_ASSIGN(ExtensionModelAssociator); | 103 DISALLOW_COPY_AND_ASSIGN(ExtensionModelAssociator); |
| 106 }; | 104 }; |
| 107 | 105 |
| 108 } // namespace browser_sync | 106 } // namespace browser_sync |
| 109 | 107 |
| 110 #endif // CHROME_BROWSER_SYNC_GLUE_EXTENSION_MODEL_ASSOCIATOR_H_ | 108 #endif // CHROME_BROWSER_SYNC_GLUE_EXTENSION_MODEL_ASSOCIATOR_H_ |
| OLD | NEW |