Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_SYNC_GLUE_EXTENSION_SETTING_DATA_TYPE_CONTROLLER_H__ | |
| 6 #define CHROME_BROWSER_SYNC_GLUE_EXTENSION_SETTING_DATA_TYPE_CONTROLLER_H__ | |
| 7 #pragma once | |
| 8 | |
| 9 #include <string> | |
| 10 | |
| 11 #include "base/compiler_specific.h" | |
| 12 #include "chrome/browser/sync/glue/non_frontend_data_type_controller.h" | |
| 13 #include "chrome/browser/sync/profile_sync_factory.h" | |
|
akalin
2011/09/21 05:41:53
forward-declare instead
not at google - send to devlin
2011/09/21 06:22:41
Done.
| |
| 14 | |
| 15 class ExtensionSettings; | |
| 16 class ExtensionSettingsUIWrapper; | |
| 17 | |
| 18 namespace browser_sync { | |
| 19 | |
| 20 class ExtensionSettingDataTypeController | |
| 21 : public NonFrontendDataTypeController { | |
| 22 public: | |
| 23 ExtensionSettingDataTypeController( | |
| 24 ProfileSyncFactory* profile_sync_factory, | |
| 25 Profile* profile, | |
| 26 ProfileSyncService* profile_sync_service); | |
| 27 virtual ~ExtensionSettingDataTypeController(); | |
| 28 | |
| 29 // NonFrontendDataTypeController implementation | |
| 30 virtual syncable::ModelType type() const OVERRIDE; | |
| 31 virtual browser_sync::ModelSafeGroup model_safe_group() const OVERRIDE; | |
| 32 | |
| 33 private: | |
| 34 // NonFrontendDataTypeController implementation. | |
| 35 virtual bool StartModels() OVERRIDE; | |
| 36 virtual bool StartAssociationAsync() OVERRIDE; | |
| 37 virtual void CreateSyncComponents() OVERRIDE; | |
| 38 virtual bool StopAssociationAsync() OVERRIDE; | |
| 39 virtual void RecordUnrecoverableError( | |
| 40 const tracked_objects::Location& from_here, | |
| 41 const std::string& message) OVERRIDE; | |
| 42 virtual void RecordAssociationTime(base::TimeDelta time) OVERRIDE; | |
| 43 virtual void RecordStartFailure(StartResult result) OVERRIDE; | |
| 44 | |
| 45 // Starts sync association with |extension_settings|. Callback from | |
| 46 // RunWithSettings of |extension_settings_ui_wrapper_| on FILE thread. | |
| 47 void StartAssociationWithExtensionSettings( | |
| 48 ExtensionSettings* extension_settings); | |
| 49 | |
| 50 ExtensionSettingsUIWrapper* extension_settings_ui_wrapper_; | |
| 51 ExtensionSettings* extension_settings_; | |
|
akalin
2011/09/21 05:41:53
add a comment that extension_settings_ is used onl
not at google - send to devlin
2011/09/21 06:22:41
Done.
| |
| 52 | |
| 53 ProfileSyncService* profile_sync_service_; | |
| 54 | |
| 55 DISALLOW_COPY_AND_ASSIGN(ExtensionSettingDataTypeController); | |
| 56 }; | |
| 57 | |
| 58 } // namespace browser_sync | |
| 59 | |
| 60 #endif // CHROME_BROWSER_SYNC_GLUE_EXTENSION_SETTING_DATA_TYPE_CONTROLLER_H__ | |
| OLD | NEW |