summaryrefslogtreecommitdiffstats
path: root/chrome/browser/api/infobars/simple_alert_infobar_delegate.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/api/infobars/simple_alert_infobar_delegate.h')
-rw-r--r--chrome/browser/api/infobars/simple_alert_infobar_delegate.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/chrome/browser/api/infobars/simple_alert_infobar_delegate.h b/chrome/browser/api/infobars/simple_alert_infobar_delegate.h
index 6928ac8..ed5b656 100644
--- a/chrome/browser/api/infobars/simple_alert_infobar_delegate.h
+++ b/chrome/browser/api/infobars/simple_alert_infobar_delegate.h
@@ -12,12 +12,17 @@
class SimpleAlertInfoBarDelegate : public ConfirmInfoBarDelegate {
public:
+ // Creates a simple alert delegate and adds it to |infobar_service|.
+ static void Create(InfoBarService* infobar_service,
+ gfx::Image* icon, // May be NULL.
+ const string16& message,
+ bool auto_expire);
+
+ private:
SimpleAlertInfoBarDelegate(InfoBarService* infobar_service,
- gfx::Image* icon, // May be NULL.
+ gfx::Image* icon,
const string16& message,
bool auto_expire);
-
- private:
virtual ~SimpleAlertInfoBarDelegate();
// ConfirmInfoBarDelegate: