Standardize usage of virtual/override/final in chrome/browser/ui/
[chromium-blink-merge.git] / chrome / browser / ui / omnibox / omnibox_current_page_delegate_impl.h
blob60c325800baef433b45f87927c6d11c40b931a09
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_CURRENT_PAGE_DELEGATE_IMPL_H_
6 #define CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_CURRENT_PAGE_DELEGATE_IMPL_H_
8 #include "base/compiler_specific.h"
9 #include "chrome/browser/ui/omnibox/omnibox_current_page_delegate.h"
11 class OmniboxEditController;
12 class Profile;
14 class OmniboxCurrentPageDelegateImpl : public OmniboxCurrentPageDelegate {
15 public:
16 explicit OmniboxCurrentPageDelegateImpl(OmniboxEditController* controller,
17 Profile* profile);
18 ~OmniboxCurrentPageDelegateImpl() override;
20 // OmniboxCurrentPageDelegate.
21 bool CurrentPageExists() const override;
22 const GURL& GetURL() const override;
23 bool IsInstantNTP() const override;
24 bool IsSearchResultsPage() const override;
25 bool IsLoading() const override;
26 content::NavigationController& GetNavigationController() const override;
27 const SessionID& GetSessionID() const override;
28 bool ProcessExtensionKeyword(TemplateURL* template_url,
29 const AutocompleteMatch& match,
30 WindowOpenDisposition disposition) override;
31 void OnInputStateChanged() override;
32 void OnFocusChanged(OmniboxFocusState state,
33 OmniboxFocusChangeReason reason) override;
34 void DoPrerender(const AutocompleteMatch& match) override;
35 void SetSuggestionToPrefetch(const InstantSuggestion& suggestion) override;
37 private:
38 OmniboxEditController* controller_;
39 Profile* profile_;
41 DISALLOW_COPY_AND_ASSIGN(OmniboxCurrentPageDelegateImpl);
44 #endif // CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_CURRENT_PAGE_DELEGATE_IMPL_H_