| 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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 // Result reporting. | 238 // Result reporting. |
| 239 void ReportFailureFromFileThread(const CrxInstallerError& error); | 239 void ReportFailureFromFileThread(const CrxInstallerError& error); |
| 240 void ReportFailureFromUIThread(const CrxInstallerError& error); | 240 void ReportFailureFromUIThread(const CrxInstallerError& error); |
| 241 void ReportSuccessFromFileThread(); | 241 void ReportSuccessFromFileThread(); |
| 242 void ReportSuccessFromUIThread(); | 242 void ReportSuccessFromUIThread(); |
| 243 void NotifyCrxInstallComplete(const Extension* extension); | 243 void HandleIsBlacklistedResponse(const base::Closure& on_success, |
| 244 bool success); |
| 245 void NotifyCrxInstallComplete(bool success); |
| 244 | 246 |
| 245 // Deletes temporary directory and crx file if needed. | 247 // Deletes temporary directory and crx file if needed. |
| 246 void CleanupTempFiles(); | 248 void CleanupTempFiles(); |
| 247 | 249 |
| 248 // Creates sequenced task runner for extension install file I/O operations. | 250 // Creates sequenced task runner for extension install file I/O operations. |
| 249 scoped_refptr<base::SequencedTaskRunner> CreateSequencedTaskRunner(); | 251 scoped_refptr<base::SequencedTaskRunner> CreateSequencedTaskRunner(); |
| 250 | 252 |
| 251 // The file we're installing. | 253 // The file we're installing. |
| 252 FilePath source_file_; | 254 FilePath source_file_; |
| 253 | 255 |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 | 391 |
| 390 // Used to show the install dialog. | 392 // Used to show the install dialog. |
| 391 ExtensionInstallPrompt::ShowDialogCallback show_dialog_callback_; | 393 ExtensionInstallPrompt::ShowDialogCallback show_dialog_callback_; |
| 392 | 394 |
| 393 DISALLOW_COPY_AND_ASSIGN(CrxInstaller); | 395 DISALLOW_COPY_AND_ASSIGN(CrxInstaller); |
| 394 }; | 396 }; |
| 395 | 397 |
| 396 } // namespace extensions | 398 } // namespace extensions |
| 397 | 399 |
| 398 #endif // CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_ | 400 #endif // CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_ |
| OLD | NEW |