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

Side by Side Diff: chrome/browser/sync/glue/extension_setting_data_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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_BROWSER_SYNC_GLUE_EXTENSION_SETTING_DATA_TYPE_CONTROLLER_H__ 5 #ifndef CHROME_BROWSER_SYNC_GLUE_EXTENSION_SETTING_DATA_TYPE_CONTROLLER_H__
6 #define CHROME_BROWSER_SYNC_GLUE_EXTENSION_SETTING_DATA_TYPE_CONTROLLER_H__ 6 #define CHROME_BROWSER_SYNC_GLUE_EXTENSION_SETTING_DATA_TYPE_CONTROLLER_H__
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "components/sync/driver/non_ui_data_type_controller.h" 12 #include "components/sync/driver/non_ui_data_type_controller.h"
13 13
14 class Profile; 14 class Profile;
15 15
16 namespace extensions { 16 namespace extensions {
17 class StorageFrontend; 17 class StorageFrontend;
18 } 18 }
19 19
20 namespace syncer { 20 namespace sync_driver {
21 class SyncClient; 21 class SyncClient;
22 } 22 }
23 23
24 namespace browser_sync { 24 namespace browser_sync {
25 25
26 class ExtensionSettingDataTypeController 26 class ExtensionSettingDataTypeController
27 : public syncer::NonUIDataTypeController { 27 : public sync_driver::NonUIDataTypeController {
28 public: 28 public:
29 // |type| is either EXTENSION_SETTINGS or APP_SETTINGS. 29 // |type| is either EXTENSION_SETTINGS or APP_SETTINGS.
30 // |dump_stack| is called when an unrecoverable error occurs. 30 // |dump_stack| is called when an unrecoverable error occurs.
31 ExtensionSettingDataTypeController(syncer::ModelType type, 31 ExtensionSettingDataTypeController(syncer::ModelType type,
32 const base::Closure& dump_stack, 32 const base::Closure& dump_stack,
33 syncer::SyncClient* sync_client, 33 sync_driver::SyncClient* sync_client,
34 Profile* profile); 34 Profile* profile);
35 ~ExtensionSettingDataTypeController() override; 35 ~ExtensionSettingDataTypeController() override;
36 36
37 // NonFrontendDataTypeController implementation 37 // NonFrontendDataTypeController implementation
38 syncer::ModelSafeGroup model_safe_group() const override; 38 syncer::ModelSafeGroup model_safe_group() const override;
39 39
40 private: 40 private:
41 // NonFrontendDataTypeController implementation. 41 // NonFrontendDataTypeController implementation.
42 bool PostTaskOnBackendThread(const tracked_objects::Location& from_here, 42 bool PostTaskOnBackendThread(const tracked_objects::Location& from_here,
43 const base::Closure& task) override; 43 const base::Closure& task) override;
44 bool StartModels() override; 44 bool StartModels() override;
45 45
46 // Only used on the UI thread. 46 // Only used on the UI thread.
47 Profile* profile_; 47 Profile* profile_;
48 48
49 DISALLOW_COPY_AND_ASSIGN(ExtensionSettingDataTypeController); 49 DISALLOW_COPY_AND_ASSIGN(ExtensionSettingDataTypeController);
50 }; 50 };
51 51
52 } // namespace browser_sync 52 } // namespace browser_sync
53 53
54 #endif // CHROME_BROWSER_SYNC_GLUE_EXTENSION_SETTING_DATA_TYPE_CONTROLLER_H__ 54 #endif // CHROME_BROWSER_SYNC_GLUE_EXTENSION_SETTING_DATA_TYPE_CONTROLLER_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698