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_CRX_INSTALLER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 CrxInstallerError AllowInstall(const Extension* extension); | 215 CrxInstallerError AllowInstall(const Extension* extension); |
216 | 216 |
217 // SandboxedUnpackerClient | 217 // SandboxedUnpackerClient |
218 virtual void OnUnpackFailure(const string16& error_message) OVERRIDE; | 218 virtual void OnUnpackFailure(const string16& error_message) OVERRIDE; |
219 virtual void OnUnpackSuccess(const base::FilePath& temp_dir, | 219 virtual void OnUnpackSuccess(const base::FilePath& temp_dir, |
220 const base::FilePath& extension_dir, | 220 const base::FilePath& extension_dir, |
221 const base::DictionaryValue* original_manifest, | 221 const base::DictionaryValue* original_manifest, |
222 const Extension* extension) OVERRIDE; | 222 const Extension* extension) OVERRIDE; |
223 | 223 |
224 // Called on the UI thread to start the requirements check on the extension. | 224 // Called on the UI thread to start the requirements check on the extension. |
225 void CheckRequirements(); | 225 void CheckImportsAndRequirements(); |
226 | 226 |
227 // Runs on the UI thread. Callback from RequirementsChecker. | 227 // Runs on the UI thread. Callback from RequirementsChecker. |
228 void OnRequirementsChecked(std::vector<std::string> requirement_errors); | 228 void OnRequirementsChecked(std::vector<std::string> requirement_errors); |
229 | 229 |
230 #if defined(ENABLE_MANAGED_USERS) | 230 #if defined(ENABLE_MANAGED_USERS) |
231 // Runs on the UI thread. Callback from the managed user passphrase dialog. | 231 // Runs on the UI thread. Callback from the managed user passphrase dialog. |
232 void OnAuthorizationResult(bool success); | 232 void OnAuthorizationResult(bool success); |
233 #endif | 233 #endif |
234 | 234 |
235 // Runs on the UI thread. Confirms with the user (via ExtensionInstallPrompt) | 235 // Runs on the UI thread. Confirms with the user (via ExtensionInstallPrompt) |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
403 // Whether the update is initiated by the user from the extension settings | 403 // Whether the update is initiated by the user from the extension settings |
404 // page. | 404 // page. |
405 bool update_from_settings_page_; | 405 bool update_from_settings_page_; |
406 | 406 |
407 DISALLOW_COPY_AND_ASSIGN(CrxInstaller); | 407 DISALLOW_COPY_AND_ASSIGN(CrxInstaller); |
408 }; | 408 }; |
409 | 409 |
410 } // namespace extensions | 410 } // namespace extensions |
411 | 411 |
412 #endif // CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_ | 412 #endif // CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_ |
OLD | NEW |