| 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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 } | 173 } |
| 174 | 174 |
| 175 void set_error_on_unsupported_requirements(bool val) { | 175 void set_error_on_unsupported_requirements(bool val) { |
| 176 error_on_unsupported_requirements_ = val; | 176 error_on_unsupported_requirements_ = val; |
| 177 } | 177 } |
| 178 | 178 |
| 179 void set_install_wait_for_idle(bool val) { | 179 void set_install_wait_for_idle(bool val) { |
| 180 install_wait_for_idle_ = val; | 180 install_wait_for_idle_ = val; |
| 181 } | 181 } |
| 182 | 182 |
| 183 void set_is_ephemeral(bool val) { |
| 184 is_ephemeral_ = val; |
| 185 } |
| 186 |
| 183 bool did_handle_successfully() const { return did_handle_successfully_; } | 187 bool did_handle_successfully() const { return did_handle_successfully_; } |
| 184 | 188 |
| 185 Profile* profile() { return installer_.profile(); } | 189 Profile* profile() { return installer_.profile(); } |
| 186 | 190 |
| 187 const Extension* extension() { return installer_.extension().get(); } | 191 const Extension* extension() { return installer_.extension().get(); } |
| 188 | 192 |
| 189 private: | 193 private: |
| 190 friend class ::ExtensionServiceTest; | 194 friend class ::ExtensionServiceTest; |
| 191 friend class ExtensionUpdaterTest; | 195 friend class ExtensionUpdaterTest; |
| 192 friend class ExtensionCrxInstallerTest; | 196 friend class ExtensionCrxInstallerTest; |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 // Sequenced task runner where file I/O operations will be performed. | 388 // Sequenced task runner where file I/O operations will be performed. |
| 385 scoped_refptr<base::SequencedTaskRunner> installer_task_runner_; | 389 scoped_refptr<base::SequencedTaskRunner> installer_task_runner_; |
| 386 | 390 |
| 387 // Used to show the install dialog. | 391 // Used to show the install dialog. |
| 388 ExtensionInstallPrompt::ShowDialogCallback show_dialog_callback_; | 392 ExtensionInstallPrompt::ShowDialogCallback show_dialog_callback_; |
| 389 | 393 |
| 390 // Whether the update is initiated by the user from the extension settings | 394 // Whether the update is initiated by the user from the extension settings |
| 391 // page. | 395 // page. |
| 392 bool update_from_settings_page_; | 396 bool update_from_settings_page_; |
| 393 | 397 |
| 398 // True if an ephemeral app is being installed. |
| 399 bool is_ephemeral_; |
| 400 |
| 394 // Gives access to common methods and data of an extension installer. | 401 // Gives access to common methods and data of an extension installer. |
| 395 ExtensionInstaller installer_; | 402 ExtensionInstaller installer_; |
| 396 | 403 |
| 397 DISALLOW_COPY_AND_ASSIGN(CrxInstaller); | 404 DISALLOW_COPY_AND_ASSIGN(CrxInstaller); |
| 398 }; | 405 }; |
| 399 | 406 |
| 400 } // namespace extensions | 407 } // namespace extensions |
| 401 | 408 |
| 402 #endif // CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_ | 409 #endif // CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_ |
| OLD | NEW |