Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1680)

Unified Diff: chrome/browser/infobars/confirm_infobar_delegate.h

Issue 22694006: Infobar system refactor. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/infobars/confirm_infobar_delegate.h
===================================================================
--- chrome/browser/infobars/confirm_infobar_delegate.h (revision 238220)
+++ chrome/browser/infobars/confirm_infobar_delegate.h (working copy)
@@ -5,11 +5,12 @@
#ifndef CHROME_BROWSER_INFOBARS_CONFIRM_INFOBAR_DELEGATE_H_
#define CHROME_BROWSER_INFOBARS_CONFIRM_INFOBAR_DELEGATE_H_
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
+#include "base/memory/scoped_ptr.h"
#include "base/strings/string16.h"
#include "chrome/browser/infobars/infobar_delegate.h"
+class InfoBar;
+
// An interface derived from InfoBarDelegate implemented by objects wishing to
// control a ConfirmInfoBar.
class ConfirmInfoBarDelegate : public InfoBarDelegate {
@@ -60,14 +61,17 @@
virtual bool LinkClicked(WindowOpenDisposition disposition);
protected:
- explicit ConfirmInfoBarDelegate(InfoBarService* infobar_service);
+ ConfirmInfoBarDelegate();
+ // Returns a confirm infobar that owns |delegate|.
+ static scoped_ptr<InfoBar> CreateInfoBar(
+ scoped_ptr<ConfirmInfoBarDelegate> delegate);
+
virtual bool ShouldExpireInternal(
const content::LoadCommittedDetails& details) const OVERRIDE;
private:
// InfoBarDelegate:
- virtual InfoBar* CreateInfoBar(InfoBarService* owner) OVERRIDE;
virtual bool EqualsDelegate(InfoBarDelegate* delegate) const OVERRIDE;
virtual ConfirmInfoBarDelegate* AsConfirmInfoBarDelegate() OVERRIDE;
« no previous file with comments | « chrome/browser/google/google_url_tracker_unittest.cc ('k') | chrome/browser/infobars/confirm_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698