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_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 // Shows the actual UI (the icon should already be loaded). | 279 // Shows the actual UI (the icon should already be loaded). |
280 void ShowConfirmation(); | 280 void ShowConfirmation(); |
281 | 281 |
282 gfx::NativeWindow parent_; | 282 gfx::NativeWindow parent_; |
283 content::PageNavigator* navigator_; | 283 content::PageNavigator* navigator_; |
284 MessageLoop* ui_loop_; | 284 MessageLoop* ui_loop_; |
285 | 285 |
286 // The extensions installation icon. | 286 // The extensions installation icon. |
287 SkBitmap icon_; | 287 SkBitmap icon_; |
288 | 288 |
289 // The extension we are showing the UI for. | 289 // The extension we are showing the UI for, if type is not |
| 290 // BUNDLE_INSTALL_PROMPT. |
290 const extensions::Extension* extension_; | 291 const extensions::Extension* extension_; |
291 | 292 |
292 // The bundle we are showing the UI for, if type BUNDLE_INSTALL_PROMPT. | 293 // The bundle we are showing the UI for, if type BUNDLE_INSTALL_PROMPT. |
293 const extensions::BundleInstaller* bundle_; | 294 const extensions::BundleInstaller* bundle_; |
294 | 295 |
295 // The permissions being prompted for. | 296 // The permissions being prompted for. |
296 scoped_refptr<const extensions::PermissionSet> permissions_; | 297 scoped_refptr<const extensions::PermissionSet> permissions_; |
297 | 298 |
298 // The object responsible for doing the UI specific actions. | 299 // The object responsible for doing the UI specific actions. |
299 scoped_ptr<ExtensionInstallUI> install_ui_; | 300 scoped_ptr<ExtensionInstallUI> install_ui_; |
(...skipping 18 matching lines...) Expand all Loading... |
318 | 319 |
319 // Creates an ExtensionInstallPrompt from |browser|. Caller assumes ownership. | 320 // Creates an ExtensionInstallPrompt from |browser|. Caller assumes ownership. |
320 // TODO(beng): remove this once various extensions types are weaned from | 321 // TODO(beng): remove this once various extensions types are weaned from |
321 // Browser. | 322 // Browser. |
322 ExtensionInstallPrompt* CreateExtensionInstallPromptWithBrowser( | 323 ExtensionInstallPrompt* CreateExtensionInstallPromptWithBrowser( |
323 Browser* browser); | 324 Browser* browser); |
324 | 325 |
325 } // namespace chrome | 326 } // namespace chrome |
326 | 327 |
327 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_ | 328 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_ |
OLD | NEW |