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

Unified Diff: chrome/browser/automation/automation_provider_observers.h

Issue 2861019: Enable "get html from page" functionality for PyAuto.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 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/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_

Powered by Google App Engine
This is Rietveld 408576698