| 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_WEBSTORE_INSTALLER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_WEBSTORE_INSTALLER_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_WEBSTORE_INSTALLER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_WEBSTORE_INSTALLER_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 Profile* profile_; | 269 Profile* profile_; |
| 270 Delegate* delegate_; | 270 Delegate* delegate_; |
| 271 std::string id_; | 271 std::string id_; |
| 272 InstallSource install_source_; | 272 InstallSource install_source_; |
| 273 // The DownloadItem is owned by the DownloadManager and is valid from when | 273 // The DownloadItem is owned by the DownloadManager and is valid from when |
| 274 // OnDownloadStarted is called (with no error) until OnDownloadDestroyed(). | 274 // OnDownloadStarted is called (with no error) until OnDownloadDestroyed(). |
| 275 content::DownloadItem* download_item_; | 275 content::DownloadItem* download_item_; |
| 276 // Used to periodically update the extension's download status. This will | 276 // Used to periodically update the extension's download status. This will |
| 277 // trigger at least every second, though sometimes more frequently (depending | 277 // trigger at least every second, though sometimes more frequently (depending |
| 278 // on number of modules, etc). | 278 // on number of modules, etc). |
| 279 base::OneShotTimer<WebstoreInstaller> download_progress_timer_; | 279 base::OneShotTimer download_progress_timer_; |
| 280 scoped_ptr<Approval> approval_; | 280 scoped_ptr<Approval> approval_; |
| 281 GURL download_url_; | 281 GURL download_url_; |
| 282 scoped_refptr<CrxInstaller> crx_installer_; | 282 scoped_refptr<CrxInstaller> crx_installer_; |
| 283 | 283 |
| 284 // Pending modules. | 284 // Pending modules. |
| 285 std::list<SharedModuleInfo::ImportInfo> pending_modules_; | 285 std::list<SharedModuleInfo::ImportInfo> pending_modules_; |
| 286 // Total extension modules we need download and install (the main module and | 286 // Total extension modules we need download and install (the main module and |
| 287 // depedences). | 287 // depedences). |
| 288 int total_modules_; | 288 int total_modules_; |
| 289 bool download_started_; | 289 bool download_started_; |
| 290 }; | 290 }; |
| 291 | 291 |
| 292 } // namespace extensions | 292 } // namespace extensions |
| 293 | 293 |
| 294 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_INSTALLER_H_ | 294 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_INSTALLER_H_ |
| OLD | NEW |