| 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_BUNDLE_INSTALLER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_BUNDLE_INSTALLER_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_BUNDLE_INSTALLER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_BUNDLE_INSTALLER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 // Prompts the user to install the bundle. | 142 // Prompts the user to install the bundle. |
| 143 void ShowPrompt(); | 143 void ShowPrompt(); |
| 144 | 144 |
| 145 // Displays the installed bubble once all items have installed or failed. | 145 // Displays the installed bubble once all items have installed or failed. |
| 146 void ShowInstalledBubbleIfDone(); | 146 void ShowInstalledBubbleIfDone(); |
| 147 | 147 |
| 148 // WebstoreInstallHelper::Delegate implementation: | 148 // WebstoreInstallHelper::Delegate implementation: |
| 149 virtual void OnWebstoreParseSuccess( | 149 virtual void OnWebstoreParseSuccess( |
| 150 const std::string& id, | 150 const std::string& id, |
| 151 const SkBitmap& icon, | 151 const SkBitmap& icon, |
| 152 base::DictionaryValue* parsed_manifest) OVERRIDE; | 152 base::DictionaryValue* parsed_manifest) override; |
| 153 virtual void OnWebstoreParseFailure( | 153 virtual void OnWebstoreParseFailure( |
| 154 const std::string& id, | 154 const std::string& id, |
| 155 InstallHelperResultCode result_code, | 155 InstallHelperResultCode result_code, |
| 156 const std::string& error_message) OVERRIDE; | 156 const std::string& error_message) override; |
| 157 | 157 |
| 158 // ExtensionInstallPrompt::Delegate implementation: | 158 // ExtensionInstallPrompt::Delegate implementation: |
| 159 virtual void InstallUIProceed() OVERRIDE; | 159 virtual void InstallUIProceed() override; |
| 160 virtual void InstallUIAbort(bool user_initiated) OVERRIDE; | 160 virtual void InstallUIAbort(bool user_initiated) override; |
| 161 | 161 |
| 162 // WebstoreInstaller::Delegate implementation: | 162 // WebstoreInstaller::Delegate implementation: |
| 163 virtual void OnExtensionInstallSuccess(const std::string& id) OVERRIDE; | 163 virtual void OnExtensionInstallSuccess(const std::string& id) override; |
| 164 virtual void OnExtensionInstallFailure( | 164 virtual void OnExtensionInstallFailure( |
| 165 const std::string& id, | 165 const std::string& id, |
| 166 const std::string& error, | 166 const std::string& error, |
| 167 WebstoreInstaller::FailureReason reason) OVERRIDE; | 167 WebstoreInstaller::FailureReason reason) override; |
| 168 | 168 |
| 169 // chrome::BrowserListObserver implementation: | 169 // chrome::BrowserListObserver implementation: |
| 170 virtual void OnBrowserAdded(Browser* browser) OVERRIDE; | 170 virtual void OnBrowserAdded(Browser* browser) override; |
| 171 virtual void OnBrowserRemoved(Browser* browser) OVERRIDE; | 171 virtual void OnBrowserRemoved(Browser* browser) override; |
| 172 virtual void OnBrowserSetLastActive(Browser* browser) OVERRIDE; | 172 virtual void OnBrowserSetLastActive(Browser* browser) override; |
| 173 | 173 |
| 174 // Holds the Extensions used to generate the permission warnings. | 174 // Holds the Extensions used to generate the permission warnings. |
| 175 ExtensionList dummy_extensions_; | 175 ExtensionList dummy_extensions_; |
| 176 | 176 |
| 177 // Holds the parsed manifests, indexed by the extension ids. | 177 // Holds the parsed manifests, indexed by the extension ids. |
| 178 ManifestMap parsed_manifests_; | 178 ManifestMap parsed_manifests_; |
| 179 | 179 |
| 180 // True if the user has approved the bundle. | 180 // True if the user has approved the bundle. |
| 181 bool approved_; | 181 bool approved_; |
| 182 | 182 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 196 scoped_ptr<ExtensionInstallPrompt> install_ui_; | 196 scoped_ptr<ExtensionInstallPrompt> install_ui_; |
| 197 | 197 |
| 198 Delegate* delegate_; | 198 Delegate* delegate_; |
| 199 | 199 |
| 200 DISALLOW_COPY_AND_ASSIGN(BundleInstaller); | 200 DISALLOW_COPY_AND_ASSIGN(BundleInstaller); |
| 201 }; | 201 }; |
| 202 | 202 |
| 203 } // namespace extensions | 203 } // namespace extensions |
| 204 | 204 |
| 205 #endif // CHROME_BROWSER_EXTENSIONS_BUNDLE_INSTALLER_H_ | 205 #endif // CHROME_BROWSER_EXTENSIONS_BUNDLE_INSTALLER_H_ |
| OLD | NEW |