| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_DRIVER_DIRECTORY_DATA_TYPE_CONTROLLER_H__ | 5 #ifndef COMPONENTS_SYNC_DRIVER_DIRECTORY_DATA_TYPE_CONTROLLER_H__ |
| 6 #define COMPONENTS_SYNC_DRIVER_DIRECTORY_DATA_TYPE_CONTROLLER_H__ | 6 #define COMPONENTS_SYNC_DRIVER_DIRECTORY_DATA_TYPE_CONTROLLER_H__ |
| 7 | 7 |
| 8 #include <memory> |
| 9 |
| 8 #include "components/sync/driver/data_type_controller.h" | 10 #include "components/sync/driver/data_type_controller.h" |
| 9 | |
| 10 #include "components/sync/driver/sync_client.h" | 11 #include "components/sync/driver/sync_client.h" |
| 11 #include "components/sync/engine/model_safe_worker.h" | 12 #include "components/sync/engine/model_safe_worker.h" |
| 12 #include "components/sync/syncable/directory.h" | 13 #include "components/sync/syncable/directory.h" |
| 13 | 14 |
| 14 namespace syncer { | 15 namespace syncer { |
| 15 | 16 |
| 16 class ChangeProcessor; | 17 class ChangeProcessor; |
| 17 | 18 |
| 18 // Base class for Directory based Data type controllers. | 19 // Base class for Directory based Data type controllers. |
| 19 class DirectoryDataTypeController : public DataTypeController { | 20 class DirectoryDataTypeController : public DataTypeController { |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 // Access to the ChangeProcessor for the type being controlled by |this|. | 64 // Access to the ChangeProcessor for the type being controlled by |this|. |
| 64 // Returns NULL if the ChangeProcessor isn't created or connected. | 65 // Returns NULL if the ChangeProcessor isn't created or connected. |
| 65 virtual ChangeProcessor* GetChangeProcessor() const = 0; | 66 virtual ChangeProcessor* GetChangeProcessor() const = 0; |
| 66 | 67 |
| 67 SyncClient* const sync_client_; | 68 SyncClient* const sync_client_; |
| 68 }; | 69 }; |
| 69 | 70 |
| 70 } // namespace syncer | 71 } // namespace syncer |
| 71 | 72 |
| 72 #endif // COMPONENTS_SYNC_DRIVER_DIRECTORY_DATA_TYPE_CONTROLLER_H__ | 73 #endif // COMPONENTS_SYNC_DRIVER_DIRECTORY_DATA_TYPE_CONTROLLER_H__ |
| OLD | NEW |