#ifndef CHROME_BROWSER_UI_COCOA_EXTENSIONS_WINDOWED_INSTALL_DIALOG_CONTROLLER_H_
#define CHROME_BROWSER_UI_COCOA_EXTENSIONS_WINDOWED_INSTALL_DIALOG_CONTROLLER_H_
#import <Cocoa/Cocoa.h>
#include "base/gtest_prod_util.h"
#include "base/mac/scoped_nsobject.h"
#include "chrome/browser/extensions/extension_install_prompt.h"
@class ExtensionInstallViewController;
@class WindowedInstallController;
class WindowedInstallDialogController
: public ExtensionInstallPrompt::Delegate {
public:
WindowedInstallDialogController(
const ExtensionInstallPrompt::ShowParams& show_params,
ExtensionInstallPrompt::Delegate* delegate,
const ExtensionInstallPrompt::Prompt& prompt);
virtual ~WindowedInstallDialogController();
void OnWindowClosing();
virtual void InstallUIProceed() OVERRIDE;
virtual void InstallUIAbort(bool user_initiated) OVERRIDE;
private:
FRIEND_TEST_ALL_PREFIXES(WindowedInstallDialogControllerBrowserTest,
ShowInstallDialog);
ExtensionInstallViewController* GetViewController();
ExtensionInstallPrompt::Delegate* delegate_;
base::scoped_nsobject<WindowedInstallController> install_controller_;
DISALLOW_COPY_AND_ASSIGN(WindowedInstallDialogController);
};
#endif