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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 void OnBlacklistChecked( | 232 void OnBlacklistChecked( |
233 extensions::BlacklistState blacklist_state); | 233 extensions::BlacklistState blacklist_state); |
234 | 234 |
235 // Runs on the UI thread. Confirms the installation to the ExtensionService. | 235 // Runs on the UI thread. Confirms the installation to the ExtensionService. |
236 void ConfirmInstall(); | 236 void ConfirmInstall(); |
237 | 237 |
238 // Runs on File thread. Install the unpacked extension into the profile and | 238 // Runs on File thread. Install the unpacked extension into the profile and |
239 // notify the frontend. | 239 // notify the frontend. |
240 void CompleteInstall(); | 240 void CompleteInstall(); |
241 | 241 |
| 242 // Reloads extension on File thread and reports installation result back |
| 243 // to UI thread. |
| 244 void ReloadExtensionAfterInstall(const base::FilePath& version_dir); |
| 245 |
242 // Result reporting. | 246 // Result reporting. |
243 void ReportFailureFromFileThread(const CrxInstallerError& error); | 247 void ReportFailureFromFileThread(const CrxInstallerError& error); |
244 void ReportFailureFromUIThread(const CrxInstallerError& error); | 248 void ReportFailureFromUIThread(const CrxInstallerError& error); |
245 void ReportSuccessFromFileThread(); | 249 void ReportSuccessFromFileThread(); |
246 void ReportSuccessFromUIThread(); | 250 void ReportSuccessFromUIThread(); |
247 void NotifyCrxInstallBegin(); | 251 void NotifyCrxInstallBegin(); |
248 void NotifyCrxInstallComplete(bool success); | 252 void NotifyCrxInstallComplete(bool success); |
249 | 253 |
250 // Deletes temporary directory and crx file if needed. | 254 // Deletes temporary directory and crx file if needed. |
251 void CleanupTempFiles(); | 255 void CleanupTempFiles(); |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
407 | 411 |
408 // Gives access to common methods and data of an extension installer. | 412 // Gives access to common methods and data of an extension installer. |
409 ExtensionInstaller installer_; | 413 ExtensionInstaller installer_; |
410 | 414 |
411 DISALLOW_COPY_AND_ASSIGN(CrxInstaller); | 415 DISALLOW_COPY_AND_ASSIGN(CrxInstaller); |
412 }; | 416 }; |
413 | 417 |
414 } // namespace extensions | 418 } // namespace extensions |
415 | 419 |
416 #endif // CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_ | 420 #endif // CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_ |
OLD | NEW |