#ifndef CHROME_BROWSER_SYNC_GLUE_SESSION_DATA_TYPE_CONTROLLER_H_
#define CHROME_BROWSER_SYNC_GLUE_SESSION_DATA_TYPE_CONTROLLER_H_
#include <string>
#include "base/compiler_specific.h"
#include "chrome/browser/sync/glue/frontend_data_type_controller.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
namespace browser_sync {
class SessionModelAssociator;
class SessionDataTypeController : public FrontendDataTypeController,
public content::NotificationObserver {
public:
SessionDataTypeController(
ProfileSyncComponentsFactory* profile_sync_factory,
Profile* profile,
ProfileSyncService* sync_service);
SessionModelAssociator* GetModelAssociator();
virtual syncer::ModelType type() const OVERRIDE;
virtual void Observe(int type,
const content::NotificationSource& source,
const content::NotificationDetails& details) OVERRIDE;
private:
virtual ~SessionDataTypeController();
virtual bool StartModels() OVERRIDE;
virtual void CleanUpState() OVERRIDE;
virtual void CreateSyncComponents() OVERRIDE;
content::NotificationRegistrar notification_registrar_;
DISALLOW_COPY_AND_ASSIGN(SessionDataTypeController);
};
}
#endif