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 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 // cause unnecessary unpacking of an extension at every restart. | 338 // cause unnecessary unpacking of an extension at every restart. |
339 // See also |fail_install_if_unexpected_version_|! | 339 // See also |fail_install_if_unexpected_version_|! |
340 base::Version expected_version_; | 340 base::Version expected_version_; |
341 | 341 |
342 // If true, installation will fail if the actual version doesn't match | 342 // If true, installation will fail if the actual version doesn't match |
343 // |expected_version_|. If false, the extension will still be installed, but | 343 // |expected_version_|. If false, the extension will still be installed, but |
344 // not granted any permissions. | 344 // not granted any permissions. |
345 bool fail_install_if_unexpected_version_; | 345 bool fail_install_if_unexpected_version_; |
346 | 346 |
347 // Whether manual extension installation is enabled. We can't just check this | 347 // Whether manual extension installation is enabled. We can't just check this |
348 // before trying to install because themes are special-cased to always be | 348 // before trying to install because themes and bookmark apps are special-cased |
349 // allowed. | 349 // to always be allowed. |
350 bool extensions_enabled_; | 350 bool extensions_enabled_; |
351 | 351 |
352 // Whether we're supposed to delete the source file on destruction. Defaults | 352 // Whether we're supposed to delete the source file on destruction. Defaults |
353 // to false. | 353 // to false. |
354 bool delete_source_; | 354 bool delete_source_; |
355 | 355 |
356 // Whether to create an app shortcut after successful installation. This is | 356 // Whether to create an app shortcut after successful installation. This is |
357 // set based on the user's selection in the UI and can only ever be true for | 357 // set based on the user's selection in the UI and can only ever be true for |
358 // apps. | 358 // apps. |
359 bool create_app_shortcut_; | 359 bool create_app_shortcut_; |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
442 | 442 |
443 // Performs requirements, policy and blacklist checks on the extension. | 443 // Performs requirements, policy and blacklist checks on the extension. |
444 ExtensionInstallChecker install_checker_; | 444 ExtensionInstallChecker install_checker_; |
445 | 445 |
446 DISALLOW_COPY_AND_ASSIGN(CrxInstaller); | 446 DISALLOW_COPY_AND_ASSIGN(CrxInstaller); |
447 }; | 447 }; |
448 | 448 |
449 } // namespace extensions | 449 } // namespace extensions |
450 | 450 |
451 #endif // CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_ | 451 #endif // CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_ |
OLD | NEW |