| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "chrome/browser/sync/glue/generic_change_processor.h" |
| 11 #include "chrome/browser/sync/glue/frontend_data_type_controller.h" | 12 #include "chrome/browser/sync/glue/frontend_data_type_controller.h" |
| 12 | 13 |
| 13 namespace browser_sync { | 14 namespace browser_sync { |
| 14 | 15 |
| 15 class ExtensionDataTypeController : public FrontendDataTypeController { | 16 class ExtensionDataTypeController : public FrontendDataTypeController { |
| 16 public: | 17 public: |
| 17 ExtensionDataTypeController( | 18 ExtensionDataTypeController( |
| 18 ProfileSyncFactory* profile_sync_factory, | 19 ProfileSyncFactory* profile_sync_factory, |
| 19 Profile* profile, | 20 Profile* profile, |
| 20 ProfileSyncService* sync_service); | 21 ProfileSyncService* sync_service); |
| 21 virtual ~ExtensionDataTypeController(); | 22 virtual ~ExtensionDataTypeController(); |
| 22 | 23 |
| 23 // DataTypeController implementation. | 24 // DataTypeController implementation. |
| 24 virtual syncable::ModelType type() const; | 25 virtual syncable::ModelType type() const; |
| 25 | 26 |
| 27 protected: |
| 28 virtual GenericChangeProcessor* change_processor() const OVERRIDE; |
| 29 |
| 26 private: | 30 private: |
| 27 // DataTypeController implementations. | 31 // DataTypeController implementations. |
| 28 virtual bool StartModels(); | 32 virtual bool StartModels(); |
| 29 virtual void CreateSyncComponents(); | 33 virtual void CreateSyncComponents(); |
| 30 virtual void RecordUnrecoverableError( | 34 virtual void RecordUnrecoverableError( |
| 31 const tracked_objects::Location& from_here, | 35 const tracked_objects::Location& from_here, |
| 32 const std::string& message); | 36 const std::string& message); |
| 33 virtual void RecordAssociationTime(base::TimeDelta time); | 37 virtual void RecordAssociationTime(base::TimeDelta time); |
| 34 virtual void RecordStartFailure(StartResult result); | 38 virtual void RecordStartFailure(StartResult result); |
| 35 | 39 |
| 40 scoped_ptr<GenericChangeProcessor> change_processor_; |
| 41 |
| 36 DISALLOW_COPY_AND_ASSIGN(ExtensionDataTypeController); | 42 DISALLOW_COPY_AND_ASSIGN(ExtensionDataTypeController); |
| 37 }; | 43 }; |
| 38 | 44 |
| 39 } // namespace browser_sync | 45 } // namespace browser_sync |
| 40 | 46 |
| 41 #endif // CHROME_BROWSER_SYNC_GLUE_EXTENSION_DATA_TYPE_CONTROLLER_H_ | 47 #endif // CHROME_BROWSER_SYNC_GLUE_EXTENSION_DATA_TYPE_CONTROLLER_H_ |
| OLD | NEW |