#include "base/basictypes.h"
#include "base/memory/weak_ptr.h"
#include "chrome/browser/download/download_request_limiter.h"
-#include "chrome/browser/infobars/confirm_infobar_delegate.h"
+#include "components/infobars/core/confirm_infobar_delegate.h"
class InfoBarService;
base::WeakPtr<DownloadRequestLimiter::TabDownloadState> host)>
FakeCreateCallback;
- virtual ~DownloadRequestInfoBarDelegate();
+ ~DownloadRequestInfoBarDelegate() override;
// Creates a download request delegate and adds it to |infobar_service|.
static void Create(
static scoped_ptr<DownloadRequestInfoBarDelegate> Create(
base::WeakPtr<DownloadRequestLimiter::TabDownloadState> host) {
return scoped_ptr<DownloadRequestInfoBarDelegate>(
- new DownloadRequestInfoBarDelegate(NULL, host));
+ new DownloadRequestInfoBarDelegate(host));
}
#endif
private:
static FakeCreateCallback* callback_;
- DownloadRequestInfoBarDelegate(
- InfoBarService* infobar_service,
+ explicit DownloadRequestInfoBarDelegate(
base::WeakPtr<DownloadRequestLimiter::TabDownloadState> host);
// ConfirmInfoBarDelegate:
- virtual int GetIconID() const OVERRIDE;
- virtual string16 GetMessageText() const OVERRIDE;
- virtual string16 GetButtonLabel(InfoBarButton button) const OVERRIDE;
- virtual bool Accept() OVERRIDE;
- virtual bool Cancel() OVERRIDE;
+ int GetIconID() const override;
+ base::string16 GetMessageText() const override;
+ base::string16 GetButtonLabel(InfoBarButton button) const override;
+ bool Accept() override;
+ bool Cancel() override;
bool responded_;
base::WeakPtr<DownloadRequestLimiter::TabDownloadState> host_;