Index: chrome/browser/automation/automation_provider_observers.h |
=================================================================== |
--- chrome/browser/automation/automation_provider_observers.h (revision 50654) |
+++ chrome/browser/automation/automation_provider_observers.h (working copy) |
@@ -21,6 +21,7 @@ |
class Extension; |
class ExtensionProcessManager; |
class NavigationController; |
+class SavePackage; |
class TabContents; |
namespace IPC { |
@@ -632,4 +633,24 @@ |
DISALLOW_COPY_AND_ASSIGN(OmniboxAcceptNotificationObserver); |
}; |
+// Allows the automation provider to wait for a save package notification. |
+class SavePackageNotificationObserver : public NotificationObserver { |
+ public: |
+ SavePackageNotificationObserver(SavePackage* save_package, |
+ AutomationProvider* automation, |
+ IPC::Message* reply_message); |
+ virtual ~SavePackageNotificationObserver() {} |
+ |
+ virtual void Observe(NotificationType type, |
+ const NotificationSource& source, |
+ const NotificationDetails& details); |
+ |
+ private: |
+ NotificationRegistrar registrar_; |
+ AutomationProvider* automation_; |
+ IPC::Message* reply_message_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(SavePackageNotificationObserver); |
+}; |
+ |
#endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ |