| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 COMPONENTS_SYNC_API_SYNCABLE_SERVICE_H_ | 5 #ifndef COMPONENTS_SYNC_MODEL_SYNCABLE_SERVICE_H_ |
| 6 #define COMPONENTS_SYNC_API_SYNCABLE_SERVICE_H_ | 6 #define COMPONENTS_SYNC_MODEL_SYNCABLE_SERVICE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
| 14 #include "components/sync/api/attachments/attachment_store.h" | |
| 15 #include "components/sync/api/sync_change_processor.h" | |
| 16 #include "components/sync/api/sync_data.h" | |
| 17 #include "components/sync/api/sync_error.h" | |
| 18 #include "components/sync/api/sync_merge_result.h" | |
| 19 #include "components/sync/base/model_type.h" | 14 #include "components/sync/base/model_type.h" |
| 15 #include "components/sync/model/attachments/attachment_store.h" |
| 16 #include "components/sync/model/sync_change_processor.h" |
| 17 #include "components/sync/model/sync_data.h" |
| 18 #include "components/sync/model/sync_error.h" |
| 19 #include "components/sync/model/sync_merge_result.h" |
| 20 | 20 |
| 21 namespace syncer { | 21 namespace syncer { |
| 22 | 22 |
| 23 class AttachmentService; | 23 class AttachmentService; |
| 24 class SyncErrorFactory; | 24 class SyncErrorFactory; |
| 25 | 25 |
| 26 // TODO(zea): remove SupportsWeakPtr in favor of having all SyncableService | 26 // TODO(zea): remove SupportsWeakPtr in favor of having all SyncableService |
| 27 // implementers provide a way of getting a weak pointer to themselves. | 27 // implementers provide a way of getting a weak pointer to themselves. |
| 28 // See crbug.com/100114. | 28 // See crbug.com/100114. |
| 29 class SyncableService : public SyncChangeProcessor, | 29 class SyncableService : public SyncChangeProcessor, |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 // AttachmentService instance. | 85 // AttachmentService instance. |
| 86 virtual void SetAttachmentService( | 86 virtual void SetAttachmentService( |
| 87 std::unique_ptr<AttachmentService> attachment_service); | 87 std::unique_ptr<AttachmentService> attachment_service); |
| 88 | 88 |
| 89 protected: | 89 protected: |
| 90 ~SyncableService() override; | 90 ~SyncableService() override; |
| 91 }; | 91 }; |
| 92 | 92 |
| 93 } // namespace syncer | 93 } // namespace syncer |
| 94 | 94 |
| 95 #endif // COMPONENTS_SYNC_API_SYNCABLE_SERVICE_H_ | 95 #endif // COMPONENTS_SYNC_MODEL_SYNCABLE_SERVICE_H_ |
| OLD | NEW |