| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_DATA_TYPE_CONTROLLER_H_ | 5 #ifndef COMPONENTS_SYNC_DRIVER_NON_UI_DATA_TYPE_CONTROLLER_H_ |
| 6 #define COMPONENTS_SYNC_DRIVER_NON_UI_DATA_TYPE_CONTROLLER_H_ | 6 #define COMPONENTS_SYNC_DRIVER_NON_UI_DATA_TYPE_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
| 14 #include "components/sync/driver/directory_data_type_controller.h" | 14 #include "components/sync/driver/directory_data_type_controller.h" |
| 15 #include "components/sync/driver/shared_change_processor.h" | 15 #include "components/sync/driver/shared_change_processor.h" |
| 16 | 16 |
| 17 namespace syncer { | 17 namespace syncer { |
| 18 | 18 |
| 19 class SyncClient; | 19 class SyncClient; |
| 20 class SyncableService; | |
| 21 struct UserShare; | 20 struct UserShare; |
| 22 | 21 |
| 23 class NonUIDataTypeController : public DirectoryDataTypeController { | 22 class NonUIDataTypeController : public DirectoryDataTypeController { |
| 24 public: | 23 public: |
| 25 // |dump_stack| is called when an unrecoverable error occurs. | 24 // |dump_stack| is called when an unrecoverable error occurs. |
| 26 NonUIDataTypeController(ModelType type, | 25 NonUIDataTypeController(ModelType type, |
| 27 const base::Closure& dump_stack, | 26 const base::Closure& dump_stack, |
| 28 SyncClient* sync_client); | 27 SyncClient* sync_client); |
| 29 ~NonUIDataTypeController() override; | 28 ~NonUIDataTypeController() override; |
| 30 | 29 |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 // released on the UI thread in Stop()/StartDoneImpl(), but the | 125 // released on the UI thread in Stop()/StartDoneImpl(), but the |
| 127 // backend thread may still have references to it (which is okay, | 126 // backend thread may still have references to it (which is okay, |
| 128 // since we call Disconnect() before releasing the UI thread | 127 // since we call Disconnect() before releasing the UI thread |
| 129 // reference). | 128 // reference). |
| 130 scoped_refptr<SharedChangeProcessor> shared_change_processor_; | 129 scoped_refptr<SharedChangeProcessor> shared_change_processor_; |
| 131 }; | 130 }; |
| 132 | 131 |
| 133 } // namespace syncer | 132 } // namespace syncer |
| 134 | 133 |
| 135 #endif // COMPONENTS_SYNC_DRIVER_NON_UI_DATA_TYPE_CONTROLLER_H_ | 134 #endif // COMPONENTS_SYNC_DRIVER_NON_UI_DATA_TYPE_CONTROLLER_H_ |
| OLD | NEW |