#ifndef CHROME_INSTALLER_UTIL_DELETE_REG_KEY_WORK_ITEM_H_
#define CHROME_INSTALLER_UTIL_DELETE_REG_KEY_WORK_ITEM_H_
#include <windows.h>
#include <string>
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "chrome/installer/util/registry_key_backup.h"
#include "chrome/installer/util/work_item.h"
class RegistryKeyBackup;
class DeleteRegKeyWorkItem : public WorkItem {
public:
virtual ~DeleteRegKeyWorkItem();
virtual bool Do() OVERRIDE;
virtual void Rollback() OVERRIDE;
private:
friend class WorkItem;
DeleteRegKeyWorkItem(HKEY predefined_root, const std::wstring& path);
HKEY predefined_root_;
std::wstring path_;
RegistryKeyBackup backup_;
DISALLOW_COPY_AND_ASSIGN(DeleteRegKeyWorkItem);
};
#endif