#ifndef CHROME_BROWSER_UI_VIEWS_EXTERNAL_PROTOCOL_DIALOG_H_
#define CHROME_BROWSER_UI_VIEWS_EXTERNAL_PROTOCOL_DIALOG_H_
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "base/time/time.h"
#include "ui/views/window/dialog_delegate.h"
#include "url/gurl.h"
class ProtocolDialogDelegate;
namespace views {
class MessageBoxView;
}
class ExternalProtocolDialog : public views::DialogDelegate {
public:
ExternalProtocolDialog(scoped_ptr<const ProtocolDialogDelegate> delegate,
int render_process_host_id,
int routing_id);
virtual ~ExternalProtocolDialog();
virtual int GetDefaultDialogButton() const OVERRIDE;
virtual base::string16 GetDialogButtonLabel(
ui::DialogButton button) const OVERRIDE;
virtual base::string16 GetWindowTitle() const OVERRIDE;
virtual void DeleteDelegate() OVERRIDE;
virtual bool Cancel() OVERRIDE;
virtual bool Accept() OVERRIDE;
virtual views::View* GetContentsView() OVERRIDE;
virtual views::Widget* GetWidget() OVERRIDE;
virtual const views::Widget* GetWidget() const OVERRIDE;
private:
const scoped_ptr<const ProtocolDialogDelegate> delegate_;
views::MessageBoxView* message_box_view_;
int render_process_host_id_;
int routing_id_;
base::TimeTicks creation_time_;
DISALLOW_COPY_AND_ASSIGN(ExternalProtocolDialog);
};
#endif