Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / background / background_application_list_model.h
index a2ce3ed..5d27124 100644 (file)
@@ -89,6 +89,11 @@ class BackgroundApplicationListModel : public content::NotificationObserver {
     return extensions_.size();
   }
 
+  // Returns true if all startup notifications have already been issued.
+  bool is_ready() const {
+    return ready_;
+  }
+
  private:
   // Contains data associated with a background application that is not
   // represented by the Extension class.
@@ -124,7 +129,7 @@ class BackgroundApplicationListModel : public content::NotificationObserver {
   // or removed.
   void SendApplicationListChangedNotifications();
 
-  // Invoked by Observe for NOTIFICATION_EXTENSION_LOADED.
+  // Invoked by Observe for NOTIFICATION_EXTENSION_LOADED_DEPRECATED.
   void OnExtensionLoaded(const extensions::Extension* extension);
 
   // Invoked by Observe for NOTIFICATION_EXTENSION_UNLOADED_DEPRECATED.
@@ -151,6 +156,7 @@ class BackgroundApplicationListModel : public content::NotificationObserver {
   ObserverList<Observer, true> observers_;
   Profile* profile_;
   content::NotificationRegistrar registrar_;
+  bool ready_;
 
   DISALLOW_COPY_AND_ASSIGN(BackgroundApplicationListModel);
 };