| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_REQUEST_INFOBAR_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_REQUEST_INFOBAR_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_REQUEST_INFOBAR_DELEGATE_H_ | 6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_REQUEST_INFOBAR_DELEGATE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "chrome/browser/download/download_request_limiter.h" | 10 #include "chrome/browser/download/download_request_limiter.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 DownloadRequestLimiter::TabDownloadState* host); | 23 DownloadRequestLimiter::TabDownloadState* host); |
| 24 | 24 |
| 25 void set_host(DownloadRequestLimiter::TabDownloadState* host) { | 25 void set_host(DownloadRequestLimiter::TabDownloadState* host) { |
| 26 host_ = host; | 26 host_ = host; |
| 27 } | 27 } |
| 28 | 28 |
| 29 private: | 29 private: |
| 30 virtual ~DownloadRequestInfoBarDelegate(); | 30 virtual ~DownloadRequestInfoBarDelegate(); |
| 31 | 31 |
| 32 // ConfirmInfoBarDelegate: | 32 // ConfirmInfoBarDelegate: |
| 33 virtual void InfoBarClosed(); | 33 virtual gfx::Image* GetIcon() const OVERRIDE; |
| 34 virtual gfx::Image* GetIcon() const; | 34 virtual string16 GetMessageText() const OVERRIDE; |
| 35 virtual string16 GetMessageText() const; | 35 virtual string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; |
| 36 virtual string16 GetButtonLabel(InfoBarButton button) const; | 36 virtual bool Accept() OVERRIDE; |
| 37 virtual bool Accept(); | |
| 38 | 37 |
| 39 DownloadRequestLimiter::TabDownloadState* host_; | 38 DownloadRequestLimiter::TabDownloadState* host_; |
| 40 | 39 |
| 41 DISALLOW_COPY_AND_ASSIGN(DownloadRequestInfoBarDelegate); | 40 DISALLOW_COPY_AND_ASSIGN(DownloadRequestInfoBarDelegate); |
| 42 }; | 41 }; |
| 43 | 42 |
| 44 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_REQUEST_INFOBAR_DELEGATE_H_ | 43 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_REQUEST_INFOBAR_DELEGATE_H_ |
| OLD | NEW |