| OLD | NEW |
| 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" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 class ExtensionSettingDataTypeController | 26 class ExtensionSettingDataTypeController |
| 27 : public sync_driver::NonUIDataTypeController { | 27 : public sync_driver::NonUIDataTypeController { |
| 28 public: | 28 public: |
| 29 ExtensionSettingDataTypeController( | 29 ExtensionSettingDataTypeController( |
| 30 // Either EXTENSION_SETTINGS or APP_SETTINGS. | 30 // Either EXTENSION_SETTINGS or APP_SETTINGS. |
| 31 syncer::ModelType type, | 31 syncer::ModelType type, |
| 32 ProfileSyncComponentsFactory* profile_sync_factory, | 32 ProfileSyncComponentsFactory* profile_sync_factory, |
| 33 Profile* profile); | 33 Profile* profile); |
| 34 | 34 |
| 35 // NonFrontendDataTypeController implementation | 35 // NonFrontendDataTypeController implementation |
| 36 virtual syncer::ModelType type() const OVERRIDE; | 36 virtual syncer::ModelType type() const override; |
| 37 virtual syncer::ModelSafeGroup model_safe_group() const OVERRIDE; | 37 virtual syncer::ModelSafeGroup model_safe_group() const override; |
| 38 | 38 |
| 39 private: | 39 private: |
| 40 virtual ~ExtensionSettingDataTypeController(); | 40 virtual ~ExtensionSettingDataTypeController(); |
| 41 | 41 |
| 42 // NonFrontendDataTypeController implementation. | 42 // NonFrontendDataTypeController implementation. |
| 43 virtual bool PostTaskOnBackendThread( | 43 virtual bool PostTaskOnBackendThread( |
| 44 const tracked_objects::Location& from_here, | 44 const tracked_objects::Location& from_here, |
| 45 const base::Closure& task) OVERRIDE; | 45 const base::Closure& task) override; |
| 46 virtual bool StartModels() OVERRIDE; | 46 virtual bool StartModels() override; |
| 47 | 47 |
| 48 // Either EXTENSION_SETTINGS or APP_SETTINGS. | 48 // Either EXTENSION_SETTINGS or APP_SETTINGS. |
| 49 syncer::ModelType type_; | 49 syncer::ModelType type_; |
| 50 | 50 |
| 51 // Only used on the UI thread. | 51 // Only used on the UI thread. |
| 52 Profile* profile_; | 52 Profile* profile_; |
| 53 | 53 |
| 54 DISALLOW_COPY_AND_ASSIGN(ExtensionSettingDataTypeController); | 54 DISALLOW_COPY_AND_ASSIGN(ExtensionSettingDataTypeController); |
| 55 }; | 55 }; |
| 56 | 56 |
| 57 } // namespace browser_sync | 57 } // namespace browser_sync |
| 58 | 58 |
| 59 #endif // CHROME_BROWSER_SYNC_GLUE_EXTENSION_SETTING_DATA_TYPE_CONTROLLER_H__ | 59 #endif // CHROME_BROWSER_SYNC_GLUE_EXTENSION_SETTING_DATA_TYPE_CONTROLLER_H__ |
| OLD | NEW |