OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_OMNIBOX_CURRENT_PAGE_DELEGATE_IMPL_H_ | 5 #ifndef CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_CURRENT_PAGE_DELEGATE_IMPL_H_ |
6 #define CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_CURRENT_PAGE_DELEGATE_IMPL_H_ | 6 #define CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_CURRENT_PAGE_DELEGATE_IMPL_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "chrome/browser/ui/omnibox/omnibox_current_page_delegate.h" | 9 #include "chrome/browser/ui/omnibox/omnibox_current_page_delegate.h" |
10 | 10 |
11 class OmniboxEditController; | 11 class OmniboxEditController; |
12 class Profile; | 12 class Profile; |
13 | 13 |
14 class OmniboxCurrentPageDelegateImpl : public OmniboxCurrentPageDelegate { | 14 class OmniboxCurrentPageDelegateImpl : public OmniboxCurrentPageDelegate { |
15 public: | 15 public: |
16 explicit OmniboxCurrentPageDelegateImpl(OmniboxEditController* controller, | 16 explicit OmniboxCurrentPageDelegateImpl(OmniboxEditController* controller, |
17 Profile* profile); | 17 Profile* profile); |
18 virtual ~OmniboxCurrentPageDelegateImpl(); | 18 virtual ~OmniboxCurrentPageDelegateImpl(); |
19 | 19 |
20 // OmniboxCurrentPageDelegate. | 20 // OmniboxCurrentPageDelegate. |
21 virtual bool CurrentPageExists() const OVERRIDE; | 21 virtual bool CurrentPageExists() const OVERRIDE; |
22 virtual const GURL& GetURL() const OVERRIDE; | 22 virtual const GURL& GetURL() const OVERRIDE; |
23 virtual bool IsInstantNTP() const OVERRIDE; | 23 virtual bool IsInstantNTP() const OVERRIDE; |
| 24 virtual bool IsSearchResultsPage() const OVERRIDE; |
24 virtual bool IsLoading() const OVERRIDE; | 25 virtual bool IsLoading() const OVERRIDE; |
25 virtual content::NavigationController& | 26 virtual content::NavigationController& |
26 GetNavigationController() const OVERRIDE; | 27 GetNavigationController() const OVERRIDE; |
27 virtual const SessionID& GetSessionID() const OVERRIDE; | 28 virtual const SessionID& GetSessionID() const OVERRIDE; |
28 virtual bool ProcessExtensionKeyword( | 29 virtual bool ProcessExtensionKeyword( |
29 TemplateURL* template_url, | 30 TemplateURL* template_url, |
30 const AutocompleteMatch& match, | 31 const AutocompleteMatch& match, |
31 WindowOpenDisposition disposition) OVERRIDE; | 32 WindowOpenDisposition disposition) OVERRIDE; |
32 virtual void NotifySearchTabHelper(bool user_input_in_progress, | 33 virtual void NotifySearchTabHelper(bool user_input_in_progress, |
33 bool cancelling) OVERRIDE; | 34 bool cancelling) OVERRIDE; |
34 virtual void DoPrerender(const AutocompleteMatch& match) OVERRIDE; | 35 virtual void DoPrerender(const AutocompleteMatch& match) OVERRIDE; |
35 | 36 |
36 private: | 37 private: |
37 OmniboxEditController* controller_; | 38 OmniboxEditController* controller_; |
38 Profile* profile_; | 39 Profile* profile_; |
39 | 40 |
40 DISALLOW_COPY_AND_ASSIGN(OmniboxCurrentPageDelegateImpl); | 41 DISALLOW_COPY_AND_ASSIGN(OmniboxCurrentPageDelegateImpl); |
41 }; | 42 }; |
42 | 43 |
43 #endif // CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_CURRENT_PAGE_DELEGATE_IMPL_H_ | 44 #endif // CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_CURRENT_PAGE_DELEGATE_IMPL_H_ |
OLD | NEW |