OLD | NEW |
| (Empty) |
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. | |
4 | |
5 #ifndef ATHENA_EXTENSIONS_CHROME_CHROME_SEARCH_CONTROLLER_FACTORY_H_ | |
6 #define ATHENA_EXTENSIONS_CHROME_CHROME_SEARCH_CONTROLLER_FACTORY_H_ | |
7 | |
8 #include "athena/home/public/search_controller_factory.h" | |
9 #include "chrome/browser/ui/app_list/app_list_controller_delegate.h" | |
10 | |
11 namespace content { | |
12 class BrowserContext; | |
13 } | |
14 | |
15 namespace athena { | |
16 | |
17 class ChromeSearchControllerFactory : public SearchControllerFactory { | |
18 public: | |
19 explicit ChromeSearchControllerFactory( | |
20 content::BrowserContext* browser_context); | |
21 ~ChromeSearchControllerFactory() override; | |
22 | |
23 scoped_ptr<app_list::SearchController> Create( | |
24 app_list::SearchBoxModel* search_box, | |
25 app_list::AppListModel::SearchResults* results) override; | |
26 | |
27 private: | |
28 content::BrowserContext* browser_context_; | |
29 scoped_ptr<AppListControllerDelegate> list_controller_; | |
30 | |
31 DISALLOW_COPY_AND_ASSIGN(ChromeSearchControllerFactory); | |
32 }; | |
33 | |
34 } // namespace athena | |
35 | |
36 #endif // ATHENA_EXTENSIONS_CHROME_CHROME_SEARCH_CONTROLLER_FACTORY_H_ | |
OLD | NEW |