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

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

Issue 102103005: Move c/c/e/extension_set to top-level extensions/ (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years 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
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 "chrome/browser/ui/app_list/search/search_provider.h" 10 #include "chrome/browser/ui/app_list/search/search_provider.h"
11 #include "content/public/browser/notification_observer.h" 11 #include "content/public/browser/notification_observer.h"
12 #include "content/public/browser/notification_registrar.h" 12 #include "content/public/browser/notification_registrar.h"
13 13
14 class AppListControllerDelegate; 14 class AppListControllerDelegate;
15 class ExtensionService; 15 class ExtensionService;
16 class Profile;
17
18 namespace extensions {
16 class ExtensionSet; 19 class ExtensionSet;
17 class Profile; 20 }
18 21
19 namespace app_list { 22 namespace app_list {
20 23
21 class AppSearchProvider : public SearchProvider, 24 class AppSearchProvider : public SearchProvider,
22 public content::NotificationObserver { 25 public content::NotificationObserver {
23 public: 26 public:
24 AppSearchProvider(Profile* profile, 27 AppSearchProvider(Profile* profile,
25 AppListControllerDelegate* list_controller); 28 AppListControllerDelegate* list_controller);
26 virtual ~AppSearchProvider(); 29 virtual ~AppSearchProvider();
27 30
28 // SearchProvider overrides: 31 // SearchProvider overrides:
29 virtual void Start(const base::string16& query) OVERRIDE; 32 virtual void Start(const base::string16& query) OVERRIDE;
30 virtual void Stop() OVERRIDE; 33 virtual void Stop() OVERRIDE;
31 34
32 private: 35 private:
33 class App; 36 class App;
34 typedef ScopedVector<App> Apps; 37 typedef ScopedVector<App> Apps;
35 38
36 // Adds extensions to apps container if they should be displayed. 39 // Adds extensions to apps container if they should be displayed.
37 void AddApps(const ExtensionSet* extensions, ExtensionService* service); 40 void AddApps(const extensions::ExtensionSet* extensions,
41 ExtensionService* service);
38 void RefreshApps(); 42 void RefreshApps();
39 43
40 // content::NotificationObserver overrides: 44 // content::NotificationObserver overrides:
41 virtual void Observe(int type, 45 virtual void Observe(int type,
42 const content::NotificationSource& source, 46 const content::NotificationSource& source,
43 const content::NotificationDetails& details) OVERRIDE; 47 const content::NotificationDetails& details) OVERRIDE;
44 48
45 Profile* profile_; 49 Profile* profile_;
46 AppListControllerDelegate* list_controller_; 50 AppListControllerDelegate* list_controller_;
47 content::NotificationRegistrar registrar_; 51 content::NotificationRegistrar registrar_;
48 52
49 Apps apps_; 53 Apps apps_;
50 54
51 DISALLOW_COPY_AND_ASSIGN(AppSearchProvider); 55 DISALLOW_COPY_AND_ASSIGN(AppSearchProvider);
52 }; 56 };
53 57
54 } // namespace app_list 58 } // namespace app_list
55 59
56 #endif // CHROME_BROWSER_UI_APP_LIST_SEARCH_APP_SEARCH_PROVIDER_H_ 60 #endif // CHROME_BROWSER_UI_APP_LIST_SEARCH_APP_SEARCH_PROVIDER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/recommended_apps.cc ('k') | chrome/browser/ui/app_list/search/app_search_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698