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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/scoped_vector.h" | 9 #include "base/memory/scoped_vector.h" |
10 #include "base/scoped_observer.h" | 10 #include "base/scoped_observer.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 namespace app_list { | 22 namespace app_list { |
23 | 23 |
24 class AppSearchProvider : public SearchProvider, | 24 class AppSearchProvider : public SearchProvider, |
25 public extensions::ExtensionRegistryObserver { | 25 public extensions::ExtensionRegistryObserver { |
26 public: | 26 public: |
27 AppSearchProvider(Profile* profile, | 27 AppSearchProvider(Profile* profile, |
28 AppListControllerDelegate* list_controller); | 28 AppListControllerDelegate* list_controller); |
29 virtual ~AppSearchProvider(); | 29 virtual ~AppSearchProvider(); |
30 | 30 |
31 // SearchProvider overrides: | 31 // SearchProvider overrides: |
| 32 virtual void FetchRecommendations() OVERRIDE; |
32 virtual void Start(const base::string16& query) OVERRIDE; | 33 virtual void Start(const base::string16& query) OVERRIDE; |
33 virtual void Stop() OVERRIDE; | 34 virtual void Stop() OVERRIDE; |
34 | 35 |
35 private: | 36 private: |
36 class App; | 37 class App; |
37 typedef ScopedVector<App> Apps; | 38 typedef ScopedVector<App> Apps; |
38 | 39 |
39 // Adds extensions to apps container if they should be displayed. | 40 // Adds extensions to apps container if they should be displayed. |
40 void AddApps(const extensions::ExtensionSet& extensions); | 41 void AddApps(const extensions::ExtensionSet& extensions); |
41 void RefreshApps(); | 42 void RefreshApps(); |
(...skipping 14 matching lines...) Expand all Loading... |
56 extension_registry_observer_; | 57 extension_registry_observer_; |
57 | 58 |
58 Apps apps_; | 59 Apps apps_; |
59 | 60 |
60 DISALLOW_COPY_AND_ASSIGN(AppSearchProvider); | 61 DISALLOW_COPY_AND_ASSIGN(AppSearchProvider); |
61 }; | 62 }; |
62 | 63 |
63 } // namespace app_list | 64 } // namespace app_list |
64 | 65 |
65 #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 |