| Index: chrome/browser/automation/automation_provider.h
|
| diff --git a/chrome/browser/automation/automation_provider.h b/chrome/browser/automation/automation_provider.h
|
| index 59be59f499f491750f920889cdce18fa69df8190..11d232ab25697ebf8e9662e8c4b4a5430a8e3c87 100644
|
| --- a/chrome/browser/automation/automation_provider.h
|
| +++ b/chrome/browser/automation/automation_provider.h
|
| @@ -79,22 +79,21 @@ class AutomationProvider : public base::RefCounted<AutomationProvider>,
|
| // complete, the completed_response object is sent; if the server requires
|
| // authentication, we instead send the auth_needed_response object. A pointer
|
| // to the added navigation observer is returned. This object should NOT be
|
| - // deleted and should be released by calling the corresponding
|
| - // RemoveNavigationStatusListener method.
|
| + // deleted and should be released by calling the RemoveObserver method.
|
| NotificationObserver* AddNavigationStatusListener(
|
| NavigationController* tab, IPC::Message* reply_message,
|
| int number_of_navigations, bool include_current_navigation);
|
|
|
| - void RemoveNavigationStatusListener(NotificationObserver* obs);
|
| -
|
| // Add an observer for the TabStrip. Currently only Tab append is observed. A
|
| // navigation listener is created on successful notification of tab append. A
|
| // pointer to the added navigation observer is returned. This object should
|
| - // NOT be deleted and should be released by calling the corresponding
|
| - // RemoveTabStripObserver method.
|
| + // NOT be deleted and should be released by calling the RemoveObserver method.
|
| NotificationObserver* AddTabStripObserver(Browser* parent,
|
| IPC::Message* reply_message);
|
| - void RemoveTabStripObserver(NotificationObserver* obs);
|
| +
|
| + // Remove an observer. The |NotificationObserver| still needs to be deleted
|
| + // afterwards.
|
| + void RemoveObserver(NotificationObserver* obs);
|
|
|
| // Get the index of a particular NavigationController object
|
| // in the given parent window. This method uses
|
| @@ -334,6 +333,10 @@ class AutomationProvider : public base::RefCounted<AutomationProvider>,
|
| int64 id,
|
| bool* success);
|
|
|
| + // Wait for the download shelf to appear or disappear.
|
| + void WaitForDownloadShelfVisibilityChange(int browser_handle,
|
| + bool visibility,
|
| + IPC::Message* reply_message);
|
| // Set window dimensions.
|
| // Uses the JSON interface for input/output.
|
| void SetWindowDimensions(Browser* browser,
|
|
|