| 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 #ifndef CHROME_BROWSER_SYNC_GLUE_THEME_MODEL_ASSOCIATOR_H_ | 5 #ifndef CHROME_BROWSER_SYNC_GLUE_THEME_MODEL_ASSOCIATOR_H_ |
| 6 #define CHROME_BROWSER_SYNC_GLUE_THEME_MODEL_ASSOCIATOR_H_ | 6 #define CHROME_BROWSER_SYNC_GLUE_THEME_MODEL_ASSOCIATOR_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 class ThemeModelAssociator : public AssociatorInterface { | 21 class ThemeModelAssociator : public AssociatorInterface { |
| 22 public: | 22 public: |
| 23 ThemeModelAssociator(ProfileSyncService* sync_service, | 23 ThemeModelAssociator(ProfileSyncService* sync_service, |
| 24 DataTypeErrorHandler* error_handler); | 24 DataTypeErrorHandler* error_handler); |
| 25 virtual ~ThemeModelAssociator(); | 25 virtual ~ThemeModelAssociator(); |
| 26 | 26 |
| 27 // Used by profile_sync_test_util.h. | 27 // Used by profile_sync_test_util.h. |
| 28 static syncable::ModelType model_type() { return syncable::THEMES; } | 28 static syncable::ModelType model_type() { return syncable::THEMES; } |
| 29 | 29 |
| 30 // AssociatorInterface implementation. | 30 // AssociatorInterface implementation. |
| 31 virtual SyncError AssociateModels() OVERRIDE; | 31 virtual csync::SyncError AssociateModels() OVERRIDE; |
| 32 virtual SyncError DisassociateModels() OVERRIDE; | 32 virtual csync::SyncError DisassociateModels() OVERRIDE; |
| 33 virtual bool SyncModelHasUserCreatedNodes(bool* has_nodes) OVERRIDE; | 33 virtual bool SyncModelHasUserCreatedNodes(bool* has_nodes) OVERRIDE; |
| 34 virtual void AbortAssociation() OVERRIDE { | 34 virtual void AbortAssociation() OVERRIDE { |
| 35 // No implementation needed, this associator runs on the main | 35 // No implementation needed, this associator runs on the main |
| 36 // thread. | 36 // thread. |
| 37 } | 37 } |
| 38 virtual bool CryptoReadyIfNecessary() OVERRIDE; | 38 virtual bool CryptoReadyIfNecessary() OVERRIDE; |
| 39 | 39 |
| 40 private: | 40 private: |
| 41 ProfileSyncService* sync_service_; | 41 ProfileSyncService* sync_service_; |
| 42 DataTypeErrorHandler* error_handler_; | 42 DataTypeErrorHandler* error_handler_; |
| 43 | 43 |
| 44 DISALLOW_COPY_AND_ASSIGN(ThemeModelAssociator); | 44 DISALLOW_COPY_AND_ASSIGN(ThemeModelAssociator); |
| 45 }; | 45 }; |
| 46 | 46 |
| 47 } // namespace browser_sync | 47 } // namespace browser_sync |
| 48 | 48 |
| 49 #endif // CHROME_BROWSER_SYNC_GLUE_THEME_MODEL_ASSOCIATOR_H_ | 49 #endif // CHROME_BROWSER_SYNC_GLUE_THEME_MODEL_ASSOCIATOR_H_ |
| OLD | NEW |