Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / download / download_request_infobar_delegate.h
index 410f91f..9bd1ba3 100644 (file)
@@ -8,7 +8,7 @@
 #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;
 
@@ -23,7 +23,7 @@ class DownloadRequestInfoBarDelegate : public ConfirmInfoBarDelegate {
       base::WeakPtr<DownloadRequestLimiter::TabDownloadState> host)>
     FakeCreateCallback;
 
-  virtual ~DownloadRequestInfoBarDelegate();
+  ~DownloadRequestInfoBarDelegate() override;
 
   // Creates a download request delegate and adds it to |infobar_service|.
   static void Create(
@@ -34,7 +34,7 @@ class DownloadRequestInfoBarDelegate : public ConfirmInfoBarDelegate {
   static scoped_ptr<DownloadRequestInfoBarDelegate> Create(
       base::WeakPtr<DownloadRequestLimiter::TabDownloadState> host) {
     return scoped_ptr<DownloadRequestInfoBarDelegate>(
-        new DownloadRequestInfoBarDelegate(NULL, host));
+        new DownloadRequestInfoBarDelegate(host));
   }
 #endif
 
@@ -43,16 +43,15 @@ class DownloadRequestInfoBarDelegate : public ConfirmInfoBarDelegate {
  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_;