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 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 extensions::ExtensionInstallUI* install_ui() const { | 310 extensions::ExtensionInstallUI* install_ui() const { |
311 return install_ui_.get(); | 311 return install_ui_.get(); |
312 } | 312 } |
313 | 313 |
314 // This is called by the bundle installer to verify whether the bundle | 314 // This is called by the bundle installer to verify whether the bundle |
315 // should be installed. | 315 // should be installed. |
316 // | 316 // |
317 // We *MUST* eventually call either Proceed() or Abort() on |delegate|. | 317 // We *MUST* eventually call either Proceed() or Abort() on |delegate|. |
318 virtual void ConfirmBundleInstall( | 318 virtual void ConfirmBundleInstall( |
319 extensions::BundleInstaller* bundle, | 319 extensions::BundleInstaller* bundle, |
| 320 const SkBitmap* icon, |
320 const extensions::PermissionSet* permissions); | 321 const extensions::PermissionSet* permissions); |
321 | 322 |
322 // This is called by the standalone installer to verify whether the install | 323 // This is called by the standalone installer to verify whether the install |
323 // from the webstore should proceed. | 324 // from the webstore should proceed. |
324 // | 325 // |
325 // We *MUST* eventually call either Proceed() or Abort() on |delegate|. | 326 // We *MUST* eventually call either Proceed() or Abort() on |delegate|. |
326 virtual void ConfirmStandaloneInstall(Delegate* delegate, | 327 virtual void ConfirmStandaloneInstall(Delegate* delegate, |
327 const extensions::Extension* extension, | 328 const extensions::Extension* extension, |
328 SkBitmap* icon, | 329 SkBitmap* icon, |
329 scoped_refptr<Prompt> prompt); | 330 scoped_refptr<Prompt> prompt); |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
461 Delegate* delegate_; | 462 Delegate* delegate_; |
462 | 463 |
463 // A pre-filled prompt. | 464 // A pre-filled prompt. |
464 scoped_refptr<Prompt> prompt_; | 465 scoped_refptr<Prompt> prompt_; |
465 | 466 |
466 // Used to show the confirm dialog. | 467 // Used to show the confirm dialog. |
467 ShowDialogCallback show_dialog_callback_; | 468 ShowDialogCallback show_dialog_callback_; |
468 }; | 469 }; |
469 | 470 |
470 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_ | 471 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_ |
OLD | NEW |