| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/file_path.h" | 10 #include "base/file_path.h" |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 // it is OK to install this extension. | 106 // it is OK to install this extension. |
| 107 void ConfirmInstall(); | 107 void ConfirmInstall(); |
| 108 | 108 |
| 109 // Runs on File thread. Install the unpacked extension into the profile and | 109 // Runs on File thread. Install the unpacked extension into the profile and |
| 110 // notify the frontend. | 110 // notify the frontend. |
| 111 void CompleteInstall(); | 111 void CompleteInstall(); |
| 112 | 112 |
| 113 // Result reporting. | 113 // Result reporting. |
| 114 void ReportFailureFromFileThread(const std::string& error); | 114 void ReportFailureFromFileThread(const std::string& error); |
| 115 void ReportFailureFromUIThread(const std::string& error); | 115 void ReportFailureFromUIThread(const std::string& error); |
| 116 void ReportOverinstallFromFileThread(); | |
| 117 void ReportOverinstallFromUIThread(); | |
| 118 void ReportSuccessFromFileThread(); | 116 void ReportSuccessFromFileThread(); |
| 119 void ReportSuccessFromUIThread(); | 117 void ReportSuccessFromUIThread(); |
| 120 | 118 |
| 121 // The file we're installing. | 119 // The file we're installing. |
| 122 FilePath source_file_; | 120 FilePath source_file_; |
| 123 | 121 |
| 124 // The URL the file was downloaded from. | 122 // The URL the file was downloaded from. |
| 125 GURL original_url_; | 123 GURL original_url_; |
| 126 | 124 |
| 127 // The directory extensions are installed to. | 125 // The directory extensions are installed to. |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 ExtensionInstallUI* client_; | 185 ExtensionInstallUI* client_; |
| 188 | 186 |
| 189 // The root of the unpacked extension directory. This is a subdirectory of | 187 // The root of the unpacked extension directory. This is a subdirectory of |
| 190 // temp_dir_, so we don't have to delete it explicitly. | 188 // temp_dir_, so we don't have to delete it explicitly. |
| 191 FilePath unpacked_extension_root_; | 189 FilePath unpacked_extension_root_; |
| 192 | 190 |
| 193 DISALLOW_COPY_AND_ASSIGN(CrxInstaller); | 191 DISALLOW_COPY_AND_ASSIGN(CrxInstaller); |
| 194 }; | 192 }; |
| 195 | 193 |
| 196 #endif // CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_ | 194 #endif // CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_ |
| OLD | NEW |