blob: 9f5b024bdba082bb189a9025d4c83c2bf7c7908d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#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();
// OmniboxCurrentPageDelegate.
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 NotifySearchTabHelper(bool user_input_in_progress,
bool cancelling) OVERRIDE;
virtual void DoPrerender(const AutocompleteMatch& match) OVERRIDE;
private:
OmniboxEditController* controller_;
Profile* profile_;
DISALLOW_COPY_AND_ASSIGN(OmniboxCurrentPageDelegateImpl);
};
#endif // CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_CURRENT_PAGE_DELEGATE_IMPL_H_
|