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

Side by Side Diff: chrome/browser/sync/glue/extension_data_type_controller.h

Issue 2376123003: [Sync] Move //components/sync to the syncer namespace. (Closed)
Patch Set: Rebase. 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_DATA_TYPE_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_SYNC_GLUE_EXTENSION_DATA_TYPE_CONTROLLER_H_
6 #define CHROME_BROWSER_SYNC_GLUE_EXTENSION_DATA_TYPE_CONTROLLER_H_ 6 #define CHROME_BROWSER_SYNC_GLUE_EXTENSION_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/generic_change_processor.h" 12 #include "components/sync/driver/generic_change_processor.h"
13 #include "components/sync/driver/ui_data_type_controller.h" 13 #include "components/sync/driver/ui_data_type_controller.h"
14 14
15 class Profile; 15 class Profile;
16 16
17 namespace browser_sync { 17 namespace browser_sync {
18 18
19 // TODO(zea): Rename this and ExtensionSettingsDTC to ExtensionOrApp*, since 19 // TODO(zea): Rename this and ExtensionSettingsDTC to ExtensionOrApp*, since
20 // both actually handle the APP datatypes as well. 20 // both actually handle the APP datatypes as well.
21 class ExtensionDataTypeController : public sync_driver::UIDataTypeController { 21 class ExtensionDataTypeController : public syncer::UIDataTypeController {
22 public: 22 public:
23 // |dump_stack| is called when an unrecoverable error occurs. 23 // |dump_stack| is called when an unrecoverable error occurs.
24 ExtensionDataTypeController( 24 ExtensionDataTypeController(
25 syncer::ModelType type, // Either EXTENSIONS or APPS. 25 syncer::ModelType type, // Either EXTENSIONS or APPS.
26 const base::Closure& dump_stack, 26 const base::Closure& dump_stack,
27 sync_driver::SyncClient* sync_client, 27 syncer::SyncClient* sync_client,
28 Profile* profile); 28 Profile* profile);
29 ~ExtensionDataTypeController() override; 29 ~ExtensionDataTypeController() override;
30 30
31 private: 31 private:
32 // DataTypeController implementations. 32 // DataTypeController implementations.
33 bool StartModels() override; 33 bool StartModels() override;
34 34
35 Profile* const profile_; 35 Profile* const profile_;
36 36
37 DISALLOW_COPY_AND_ASSIGN(ExtensionDataTypeController); 37 DISALLOW_COPY_AND_ASSIGN(ExtensionDataTypeController);
38 }; 38 };
39 39
40 } // namespace browser_sync 40 } // namespace browser_sync
41 41
42 #endif // CHROME_BROWSER_SYNC_GLUE_EXTENSION_DATA_TYPE_CONTROLLER_H_ 42 #endif // CHROME_BROWSER_SYNC_GLUE_EXTENSION_DATA_TYPE_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/chrome_sync_client.cc ('k') | chrome/browser/sync/glue/extension_data_type_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698