+ // Wait for |condition_| to be met. |notification_set| is the set of
+ // notifications to wait for and to check |condition| when observing. This
+ // can be NULL if we are instead waiting for a different observer method, like
+ // OnPageActionsUpdated().
+ void WaitForCondition(const base::Callback<bool(void)>& condition,
+ NotificationSet* notification_set);
+
+ // Quits the message loop if |condition_| is met.
+ void MaybeQuit();
+
+ // extensions::ExtensionActionAPI::Observer:
+ virtual void OnPageActionsUpdated(content::WebContents* contents) OVERRIDE;
+