OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 | 217 |
218 // Runs on File thread. Install the unpacked extension into the profile and | 218 // Runs on File thread. Install the unpacked extension into the profile and |
219 // notify the frontend. | 219 // notify the frontend. |
220 void CompleteInstall(); | 220 void CompleteInstall(); |
221 | 221 |
222 // Result reporting. | 222 // Result reporting. |
223 void ReportFailureFromFileThread(const std::string& error); | 223 void ReportFailureFromFileThread(const std::string& error); |
224 void ReportFailureFromUIThread(const std::string& error); | 224 void ReportFailureFromUIThread(const std::string& error); |
225 void ReportSuccessFromFileThread(); | 225 void ReportSuccessFromFileThread(); |
226 void ReportSuccessFromUIThread(); | 226 void ReportSuccessFromUIThread(); |
227 void NotifyCrxInstallComplete(); | 227 void NotifyCrxInstallComplete(const Extension* extension); |
228 | 228 |
229 // The file we're installing. | 229 // The file we're installing. |
230 FilePath source_file_; | 230 FilePath source_file_; |
231 | 231 |
232 // The URL the file was downloaded from. | 232 // The URL the file was downloaded from. |
233 GURL download_url_; | 233 GURL download_url_; |
234 | 234 |
235 // The directory extensions are installed to. | 235 // The directory extensions are installed to. |
236 FilePath install_directory_; | 236 FilePath install_directory_; |
237 | 237 |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
325 extension_misc::CrxInstallCause install_cause_; | 325 extension_misc::CrxInstallCause install_cause_; |
326 | 326 |
327 // Creation flags to use for the extension. These flags will be used | 327 // Creation flags to use for the extension. These flags will be used |
328 // when calling Extenion::Create() by the crx installer. | 328 // when calling Extenion::Create() by the crx installer. |
329 int creation_flags_; | 329 int creation_flags_; |
330 | 330 |
331 DISALLOW_COPY_AND_ASSIGN(CrxInstaller); | 331 DISALLOW_COPY_AND_ASSIGN(CrxInstaller); |
332 }; | 332 }; |
333 | 333 |
334 #endif // CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_ | 334 #endif // CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_ |
OLD | NEW |