| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 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 CHROME_BROWSER_UI_APP_LIST_SEARCH_APP_SEARCH_PROVIDER_H_ | 5 #ifndef CHROME_BROWSER_UI_APP_LIST_SEARCH_APP_SEARCH_PROVIDER_H_ |
| 6 #define CHROME_BROWSER_UI_APP_LIST_SEARCH_APP_SEARCH_PROVIDER_H_ | 6 #define CHROME_BROWSER_UI_APP_LIST_SEARCH_APP_SEARCH_PROVIDER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 } | 21 } |
| 22 | 22 |
| 23 namespace app_list { | 23 namespace app_list { |
| 24 | 24 |
| 25 class AppListItemList; | 25 class AppListItemList; |
| 26 | 26 |
| 27 class AppSearchProvider : public SearchProvider { | 27 class AppSearchProvider : public SearchProvider { |
| 28 public: | 28 public: |
| 29 class App; | 29 class App; |
| 30 class DataSource; | 30 class DataSource; |
| 31 typedef std::vector<std::unique_ptr<App>> Apps; | 31 using Apps = std::vector<std::unique_ptr<App>>; |
| 32 | 32 |
| 33 AppSearchProvider(Profile* profile, | 33 AppSearchProvider(Profile* profile, |
| 34 AppListControllerDelegate* list_controller, | 34 AppListControllerDelegate* list_controller, |
| 35 std::unique_ptr<base::Clock> clock, | 35 std::unique_ptr<base::Clock> clock, |
| 36 AppListItemList* top_level_item_list); | 36 AppListItemList* top_level_item_list); |
| 37 ~AppSearchProvider() override; | 37 ~AppSearchProvider() override; |
| 38 | 38 |
| 39 // SearchProvider overrides: | 39 // SearchProvider overrides: |
| 40 void Start(bool is_voice_query, const base::string16& query) override; | 40 void Start(bool is_voice_query, const base::string16& query) override; |
| 41 void Stop() override; | 41 void Stop() override; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 57 std::unique_ptr<base::Clock> clock_; | 57 std::unique_ptr<base::Clock> clock_; |
| 58 std::vector<std::unique_ptr<DataSource>> data_sources_; | 58 std::vector<std::unique_ptr<DataSource>> data_sources_; |
| 59 base::WeakPtrFactory<AppSearchProvider> update_results_factory_; | 59 base::WeakPtrFactory<AppSearchProvider> update_results_factory_; |
| 60 | 60 |
| 61 DISALLOW_COPY_AND_ASSIGN(AppSearchProvider); | 61 DISALLOW_COPY_AND_ASSIGN(AppSearchProvider); |
| 62 }; | 62 }; |
| 63 | 63 |
| 64 } // namespace app_list | 64 } // namespace app_list |
| 65 | 65 |
| 66 #endif // CHROME_BROWSER_UI_APP_LIST_SEARCH_APP_SEARCH_PROVIDER_H_ | 66 #endif // CHROME_BROWSER_UI_APP_LIST_SEARCH_APP_SEARCH_PROVIDER_H_ |
| OLD | NEW |