X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fchrome%2Fbrowser%2Fsync%2Fglue%2Ffrontend_data_type_controller.h;h=dcc24c2a6df60078c22e17b761bdc0cce16ce03f;hb=4a1a0bdd01eef90b0826a0e761d3379d3715c10f;hp=f71b76e559055830bfe2cf4bd0d64ef30a207a28;hpb=b1be5ca53587d23e7aeb77b26861fdc0a181ffd8;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/chrome/browser/sync/glue/frontend_data_type_controller.h b/src/chrome/browser/sync/glue/frontend_data_type_controller.h index f71b76e..dcc24c2 100644 --- a/src/chrome/browser/sync/glue/frontend_data_type_controller.h +++ b/src/chrome/browser/sync/glue/frontend_data_type_controller.h @@ -25,10 +25,12 @@ namespace syncer { class SyncError; } -namespace browser_sync { - +namespace sync_driver { class AssociatorInterface; class ChangeProcessor; +} + +namespace browser_sync { // Implementation for datatypes that reside on the frontend thread // (UI thread). This is the same thread we perform initialization on, so we @@ -40,7 +42,7 @@ class ChangeProcessor; // NOTE: This class is deprecated! New sync datatypes should be using the // syncer::SyncableService API and the UIDataTypeController instead. // TODO(zea): Delete this once all types are on the new API. -class FrontendDataTypeController : public DataTypeController { +class FrontendDataTypeController : public sync_driver::DataTypeController { public: FrontendDataTypeController( scoped_refptr ui_thread, @@ -60,9 +62,8 @@ class FrontendDataTypeController : public DataTypeController { virtual State state() const OVERRIDE; // DataTypeErrorHandler interface. - virtual void OnSingleDatatypeUnrecoverableError( - const tracked_objects::Location& from_here, - const std::string& message) OVERRIDE; + virtual void OnSingleDataTypeUnrecoverableError( + const syncer::SyncError& error) OVERRIDE; protected: friend class FrontendDataTypeControllerMock; @@ -91,19 +92,20 @@ class FrontendDataTypeController : public DataTypeController { // Helper method for cleaning up state and running the start callback. virtual void StartDone( - StartResult start_result, + ConfigureResult start_result, const syncer::SyncMergeResult& local_merge_result, const syncer::SyncMergeResult& syncer_merge_result); // Record association time. virtual void RecordAssociationTime(base::TimeDelta time); // Record causes of start failure. - virtual void RecordStartFailure(StartResult result); + virtual void RecordStartFailure(ConfigureResult result); - virtual AssociatorInterface* model_associator() const; - virtual void set_model_associator(AssociatorInterface* associator); - virtual ChangeProcessor* GetChangeProcessor() const OVERRIDE; - virtual void set_change_processor(ChangeProcessor* processor); + virtual sync_driver::AssociatorInterface* model_associator() const; + virtual void set_model_associator( + sync_driver::AssociatorInterface* associator); + virtual sync_driver::ChangeProcessor* GetChangeProcessor() const OVERRIDE; + virtual void set_change_processor(sync_driver::ChangeProcessor* processor); // Handles the reporting of unrecoverable error. It records stuff in // UMA and reports to breakpad. @@ -123,8 +125,8 @@ class FrontendDataTypeController : public DataTypeController { // TODO(sync): transition all datatypes to SyncableService and deprecate // AssociatorInterface. - scoped_ptr model_associator_; - scoped_ptr change_processor_; + scoped_ptr model_associator_; + scoped_ptr change_processor_; private: // Build sync components and associate models.