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

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

Issue 2388673002: Revert of [Sync] Move //components/sync to the syncer namespace. (patchset #5 id:40001 of https://co (Closed)
Patch Set: 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 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_
OLDNEW
« no previous file with comments | « components/sync/driver/non_ui_data_type_controller_unittest.cc ('k') | components/sync/driver/non_ui_model_type_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698