| 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" |
| 11 #include "chrome/browser/sync/glue/data_type_error_handler.h" | 11 #include "chrome/browser/sync/glue/data_type_error_handler.h" |
| 12 #include "chrome/browser/sync/glue/model_associator.h" | 12 #include "chrome/browser/sync/glue/model_associator.h" |
| 13 #include "sync/internal_api/public/syncable/model_type.h" | 13 #include "sync/internal_api/public/base/model_type.h" |
| 14 | 14 |
| 15 class ProfileSyncService; | 15 class ProfileSyncService; |
| 16 | 16 |
| 17 namespace browser_sync { | 17 namespace browser_sync { |
| 18 | 18 |
| 19 // Contains all logic for associating the Chrome themes model and the | 19 // Contains all logic for associating the Chrome themes model and the |
| 20 // sync themes model. | 20 // sync themes model. |
| 21 class ThemeModelAssociator : public AssociatorInterface { | 21 class ThemeModelAssociator : public AssociatorInterface { |
| 22 public: | 22 public: |
| 23 ThemeModelAssociator(ProfileSyncService* sync_service, | 23 ThemeModelAssociator(ProfileSyncService* sync_service, |
| (...skipping 16 matching lines...) Expand all Loading... |
| 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 |