| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef ATHENA_EXTENSIONS_SHELL_SHELL_SEARCH_CONTROLLER_FACTORY_H_ | 5 #ifndef ATHENA_EXTENSIONS_SHELL_SHELL_SEARCH_CONTROLLER_FACTORY_H_ |
| 6 #define ATHENA_EXTENSIONS_SHELL_SHELL_SEARCH_CONTROLLER_FACTORY_H_ | 6 #define ATHENA_EXTENSIONS_SHELL_SHELL_SEARCH_CONTROLLER_FACTORY_H_ |
| 7 | 7 |
| 8 #include "athena/home/public/search_controller_factory.h" | 8 #include "athena/home/public/search_controller_factory.h" |
| 9 | 9 |
| 10 namespace content { | 10 namespace content { |
| 11 class BrowserContext; | 11 class BrowserContext; |
| 12 } | 12 } |
| 13 | 13 |
| 14 namespace athena { | 14 namespace athena { |
| 15 | 15 |
| 16 class ShellSearchControllerFactory : public SearchControllerFactory { | 16 class ShellSearchControllerFactory : public SearchControllerFactory { |
| 17 public: | 17 public: |
| 18 explicit ShellSearchControllerFactory( | 18 explicit ShellSearchControllerFactory( |
| 19 content::BrowserContext* browser_context); | 19 content::BrowserContext* browser_context); |
| 20 virtual ~ShellSearchControllerFactory(); | 20 ~ShellSearchControllerFactory() override; |
| 21 | 21 |
| 22 virtual scoped_ptr<app_list::SearchController> Create( | 22 scoped_ptr<app_list::SearchController> Create( |
| 23 app_list::SearchBoxModel* search_box, | 23 app_list::SearchBoxModel* search_box, |
| 24 app_list::AppListModel::SearchResults* results) override; | 24 app_list::AppListModel::SearchResults* results) override; |
| 25 | 25 |
| 26 private: | 26 private: |
| 27 content::BrowserContext* browser_context_; | 27 content::BrowserContext* browser_context_; |
| 28 | 28 |
| 29 DISALLOW_COPY_AND_ASSIGN(ShellSearchControllerFactory); | 29 DISALLOW_COPY_AND_ASSIGN(ShellSearchControllerFactory); |
| 30 }; | 30 }; |
| 31 | 31 |
| 32 } // namespace athena | 32 } // namespace athena |
| 33 | 33 |
| 34 #endif // ATHENA_EXTENSIONS_SHELL_SHELL_SEARCH_CONTROLLER_FACTORY_H_ | 34 #endif // ATHENA_EXTENSIONS_SHELL_SHELL_SEARCH_CONTROLLER_FACTORY_H_ |
| OLD | NEW |