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_EXTENSIONS_INSTALL_OBSERVER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_INSTALL_OBSERVER_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_INSTALL_OBSERVER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_INSTALL_OBSERVER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "ui/gfx/image/image_skia.h" | 10 #include "ui/gfx/image/image_skia.h" |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 // not). | 55 // not). |
56 virtual void OnFinishCrxInstall(const std::string& extension_id, | 56 virtual void OnFinishCrxInstall(const std::string& extension_id, |
57 bool success) {} | 57 bool success) {} |
58 | 58 |
59 // Called if the extension fails to install. | 59 // Called if the extension fails to install. |
60 virtual void OnInstallFailure(const std::string& extension_id) {} | 60 virtual void OnInstallFailure(const std::string& extension_id) {} |
61 | 61 |
62 // Called if the installation succeeds. | 62 // Called if the installation succeeds. |
63 virtual void OnExtensionInstalled(const Extension* extension) {} | 63 virtual void OnExtensionInstalled(const Extension* extension) {} |
64 | 64 |
65 // Called when an extension is [Loaded, Unloaded, Uninstalled] or an app is | 65 // Called when an extension is [Uninstalled] or an app is |
66 // installed to the app list. These are simply forwarded from the | 66 // installed to the app list. These are simply forwarded from the |
67 // chrome::NOTIFICATIONs. | 67 // chrome::NOTIFICATIONs. |
68 virtual void OnExtensionLoaded(const Extension* extension) {} | |
69 virtual void OnExtensionUnloaded(const Extension* extension) {} | |
70 virtual void OnExtensionUninstalled(const Extension* extension) {} | 68 virtual void OnExtensionUninstalled(const Extension* extension) {} |
71 virtual void OnDisabledExtensionUpdated(const Extension* extension) {} | 69 virtual void OnDisabledExtensionUpdated(const Extension* extension) {} |
72 virtual void OnAppInstalledToAppList(const std::string& extension_id) {} | 70 virtual void OnAppInstalledToAppList(const std::string& extension_id) {} |
73 | 71 |
74 // Called when the app list is reordered. | 72 // Called when the app list is reordered. |
75 virtual void OnAppsReordered() {} | 73 virtual void OnAppsReordered() {} |
76 | 74 |
77 // Notifies observers that the observed object is going away. | 75 // Notifies observers that the observed object is going away. |
78 virtual void OnShutdown() {} | 76 virtual void OnShutdown() {} |
79 | 77 |
80 protected: | 78 protected: |
81 virtual ~InstallObserver() {} | 79 virtual ~InstallObserver() {} |
82 }; | 80 }; |
83 | 81 |
84 } // namespace extensions | 82 } // namespace extensions |
85 | 83 |
86 #endif // CHROME_BROWSER_EXTENSIONS_INSTALL_OBSERVER_H_ | 84 #endif // CHROME_BROWSER_EXTENSIONS_INSTALL_OBSERVER_H_ |
OLD | NEW |