| 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 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 | 91 |
| 92 // Same as the previous method, except use the |approval| to bypass the | 92 // Same as the previous method, except use the |approval| to bypass the |
| 93 // prompt. Note that the caller retains ownership of |approval|. | 93 // prompt. Note that the caller retains ownership of |approval|. |
| 94 static scoped_refptr<CrxInstaller> Create( | 94 static scoped_refptr<CrxInstaller> Create( |
| 95 ExtensionService* service, | 95 ExtensionService* service, |
| 96 scoped_ptr<ExtensionInstallPrompt> client, | 96 scoped_ptr<ExtensionInstallPrompt> client, |
| 97 const WebstoreInstaller::Approval* approval); | 97 const WebstoreInstaller::Approval* approval); |
| 98 | 98 |
| 99 // Install the crx in |source_file|. | 99 // Install the crx in |source_file|. |
| 100 void InstallCrx(const base::FilePath& source_file); | 100 void InstallCrx(const base::FilePath& source_file); |
| 101 void InstallCrxFile(const CRXFileInfo& source_file); |
| 101 | 102 |
| 102 // Convert the specified user script into an extension and install it. | 103 // Convert the specified user script into an extension and install it. |
| 103 void InstallUserScript(const base::FilePath& source_file, | 104 void InstallUserScript(const base::FilePath& source_file, |
| 104 const GURL& download_url); | 105 const GURL& download_url); |
| 105 | 106 |
| 106 // Convert the specified web app into an extension and install it. | 107 // Convert the specified web app into an extension and install it. |
| 107 void InstallWebApp(const WebApplicationInfo& web_app); | 108 void InstallWebApp(const WebApplicationInfo& web_app); |
| 108 | 109 |
| 109 // Overridden from ExtensionInstallPrompt::Delegate: | 110 // Overridden from ExtensionInstallPrompt::Delegate: |
| 110 void InstallUIProceed() override; | 111 void InstallUIProceed() override; |
| (...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 419 | 420 |
| 420 // Performs requirements, policy and blacklist checks on the extension. | 421 // Performs requirements, policy and blacklist checks on the extension. |
| 421 ExtensionInstallChecker install_checker_; | 422 ExtensionInstallChecker install_checker_; |
| 422 | 423 |
| 423 DISALLOW_COPY_AND_ASSIGN(CrxInstaller); | 424 DISALLOW_COPY_AND_ASSIGN(CrxInstaller); |
| 424 }; | 425 }; |
| 425 | 426 |
| 426 } // namespace extensions | 427 } // namespace extensions |
| 427 | 428 |
| 428 #endif // CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_ | 429 #endif // CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_ |
| OLD | NEW |