| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_NON_UI_MODEL_TYPE_CONTROLLER_H_ | 5 #ifndef COMPONENTS_SYNC_DRIVER_NON_UI_MODEL_TYPE_CONTROLLER_H_ |
| 6 #define COMPONENTS_SYNC_DRIVER_NON_UI_MODEL_TYPE_CONTROLLER_H_ | 6 #define COMPONENTS_SYNC_DRIVER_NON_UI_MODEL_TYPE_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include "components/sync/driver/non_blocking_data_type_controller.h" | 8 #include "components/sync/driver/non_blocking_data_type_controller.h" |
| 9 | 9 |
| 10 namespace sync_driver { | 10 namespace syncer { |
| 11 |
| 11 class SyncClient; | 12 class SyncClient; |
| 12 } | |
| 13 | |
| 14 namespace sync_driver_v2 { | |
| 15 | 13 |
| 16 // Implementation for Unified Sync and Storage datatypes whose model thread is | 14 // Implementation for Unified Sync and Storage datatypes whose model thread is |
| 17 // not the UI thread. | 15 // not the UI thread. |
| 18 // Derived types must implement the following methods: | 16 // Derived types must implement the following methods: |
| 19 // - RunOnModelThread | 17 // - RunOnModelThread |
| 20 class NonUIModelTypeController : public NonBlockingDataTypeController { | 18 class NonUIModelTypeController : public NonBlockingDataTypeController { |
| 21 public: | 19 public: |
| 22 // |dump_stack| is called when an unrecoverable error occurs. | 20 // |dump_stack| is called when an unrecoverable error occurs. |
| 23 NonUIModelTypeController(syncer::ModelType type, | 21 NonUIModelTypeController(ModelType type, |
| 24 const base::Closure& dump_stack, | 22 const base::Closure& dump_stack, |
| 25 sync_driver::SyncClient* sync_client); | 23 SyncClient* sync_client); |
| 26 ~NonUIModelTypeController() override; | 24 ~NonUIModelTypeController() override; |
| 27 | 25 |
| 28 private: | 26 private: |
| 29 DISALLOW_COPY_AND_ASSIGN(NonUIModelTypeController); | 27 DISALLOW_COPY_AND_ASSIGN(NonUIModelTypeController); |
| 30 }; | 28 }; |
| 31 | 29 |
| 32 } // namespace sync_driver_v2 | 30 } // namespace syncer |
| 33 | 31 |
| 34 #endif // COMPONENTS_SYNC_DRIVER_NON_UI_MODEL_TYPE_CONTROLLER_H_ | 32 #endif // COMPONENTS_SYNC_DRIVER_NON_UI_MODEL_TYPE_CONTROLLER_H_ |
| OLD | NEW |