| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_UI_OMNIBOX_ALTERNATE_NAV_INFOBAR_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_UI_OMNIBOX_ALTERNATE_NAV_INFOBAR_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_UI_OMNIBOX_ALTERNATE_NAV_INFOBAR_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_OMNIBOX_ALTERNATE_NAV_INFOBAR_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "chrome/browser/autocomplete/autocomplete_match.h" | 9 #include "chrome/browser/autocomplete/autocomplete_match.h" |
| 10 #include "chrome/browser/infobars/infobar_delegate.h" | 10 #include "chrome/browser/infobars/infobar_delegate.h" |
| 11 | 11 |
| 12 namespace content { |
| 13 class WebContents; |
| 14 } |
| 15 |
| 12 class AlternateNavInfoBarDelegate : public InfoBarDelegate { | 16 class AlternateNavInfoBarDelegate : public InfoBarDelegate { |
| 13 public: | 17 public: |
| 14 virtual ~AlternateNavInfoBarDelegate(); | 18 virtual ~AlternateNavInfoBarDelegate(); |
| 15 | 19 |
| 16 // Creates an alternate nav infobar and delegate and adds the infobar to the | 20 // Creates an alternate nav infobar and delegate and adds the infobar to the |
| 17 // infobar service for |web_contents|. | 21 // infobar service for |web_contents|. |
| 18 static void Create(content::WebContents* web_contents, | 22 static void Create(content::WebContents* web_contents, |
| 19 const base::string16& text, | 23 const base::string16& text, |
| 20 const AutocompleteMatch& match, | 24 const AutocompleteMatch& match, |
| 21 const GURL& search_url); | 25 const GURL& search_url); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 40 | 44 |
| 41 Profile* profile_; | 45 Profile* profile_; |
| 42 const base::string16 text_; | 46 const base::string16 text_; |
| 43 const AutocompleteMatch match_; | 47 const AutocompleteMatch match_; |
| 44 const GURL search_url_; | 48 const GURL search_url_; |
| 45 | 49 |
| 46 DISALLOW_COPY_AND_ASSIGN(AlternateNavInfoBarDelegate); | 50 DISALLOW_COPY_AND_ASSIGN(AlternateNavInfoBarDelegate); |
| 47 }; | 51 }; |
| 48 | 52 |
| 49 #endif // CHROME_BROWSER_UI_OMNIBOX_ALTERNATE_NAV_INFOBAR_DELEGATE_H_ | 53 #endif // CHROME_BROWSER_UI_OMNIBOX_ALTERNATE_NAV_INFOBAR_DELEGATE_H_ |
| OLD | NEW |