Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(343)

Side by Side Diff: chrome/browser/ui/app_list/search/app_search_provider.h

Issue 379333005: Allow AppSearchProvider to provide recommendations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698