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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 virtual void OnBeginCrxInstall(const std::string& extension_id) {} | 52 virtual void OnBeginCrxInstall(const std::string& extension_id) {} |
53 | 53 |
54 // Called when installation of a crx has completed (either successfully or | 54 // Called when installation of a crx has completed (either successfully or |
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 when an extension or an app is installed to the app list. These are |
63 virtual void OnExtensionInstalled(const Extension* extension) {} | 63 // simply forwarded from the chrome::NOTIFICATIONs. |
64 | |
65 // Called when an extension is [Uninstalled] or an app is | |
66 // installed to the app list. These are simply forwarded from the | |
67 // chrome::NOTIFICATIONs. | |
68 virtual void OnExtensionUninstalled(const Extension* extension) {} | |
69 virtual void OnDisabledExtensionUpdated(const Extension* extension) {} | 64 virtual void OnDisabledExtensionUpdated(const Extension* extension) {} |
70 virtual void OnAppInstalledToAppList(const std::string& extension_id) {} | 65 virtual void OnAppInstalledToAppList(const std::string& extension_id) {} |
71 | 66 |
72 // Called when the app list is reordered. | 67 // Called when the app list is reordered. |
73 virtual void OnAppsReordered() {} | 68 virtual void OnAppsReordered() {} |
74 | 69 |
75 // Notifies observers that the observed object is going away. | 70 // Notifies observers that the observed object is going away. |
76 virtual void OnShutdown() {} | 71 virtual void OnShutdown() {} |
77 | 72 |
78 protected: | 73 protected: |
79 virtual ~InstallObserver() {} | 74 virtual ~InstallObserver() {} |
80 }; | 75 }; |
81 | 76 |
82 } // namespace extensions | 77 } // namespace extensions |
83 | 78 |
84 #endif // CHROME_BROWSER_EXTENSIONS_INSTALL_OBSERVER_H_ | 79 #endif // CHROME_BROWSER_EXTENSIONS_INSTALL_OBSERVER_H_ |
OLD | NEW |