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

Unified Diff: chrome/browser/extensions/install_tracker.cc

Issue 175263003: Add chrome.webstore API methods to allow sites to see progress of installation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Latest master Created 6 years, 9 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
« no previous file with comments | « chrome/browser/extensions/install_tracker.h ('k') | chrome/browser/extensions/tab_helper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/install_tracker.cc
diff --git a/chrome/browser/extensions/install_tracker.cc b/chrome/browser/extensions/install_tracker.cc
index 0c79c1cbae0aaebba06b3fc8b032e80e9192b2c0..fc5b5049763690cfa618fea05189d8d9544af2dd 100644
--- a/chrome/browser/extensions/install_tracker.cc
+++ b/chrome/browser/extensions/install_tracker.cc
@@ -56,12 +56,22 @@ void InstallTracker::OnBeginExtensionInstall(
OnBeginExtensionInstall(params));
}
+void InstallTracker::OnBeginExtensionDownload(const std::string& extension_id) {
+ FOR_EACH_OBSERVER(
+ InstallObserver, observers_, OnBeginExtensionDownload(extension_id));
+}
+
void InstallTracker::OnDownloadProgress(const std::string& extension_id,
int percent_downloaded) {
FOR_EACH_OBSERVER(InstallObserver, observers_,
OnDownloadProgress(extension_id, percent_downloaded));
}
+void InstallTracker::OnBeginCrxInstall(const std::string& extension_id) {
+ FOR_EACH_OBSERVER(
+ InstallObserver, observers_, OnBeginCrxInstall(extension_id));
+}
+
void InstallTracker::OnInstallFailure(
const std::string& extension_id) {
FOR_EACH_OBSERVER(InstallObserver, observers_,
« no previous file with comments | « chrome/browser/extensions/install_tracker.h ('k') | chrome/browser/extensions/tab_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698