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> | 8 #include <memory> |
9 | 9 |
10 #include "components/sync/driver/data_type_controller.h" | 10 #include "components/sync/driver/data_type_controller.h" |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 // Create an error handler that reports back to this controller. | 66 // Create an error handler that reports back to this controller. |
67 virtual std::unique_ptr<DataTypeErrorHandler> CreateErrorHandler() = 0; | 67 virtual std::unique_ptr<DataTypeErrorHandler> CreateErrorHandler() = 0; |
68 | 68 |
69 // Access to the ChangeProcessor for the type being controlled by |this|. | 69 // Access to the ChangeProcessor for the type being controlled by |this|. |
70 // Returns null if the ChangeProcessor isn't created or connected. | 70 // Returns null if the ChangeProcessor isn't created or connected. |
71 virtual ChangeProcessor* GetChangeProcessor() const = 0; | 71 virtual ChangeProcessor* GetChangeProcessor() const = 0; |
72 | 72 |
73 // Function to capture and upload a stack trace when an error occurs. | 73 // Function to capture and upload a stack trace when an error occurs. |
74 base::Closure dump_stack_; | 74 base::Closure dump_stack_; |
75 | 75 |
76 // Non-owning pointer, should only be accessed on the UI thread. | |
77 SyncClient* const sync_client_; | 76 SyncClient* const sync_client_; |
78 | 77 |
79 private: | 78 private: |
80 // The model safe group of this data type. This should reflect the | 79 // The model safe group of this data type. This should reflect the |
81 // thread that should be used to modify the data type's native | 80 // thread that should be used to modify the data type's native |
82 // model. | 81 // model. |
83 ModelSafeGroup model_safe_group_; | 82 ModelSafeGroup model_safe_group_; |
84 }; | 83 }; |
85 | 84 |
86 } // namespace syncer | 85 } // namespace syncer |
87 | 86 |
88 #endif // COMPONENTS_SYNC_DRIVER_DIRECTORY_DATA_TYPE_CONTROLLER_H__ | 87 #endif // COMPONENTS_SYNC_DRIVER_DIRECTORY_DATA_TYPE_CONTROLLER_H__ |
OLD | NEW |