Add new certificateProvider extension API.
[chromium-blink-merge.git] / chrome / browser / ui / app_list / search / omnibox_result.h
blobb0162bdc392a7b8c49114e28c4e36b3c2261df5f
1 // Copyright 2014 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_APP_LIST_SEARCH_OMNIBOX_RESULT_H_
6 #define CHROME_BROWSER_UI_APP_LIST_SEARCH_OMNIBOX_RESULT_H_
8 #include "base/memory/scoped_ptr.h"
9 #include "components/omnibox/browser/autocomplete_match.h"
10 #include "ui/app_list/search_result.h"
12 class AppListControllerDelegate;
13 class AutocompleteController;
14 class Profile;
16 namespace app_list {
18 class OmniboxResult : public SearchResult {
19 public:
20 OmniboxResult(Profile* profile,
21 AppListControllerDelegate* list_controller,
22 AutocompleteController* autocomplete_controller,
23 bool is_voice_query,
24 const AutocompleteMatch& match);
25 ~OmniboxResult() override;
27 // SearchResult overrides:
28 void Open(int event_flags) override;
30 scoped_ptr<SearchResult> Duplicate() const override;
32 private:
33 void UpdateIcon();
35 void UpdateTitleAndDetails();
37 Profile* profile_;
38 AppListControllerDelegate* list_controller_;
39 AutocompleteController* autocomplete_controller_;
40 bool is_voice_query_;
41 AutocompleteMatch match_;
43 DISALLOW_COPY_AND_ASSIGN(OmniboxResult);
46 } // namespace app_list
48 #endif // CHROME_BROWSER_UI_APP_LIST_SEARCH_OMNIBOX_RESULT_H_