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

Unified Diff: chrome/browser/component_updater/component_updater_service.h

Issue 12054003: Add an API to component_updater that asks to do an update check "now". (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup Created 7 years, 10 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/component_updater/component_updater_service.h
diff --git a/chrome/browser/component_updater/component_updater_service.h b/chrome/browser/component_updater/component_updater_service.h
index 43a083f933acdfbcd0bc34575263eb8563b85d7e..94caebfeafb064bf7cb6afc6297834a828e19247 100644
--- a/chrome/browser/component_updater/component_updater_service.h
+++ b/chrome/browser/component_updater/component_updater_service.h
@@ -88,6 +88,7 @@ class ComponentUpdateService {
enum Status {
kOk,
kReplaced,
+ kInProgress,
kError
};
// Controls the component updater behavior.
@@ -139,6 +140,12 @@ class ComponentUpdateService {
// before calling Start().
virtual Status RegisterComponent(const CrxComponent& component) = 0;
+ // Ask the component updater to do an update check for a previously
+ // registered component, soon. Only one client may request for this
+ // higher priority treatment at one time. Returns |kInProgress| if
+ // there is already a request in progress
+ virtual Status CheckForUpdateSoon(const CrxComponent& component) = 0;
+
virtual ~ComponentUpdateService() {}
};
@@ -148,4 +155,3 @@ ComponentUpdateService* ComponentUpdateServiceFactory(
ComponentUpdateService::Configurator* config);
#endif // CHROME_BROWSER_COMPONENT_UPDATER_COMPONENT_UPDATER_SERVICE_H_
-

Powered by Google App Engine
This is Rietveld 408576698