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