| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_UI_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 // We *MUST* eventually call either Proceed() or Abort() | 66 // We *MUST* eventually call either Proceed() or Abort() |
| 67 // on |delegate|. | 67 // on |delegate|. |
| 68 virtual void ConfirmUninstall(Delegate* delegate, Extension* extension); | 68 virtual void ConfirmUninstall(Delegate* delegate, Extension* extension); |
| 69 | 69 |
| 70 // Installation was successful. This is declared virtual for testing. | 70 // Installation was successful. This is declared virtual for testing. |
| 71 virtual void OnInstallSuccess(Extension* extension); | 71 virtual void OnInstallSuccess(Extension* extension); |
| 72 | 72 |
| 73 // Installation failed. This is declared virtual for testing. | 73 // Installation failed. This is declared virtual for testing. |
| 74 virtual void OnInstallFailure(const std::string& error); | 74 virtual void OnInstallFailure(const std::string& error); |
| 75 | 75 |
| 76 // The install was rejected because the same extension/version is already | |
| 77 // installed. This is declared virtual for testing. | |
| 78 virtual void OnOverinstallAttempted(Extension* extension); | |
| 79 | |
| 80 // ImageLoadingTracker::Observer overrides. | 76 // ImageLoadingTracker::Observer overrides. |
| 81 virtual void OnImageLoaded( | 77 virtual void OnImageLoaded( |
| 82 SkBitmap* image, ExtensionResource resource, int index); | 78 SkBitmap* image, ExtensionResource resource, int index); |
| 83 | 79 |
| 84 // Show an infobar for a newly-installed theme. previous_theme_id | 80 // Show an infobar for a newly-installed theme. previous_theme_id |
| 85 // should be empty if the previous theme was the system/default | 81 // should be empty if the previous theme was the system/default |
| 86 // theme. | 82 // theme. |
| 87 // | 83 // |
| 88 // TODO(akalin): Find a better home for this (and | 84 // TODO(akalin): Find a better home for this (and |
| 89 // GetNewThemeInstalledInfoBarDelegate()). | 85 // GetNewThemeInstalledInfoBarDelegate()). |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 Delegate* delegate_; // The delegate we will call Proceed/Abort on after | 129 Delegate* delegate_; // The delegate we will call Proceed/Abort on after |
| 134 // confirmation UI. | 130 // confirmation UI. |
| 135 PromptType prompt_type_; // The type of prompt we are going to show. | 131 PromptType prompt_type_; // The type of prompt we are going to show. |
| 136 | 132 |
| 137 // Keeps track of extension images being loaded on the File thread for the | 133 // Keeps track of extension images being loaded on the File thread for the |
| 138 // purpose of showing the install UI. | 134 // purpose of showing the install UI. |
| 139 ImageLoadingTracker tracker_; | 135 ImageLoadingTracker tracker_; |
| 140 }; | 136 }; |
| 141 | 137 |
| 142 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_H_ | 138 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_H_ |
| OLD | NEW |