Update V8 to version 4.6.22.
[chromium-blink-merge.git] / chrome / browser / ui / omnibox / chrome_omnibox_client.h
blob9e53a26aca72a0003cd28440d8ad8367f8c40039
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_CHROME_OMNIBOX_CLIENT_H_
6 #define CHROME_BROWSER_UI_OMNIBOX_CHROME_OMNIBOX_CLIENT_H_
8 #include "base/compiler_specific.h"
9 #include "chrome/browser/ui/omnibox/omnibox_client.h"
11 class OmniboxEditController;
12 class Profile;
14 class ChromeOmniboxClient : public OmniboxClient {
15 public:
16 ChromeOmniboxClient(OmniboxEditController* controller, Profile* profile);
17 ~ChromeOmniboxClient() override;
19 // OmniboxClient.
20 bool CurrentPageExists() const override;
21 const GURL& GetURL() const override;
22 bool IsInstantNTP() const override;
23 bool IsSearchResultsPage() const override;
24 bool IsLoading() const override;
25 content::NavigationController& GetNavigationController() const override;
26 const SessionID& GetSessionID() const override;
27 bool ProcessExtensionKeyword(TemplateURL* template_url,
28 const AutocompleteMatch& match,
29 WindowOpenDisposition disposition) override;
30 void OnInputStateChanged() override;
31 void OnFocusChanged(OmniboxFocusState state,
32 OmniboxFocusChangeReason reason) override;
33 void OnURLOpenedFromOmnibox(OmniboxLog* log) 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(ChromeOmniboxClient);
44 #endif // CHROME_BROWSER_UI_OMNIBOX_CHROME_OMNIBOX_CLIENT_H_