Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Side by Side Diff: components/sync/driver/directory_data_type_controller.h

Issue 2769113002: [Sync] Stop accessing BrowserContextKeyedServiceFactory on non-UI thread. (Closed)
Patch Set: Rebase and removing dependent patch set. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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.
76 SyncClient* const sync_client_; 77 SyncClient* const sync_client_;
77 78
78 private: 79 private:
79 // The model safe group of this data type. This should reflect the 80 // The model safe group of this data type. This should reflect the
80 // thread that should be used to modify the data type's native 81 // thread that should be used to modify the data type's native
81 // model. 82 // model.
82 ModelSafeGroup model_safe_group_; 83 ModelSafeGroup model_safe_group_;
83 }; 84 };
84 85
85 } // namespace syncer 86 } // namespace syncer
86 87
87 #endif // COMPONENTS_SYNC_DRIVER_DIRECTORY_DATA_TYPE_CONTROLLER_H__ 88 #endif // COMPONENTS_SYNC_DRIVER_DIRECTORY_DATA_TYPE_CONTROLLER_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698