| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_WEBUI_NTP_APP_LAUNCHER_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_NTP_APP_LAUNCHER_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_NTP_APP_LAUNCHER_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_NTP_APP_LAUNCHER_HANDLER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 // Returns the ExtensionUninstallDialog object for this class, creating it if | 148 // Returns the ExtensionUninstallDialog object for this class, creating it if |
| 149 // needed. | 149 // needed. |
| 150 ExtensionUninstallDialog* GetExtensionUninstallDialog(); | 150 ExtensionUninstallDialog* GetExtensionUninstallDialog(); |
| 151 | 151 |
| 152 // Returns the ExtensionInstallPrompt object for this class, creating it if | 152 // Returns the ExtensionInstallPrompt object for this class, creating it if |
| 153 // needed. | 153 // needed. |
| 154 ExtensionInstallPrompt* GetExtensionInstallPrompt(); | 154 ExtensionInstallPrompt* GetExtensionInstallPrompt(); |
| 155 | 155 |
| 156 // Continuation for installing a bookmark app after favicon lookup. | 156 // Continuation for installing a bookmark app after favicon lookup. |
| 157 void OnFaviconForApp(FaviconService::Handle handle, | 157 void OnFaviconForApp(FaviconService::Handle handle, |
| 158 history::FaviconData data); | 158 history::FaviconData data, |
| 159 std::vector<GURL> icon_urls_in_db); |
| 159 | 160 |
| 160 // Sends |highlight_app_id_| to the js. | 161 // Sends |highlight_app_id_| to the js. |
| 161 void SetAppToBeHighlighted(); | 162 void SetAppToBeHighlighted(); |
| 162 | 163 |
| 163 // The apps are represented in the extensions model, which | 164 // The apps are represented in the extensions model, which |
| 164 // outlives us since it's owned by our containing profile. | 165 // outlives us since it's owned by our containing profile. |
| 165 ExtensionService* const extension_service_; | 166 ExtensionService* const extension_service_; |
| 166 | 167 |
| 167 // We monitor changes to the extension system so that we can reload the apps | 168 // We monitor changes to the extension system so that we can reload the apps |
| 168 // when necessary. | 169 // when necessary. |
| (...skipping 30 matching lines...) Expand all Loading... |
| 199 // when the app is added to the page (via getAppsCallback or appAdded). | 200 // when the app is added to the page (via getAppsCallback or appAdded). |
| 200 std::string highlight_app_id_; | 201 std::string highlight_app_id_; |
| 201 | 202 |
| 202 // Hold state for favicon requests. | 203 // Hold state for favicon requests. |
| 203 CancelableRequestConsumerTSimple<AppInstallInfo*> favicon_consumer_; | 204 CancelableRequestConsumerTSimple<AppInstallInfo*> favicon_consumer_; |
| 204 | 205 |
| 205 DISALLOW_COPY_AND_ASSIGN(AppLauncherHandler); | 206 DISALLOW_COPY_AND_ASSIGN(AppLauncherHandler); |
| 206 }; | 207 }; |
| 207 | 208 |
| 208 #endif // CHROME_BROWSER_UI_WEBUI_NTP_APP_LAUNCHER_HANDLER_H_ | 209 #endif // CHROME_BROWSER_UI_WEBUI_NTP_APP_LAUNCHER_HANDLER_H_ |
| OLD | NEW |