OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_EXTENSION_APP_MODEL_BUILDER_H_ | 5 #ifndef CHROME_BROWSER_UI_APP_LIST_EXTENSION_APP_MODEL_BUILDER_H_ |
6 #define CHROME_BROWSER_UI_APP_LIST_EXTENSION_APP_MODEL_BUILDER_H_ | 6 #define CHROME_BROWSER_UI_APP_LIST_EXTENSION_APP_MODEL_BUILDER_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 void OnDownloadProgress(const std::string& extension_id, | 51 void OnDownloadProgress(const std::string& extension_id, |
52 int percent_downloaded) override; | 52 int percent_downloaded) override; |
53 void OnInstallFailure(const std::string& extension_id) override; | 53 void OnInstallFailure(const std::string& extension_id) override; |
54 void OnDisabledExtensionUpdated( | 54 void OnDisabledExtensionUpdated( |
55 const extensions::Extension* extension) override; | 55 const extensions::Extension* extension) override; |
56 void OnShutdown() override; | 56 void OnShutdown() override; |
57 | 57 |
58 // LauncherAppUpdater::Delegate: | 58 // LauncherAppUpdater::Delegate: |
59 void OnAppInstalled(content::BrowserContext* browser_context, | 59 void OnAppInstalled(content::BrowserContext* browser_context, |
60 const std::string& app_id) override; | 60 const std::string& app_id) override; |
61 void OnAppUpdated(content::BrowserContext* browser_context, | |
62 const std::string& app_id) override; | |
63 void OnAppUninstalled(content::BrowserContext* browser_context, | 61 void OnAppUninstalled(content::BrowserContext* browser_context, |
64 const std::string& app_id) override; | 62 const std::string& app_id) override; |
65 | 63 |
66 std::unique_ptr<ExtensionAppItem> CreateAppItem( | 64 std::unique_ptr<ExtensionAppItem> CreateAppItem( |
67 const std::string& extension_id, | 65 const std::string& extension_id, |
68 const std::string& extension_name, | 66 const std::string& extension_name, |
69 const gfx::ImageSkia& installing_icon, | 67 const gfx::ImageSkia& installing_icon, |
70 bool is_platform_app); | 68 bool is_platform_app); |
71 | 69 |
72 // Populates the model with apps. | 70 // Populates the model with apps. |
(...skipping 17 matching lines...) Expand all Loading... |
90 // We listen to this to show app installing progress. | 88 // We listen to this to show app installing progress. |
91 extensions::InstallTracker* tracker_ = nullptr; | 89 extensions::InstallTracker* tracker_ = nullptr; |
92 | 90 |
93 // Dispatches extension lifecycle events. | 91 // Dispatches extension lifecycle events. |
94 std::unique_ptr<LauncherExtensionAppUpdater> app_updater_; | 92 std::unique_ptr<LauncherExtensionAppUpdater> app_updater_; |
95 | 93 |
96 DISALLOW_COPY_AND_ASSIGN(ExtensionAppModelBuilder); | 94 DISALLOW_COPY_AND_ASSIGN(ExtensionAppModelBuilder); |
97 }; | 95 }; |
98 | 96 |
99 #endif // CHROME_BROWSER_UI_APP_LIST_EXTENSION_APP_MODEL_BUILDER_H_ | 97 #endif // CHROME_BROWSER_UI_APP_LIST_EXTENSION_APP_MODEL_BUILDER_H_ |
OLD | NEW |