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

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

Issue 18006003: Consistently use notifications from component updater w/ on-demand PNaCl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 7 years, 6 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 c0975454efa6fe5103d25b403163692801e25230..cbc216ada55fd981fbc54efe225ead6ed328499a 100644
--- a/chrome/browser/component_updater/component_updater_service.h
+++ b/chrome/browser/component_updater/component_updater_service.h
@@ -20,6 +20,10 @@ class DictionaryValue;
class FilePath;
}
+namespace content {
+class NotificationSource;
+}
+
class ComponentPatcher;
// Component specific installers must derive from this class and implement
@@ -156,6 +160,12 @@ class ComponentUpdateService {
// via the Install() hook.
virtual Status CheckForUpdateSoon(const CrxComponent& component) = 0;
+ // Return true if a NOTIFICATION_COMPONENT_UPDATE_FOUND or
+ // NOTIFICATION_COMPONENT_UPDATE_READY is for the given component.
+ static bool IsUpdateNotificationForComponent(
+ const content::NotificationSource& src,
+ const CrxComponent& component);
Sorin Jianu 2013/07/03 21:17:32 This static member seems out of place in the defin
jvoung (off chromium) 2013/07/03 22:51:51 Ah good point. Changed to non-static.
+
virtual ~ComponentUpdateService() {}
};

Powered by Google App Engine
This is Rietveld 408576698