Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2304)

Unified Diff: chrome/browser/extensions/webstore_installer.h

Issue 226023003: Create CrxInstaller directly in WebstoreInstaller (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Android compilation fix (again). Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/webstore_installer.h
diff --git a/chrome/browser/extensions/webstore_installer.h b/chrome/browser/extensions/webstore_installer.h
index 25b2181d681cbf8b6d5c3d42c0d58859f51bd308..bf1da971fdaabdbbc05fba1a15678d64b0d089ff 100644
--- a/chrome/browser/extensions/webstore_installer.h
+++ b/chrome/browser/extensions/webstore_installer.h
@@ -38,6 +38,7 @@ class WebContents;
namespace extensions {
+class CrxInstaller;
class Extension;
class Manifest;
@@ -228,6 +229,9 @@ class WebstoreInstaller : public content::NotificationObserver,
// Updates the InstallTracker with the latest download progress.
void UpdateDownloadProgress();
+ // Creates and starts CrxInstaller for the downloaded extension package.
+ void StartCrxInstaller(const content::DownloadItem& item);
+
// Reports an install |error| to the delegate for the given extension if this
// managed its installation. This also removes the associated PendingInstall.
void ReportFailure(const std::string& error, FailureReason reason);
@@ -254,6 +258,7 @@ class WebstoreInstaller : public content::NotificationObserver,
base::OneShotTimer<WebstoreInstaller> download_progress_timer_;
scoped_ptr<Approval> approval_;
GURL download_url_;
+ scoped_refptr<CrxInstaller> crx_installer_;
// Pending modules.
std::list<SharedModuleInfo::ImportInfo> pending_modules_;
« no previous file with comments | « chrome/browser/extensions/updater/extension_updater_unittest.cc ('k') | chrome/browser/extensions/webstore_installer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698