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