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

Side by Side Diff: chrome/browser/ui/omnibox/alternate_nav_infobar_delegate.h

Issue 354773002: Reduces dependency from AutocompleteMatch to Profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "components/infobars/core/infobar_delegate.h" 10 #include "components/infobars/core/infobar_delegate.h"
11 11
12 class Profile;
13
12 namespace content { 14 namespace content {
13 class WebContents; 15 class WebContents;
14 } 16 }
15 17
16 class AlternateNavInfoBarDelegate : public infobars::InfoBarDelegate { 18 class AlternateNavInfoBarDelegate : public infobars::InfoBarDelegate {
17 public: 19 public:
18 virtual ~AlternateNavInfoBarDelegate(); 20 virtual ~AlternateNavInfoBarDelegate();
19 21
20 // Creates an alternate nav infobar and delegate and adds the infobar to the 22 // Creates an alternate nav infobar and delegate and adds the infobar to the
21 // infobar service for |web_contents|. 23 // infobar service for |web_contents|.
(...skipping 22 matching lines...) Expand all
44 46
45 Profile* profile_; 47 Profile* profile_;
46 const base::string16 text_; 48 const base::string16 text_;
47 const AutocompleteMatch match_; 49 const AutocompleteMatch match_;
48 const GURL search_url_; 50 const GURL search_url_;
49 51
50 DISALLOW_COPY_AND_ASSIGN(AlternateNavInfoBarDelegate); 52 DISALLOW_COPY_AND_ASSIGN(AlternateNavInfoBarDelegate);
51 }; 53 };
52 54
53 #endif // CHROME_BROWSER_UI_OMNIBOX_ALTERNATE_NAV_INFOBAR_DELEGATE_H_ 55 #endif // CHROME_BROWSER_UI_OMNIBOX_ALTERNATE_NAV_INFOBAR_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/search/omnibox_provider.cc ('k') | chrome/browser/ui/omnibox/omnibox_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698