Remove unused field from extension_sorting.cc
[chromium-blink-merge.git] / chrome / browser / extensions / install_observer.h
blob422efbdbffc78da28ca893c33d02f4e99ba805f3
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_EXTENSIONS_INSTALL_OBSERVER_H_
6 #define CHROME_BROWSER_EXTENSIONS_INSTALL_OBSERVER_H_
8 namespace gfx {
9 class ImageSkia;
12 namespace extensions {
14 class Extension;
16 class InstallObserver {
17 public:
18 virtual void OnBeginExtensionInstall(
19 const std::string& extension_id,
20 const std::string& extension_name,
21 const gfx::ImageSkia& installing_icon,
22 bool is_app,
23 bool is_platform_app) = 0;
25 virtual void OnDownloadProgress(const std::string& extension_id,
26 int percent_downloaded) = 0;
28 virtual void OnInstallFailure(const std::string& extension_id) = 0;
30 virtual void OnExtensionInstalled(const Extension* extension) = 0;
31 virtual void OnExtensionUninstalled(const Extension* extension) = 0;
32 virtual void OnExtensionDisabled(const Extension* extension) = 0;
33 virtual void OnAppsReordered() = 0;
34 virtual void OnAppInstalledToAppList(const std::string& extension_id) = 0;
36 // Notifies observers that the observed object is going away.
37 virtual void OnShutdown() = 0;
39 protected:
40 virtual ~InstallObserver() {}
43 } // namespace extensions
45 #endif // CHROME_BROWSER_EXTENSIONS_INSTALL_OBSERVER_H_