#ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_PERMISSION_REQUEST_H_
#define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_PERMISSION_REQUEST_H_
#include "base/basictypes.h"
#include "base/memory/weak_ptr.h"
#include "chrome/browser/download/download_request_limiter.h"
#include "chrome/browser/ui/website_settings/permission_bubble_request.h"
class DownloadPermissionRequest : public PermissionBubbleRequest {
public:
explicit DownloadPermissionRequest(
base::WeakPtr<DownloadRequestLimiter::TabDownloadState> host);
virtual ~DownloadPermissionRequest();
virtual int GetIconID() const OVERRIDE;
virtual base::string16 GetMessageText() const OVERRIDE;
virtual base::string16 GetMessageTextFragment() const OVERRIDE;
virtual bool HasUserGesture() const OVERRIDE;
virtual GURL GetRequestingHostname() const OVERRIDE;
virtual void PermissionGranted() OVERRIDE;
virtual void PermissionDenied() OVERRIDE;
virtual void Cancelled() OVERRIDE;
virtual void RequestFinished() OVERRIDE;
private:
base::WeakPtr<DownloadRequestLimiter::TabDownloadState> host_;
DISALLOW_COPY_AND_ASSIGN(DownloadPermissionRequest);
};
#endif