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

Unified Diff: chrome/browser/ui/omnibox/alternate_nav_infobar_delegate.h

Issue 190063006: Infobar Componentization Proof of Concept (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: minor fixes Created 6 years, 9 months 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/ui/omnibox/alternate_nav_infobar_delegate.h
diff --git a/chrome/browser/ui/omnibox/alternate_nav_infobar_delegate.h b/chrome/browser/ui/omnibox/alternate_nav_infobar_delegate.h
index e27b864404d0c9bc44cae5dafb687e0b86477911..789868f394cedea7c6a17dfd7f4d0789d087041b 100644
--- a/chrome/browser/ui/omnibox/alternate_nav_infobar_delegate.h
+++ b/chrome/browser/ui/omnibox/alternate_nav_infobar_delegate.h
@@ -9,6 +9,10 @@
#include "chrome/browser/autocomplete/autocomplete_match.h"
#include "chrome/browser/infobars/infobar_delegate.h"
+namespace content {
+class WebContents;
+}
+
class AlternateNavInfoBarDelegate : public InfoBarDelegate {
public:
virtual ~AlternateNavInfoBarDelegate();
@@ -26,6 +30,7 @@ class AlternateNavInfoBarDelegate : public InfoBarDelegate {
private:
AlternateNavInfoBarDelegate(Profile* profile,
+ content::WebContents* web_contents,
const base::string16& text,
const AutocompleteMatch& match,
const GURL& search_url);
@@ -37,8 +42,10 @@ class AlternateNavInfoBarDelegate : public InfoBarDelegate {
// InfoBarDelegate:
virtual int GetIconID() const OVERRIDE;
virtual Type GetInfoBarType() const OVERRIDE;
+ virtual void CleanUp() OVERRIDE;
Profile* profile_;
+ content::WebContents* web_contents_;
const base::string16 text_;
const AutocompleteMatch match_;
const GURL search_url_;

Powered by Google App Engine
This is Rietveld 408576698