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

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

Issue 5755003: Fix pyauto flakiness by waiting for notification that the renderer process' (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ... Created 10 years 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
diff --git a/chrome/browser/automation/automation_provider_observers.h b/chrome/browser/automation/automation_provider_observers.h
index 2411bb9a9ab969ef49a1505e29af1fbcf7be88d5..6a49f3c38c6bf084bd799cc487849d8dd18cbf2e 100644
--- a/chrome/browser/automation/automation_provider_observers.h
+++ b/chrome/browser/automation/automation_provider_observers.h
@@ -993,5 +993,24 @@ class OnNotificationBalloonCountObserver {
DISALLOW_COPY_AND_ASSIGN(OnNotificationBalloonCountObserver);
};
+// Allos the automation provider to wait for a RENDERER_PROCESS_CLOSED
AmolKher 2010/12/10 18:56:44 Allows
+// notification.
+class RendererProcessClosedObserver : public NotificationObserver {
+ public:
+ RendererProcessClosedObserver(AutomationProvider* automation,
+ IPC::Message* reply_message);
+
+ virtual void Observe(NotificationType type,
+ const NotificationSource& source,
+ const NotificationDetails& details);
+
+ private:
+ NotificationRegistrar registrar_;
+ AutomationProvider* automation_;
+ IPC::Message* reply_message_;
+
+ DISALLOW_COPY_AND_ASSIGN(RendererProcessClosedObserver);
+};
+
#endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_
« no previous file with comments | « no previous file | chrome/browser/automation/automation_provider_observers.cc » ('j') | chrome/test/functional/browser.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698