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 28 matching lines...) Expand all Loading... |
39 // Adds extensions to apps container if they should be displayed. | 39 // Adds extensions to apps container if they should be displayed. |
40 void AddApps(const extensions::ExtensionSet& extensions); | 40 void AddApps(const extensions::ExtensionSet& extensions); |
41 void RefreshApps(); | 41 void RefreshApps(); |
42 | 42 |
43 // extensions::ExtensionRegistryObserver overrides: | 43 // extensions::ExtensionRegistryObserver overrides: |
44 virtual void OnExtensionLoaded( | 44 virtual void OnExtensionLoaded( |
45 content::BrowserContext* browser_context, | 45 content::BrowserContext* browser_context, |
46 const extensions::Extension* extension) OVERRIDE; | 46 const extensions::Extension* extension) OVERRIDE; |
47 virtual void OnExtensionUninstalled( | 47 virtual void OnExtensionUninstalled( |
48 content::BrowserContext* browser_context, | 48 content::BrowserContext* browser_context, |
49 const extensions::Extension* extension) OVERRIDE; | 49 const extensions::Extension* extension, |
| 50 extensions::UninstallReason reason) OVERRIDE; |
50 | 51 |
51 Profile* profile_; | 52 Profile* profile_; |
52 AppListControllerDelegate* list_controller_; | 53 AppListControllerDelegate* list_controller_; |
53 | 54 |
54 ScopedObserver<extensions::ExtensionRegistry, | 55 ScopedObserver<extensions::ExtensionRegistry, |
55 extensions::ExtensionRegistryObserver> | 56 extensions::ExtensionRegistryObserver> |
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 |