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 <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 const Extension* extension, | 236 const Extension* extension, |
237 const SkBitmap& install_icon) override; | 237 const SkBitmap& install_icon) override; |
238 | 238 |
239 // Called on the UI thread to start the requirements, policy and blacklist | 239 // Called on the UI thread to start the requirements, policy and blacklist |
240 // checks on the extension. | 240 // checks on the extension. |
241 void CheckInstall(); | 241 void CheckInstall(); |
242 | 242 |
243 // Runs on the UI thread. Callback from ExtensionInstallChecker. | 243 // Runs on the UI thread. Callback from ExtensionInstallChecker. |
244 void OnInstallChecksComplete(int failed_checks); | 244 void OnInstallChecksComplete(int failed_checks); |
245 | 245 |
246 // Runs on the UI thread. Callback from Blacklist. | |
247 void OnBlacklistChecked( | |
248 extensions::BlacklistState blacklist_state); | |
249 | |
250 // Runs on the UI thread. Confirms the installation to the ExtensionService. | 246 // Runs on the UI thread. Confirms the installation to the ExtensionService. |
251 void ConfirmInstall(); | 247 void ConfirmInstall(); |
252 | 248 |
253 // Runs on the UI thread. Updates the creation flags for the extension and | 249 // Runs on the UI thread. Updates the creation flags for the extension and |
254 // calls CompleteInstall(). | 250 // calls CompleteInstall(). |
255 void UpdateCreationFlagsAndCompleteInstall(); | 251 void UpdateCreationFlagsAndCompleteInstall(); |
256 | 252 |
257 // Runs on File thread. Install the unpacked extension into the profile and | 253 // Runs on File thread. Install the unpacked extension into the profile and |
258 // notify the frontend. | 254 // notify the frontend. |
259 void CompleteInstall(); | 255 void CompleteInstall(); |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
445 | 441 |
446 // Performs requirements, policy and blacklist checks on the extension. | 442 // Performs requirements, policy and blacklist checks on the extension. |
447 std::unique_ptr<ExtensionInstallChecker> install_checker_; | 443 std::unique_ptr<ExtensionInstallChecker> install_checker_; |
448 | 444 |
449 DISALLOW_COPY_AND_ASSIGN(CrxInstaller); | 445 DISALLOW_COPY_AND_ASSIGN(CrxInstaller); |
450 }; | 446 }; |
451 | 447 |
452 } // namespace extensions | 448 } // namespace extensions |
453 | 449 |
454 #endif // CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_ | 450 #endif // CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_ |
OLD | NEW |