OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "chrome/browser/extensions/extension_app_api.h" | 10 #include "chrome/browser/extensions/extension_app_api.h" |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 // Records an app launch in the corresponding |bucket| of the app launch | 134 // Records an app launch in the corresponding |bucket| of the app launch |
135 // histogram if the |escaped_url| corresponds to an installed app. | 135 // histogram if the |escaped_url| corresponds to an installed app. |
136 static void RecordAppLaunchByURL(Profile* profile, | 136 static void RecordAppLaunchByURL(Profile* profile, |
137 std::string escaped_url, | 137 std::string escaped_url, |
138 extension_misc::AppLaunchBucket bucket); | 138 extension_misc::AppLaunchBucket bucket); |
139 | 139 |
140 // Prompts the user to re-enable the app for |extension_id|. | 140 // Prompts the user to re-enable the app for |extension_id|. |
141 void PromptToEnableApp(const std::string& extension_id); | 141 void PromptToEnableApp(const std::string& extension_id); |
142 | 142 |
143 // ExtensionUninstallDialog::Delegate: | 143 // ExtensionUninstallDialog::Delegate: |
144 virtual void ExtensionDialogAccepted() OVERRIDE; | 144 virtual void ExtensionUninstallAccepted() OVERRIDE; |
145 virtual void ExtensionDialogCanceled() OVERRIDE; | 145 virtual void ExtensionUninstallCanceled() OVERRIDE; |
146 | 146 |
147 // ExtensionInstallUI::Delegate: | 147 // ExtensionInstallUI::Delegate: |
148 virtual void InstallUIProceed() OVERRIDE; | 148 virtual void InstallUIProceed() OVERRIDE; |
149 virtual void InstallUIAbort(bool user_initiated) OVERRIDE; | 149 virtual void InstallUIAbort(bool user_initiated) OVERRIDE; |
150 | 150 |
151 // Returns the ExtensionUninstallDialog object for this class, creating it if | 151 // Returns the ExtensionUninstallDialog object for this class, creating it if |
152 // needed. | 152 // needed. |
153 ExtensionUninstallDialog* GetExtensionUninstallDialog(); | 153 ExtensionUninstallDialog* GetExtensionUninstallDialog(); |
154 | 154 |
155 // Returns the ExtensionInstallUI object for this class, creating it if | 155 // Returns the ExtensionInstallUI object for this class, creating it if |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 // when the app is added to the page (via getAppsCallback or appAdded). | 205 // when the app is added to the page (via getAppsCallback or appAdded). |
206 std::string highlight_app_id_; | 206 std::string highlight_app_id_; |
207 | 207 |
208 // Hold state for favicon requests. | 208 // Hold state for favicon requests. |
209 CancelableRequestConsumerTSimple<AppInstallInfo*> favicon_consumer_; | 209 CancelableRequestConsumerTSimple<AppInstallInfo*> favicon_consumer_; |
210 | 210 |
211 DISALLOW_COPY_AND_ASSIGN(AppLauncherHandler); | 211 DISALLOW_COPY_AND_ASSIGN(AppLauncherHandler); |
212 }; | 212 }; |
213 | 213 |
214 #endif // CHROME_BROWSER_UI_WEBUI_NTP_APP_LAUNCHER_HANDLER_H_ | 214 #endif // CHROME_BROWSER_UI_WEBUI_NTP_APP_LAUNCHER_HANDLER_H_ |
OLD | NEW |