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

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

Issue 2401223002: [Sync] Renaming sync/api* to sync/model*. (Closed)
Patch Set: Missed a comment in a DEPS file, and rebasing. Created 4 years, 2 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 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_DATA_TYPE_CONTROLLER_H__ 5 #ifndef COMPONENTS_SYNC_DRIVER_DATA_TYPE_CONTROLLER_H__
6 #define COMPONENTS_SYNC_DRIVER_DATA_TYPE_CONTROLLER_H__ 6 #define COMPONENTS_SYNC_DRIVER_DATA_TYPE_CONTROLLER_H__
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
11 11
12 #include "base/callback.h" 12 #include "base/callback.h"
13 #include "base/location.h" 13 #include "base/location.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "base/threading/thread_checker.h" 15 #include "base/threading/thread_checker.h"
16 #include "components/sync/api/data_type_error_handler.h"
17 #include "components/sync/base/model_type.h" 16 #include "components/sync/base/model_type.h"
18 #include "components/sync/base/unrecoverable_error_handler.h" 17 #include "components/sync/base/unrecoverable_error_handler.h"
19 #include "components/sync/engine/cycle/status_counters.h" 18 #include "components/sync/engine/cycle/status_counters.h"
19 #include "components/sync/model/data_type_error_handler.h"
20 20
21 namespace syncer { 21 namespace syncer {
22 22
23 class BackendDataTypeConfigurer; 23 class BackendDataTypeConfigurer;
24 class SyncError; 24 class SyncError;
25 class SyncMergeResult; 25 class SyncMergeResult;
26 26
27 // DataTypeControllers are responsible for managing the state of a single data 27 // DataTypeControllers are responsible for managing the state of a single data
28 // type. They are not thread safe and should only be used on the UI thread. 28 // type. They are not thread safe and should only be used on the UI thread.
29 class DataTypeController : public base::SupportsWeakPtr<DataTypeController> { 29 class DataTypeController : public base::SupportsWeakPtr<DataTypeController> {
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 // The type this object is responsible for controlling. 171 // The type this object is responsible for controlling.
172 const ModelType type_; 172 const ModelType type_;
173 173
174 // Used to check that functions are called on the correct thread. 174 // Used to check that functions are called on the correct thread.
175 base::ThreadChecker thread_checker_; 175 base::ThreadChecker thread_checker_;
176 }; 176 };
177 177
178 } // namespace syncer 178 } // namespace syncer
179 179
180 #endif // COMPONENTS_SYNC_DRIVER_DATA_TYPE_CONTROLLER_H__ 180 #endif // COMPONENTS_SYNC_DRIVER_DATA_TYPE_CONTROLLER_H__
OLDNEW
« no previous file with comments | « components/sync/driver/change_processor_mock.h ('k') | components/sync/driver/data_type_controller_mock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698