#ifndef CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_CURRENT_PAGE_DELEGATE_IMPL_H_
#define CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_CURRENT_PAGE_DELEGATE_IMPL_H_
#include "base/compiler_specific.h"
#include "chrome/browser/ui/omnibox/omnibox_current_page_delegate.h"
class OmniboxEditController;
class Profile;
class OmniboxCurrentPageDelegateImpl : public OmniboxCurrentPageDelegate {
public:
explicit OmniboxCurrentPageDelegateImpl(OmniboxEditController* controller,
Profile* profile);
virtual ~OmniboxCurrentPageDelegateImpl();
virtual bool CurrentPageExists() const OVERRIDE;
virtual const GURL& GetURL() const OVERRIDE;
virtual bool IsInstantNTP() const OVERRIDE;
virtual bool IsSearchResultsPage() const OVERRIDE;
virtual bool IsLoading() const OVERRIDE;
virtual content::NavigationController&
GetNavigationController() const OVERRIDE;
virtual const SessionID& GetSessionID() const OVERRIDE;
virtual bool ProcessExtensionKeyword(
TemplateURL* template_url,
const AutocompleteMatch& match,
WindowOpenDisposition disposition) OVERRIDE;
virtual void OnInputStateChanged() OVERRIDE;
virtual void OnFocusChanged(OmniboxFocusState state,
OmniboxFocusChangeReason reason) OVERRIDE;
virtual void DoPrerender(const AutocompleteMatch& match) OVERRIDE;
virtual void SetSuggestionToPrefetch(
const InstantSuggestion& suggestion) OVERRIDE;
private:
OmniboxEditController* controller_;
Profile* profile_;
DISALLOW_COPY_AND_ASSIGN(OmniboxCurrentPageDelegateImpl);
};
#endif