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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ 5 #ifndef CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_
6 #define CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ 6 #define CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <map> 10 #include <map>
(...skipping 975 matching lines...) Expand 10 before | Expand all | Expand 10 after
986 void OnBalloonCollectionChanged(); 986 void OnBalloonCollectionChanged();
987 987
988 private: 988 private:
989 AutomationJSONReply reply_; 989 AutomationJSONReply reply_;
990 BalloonCollection* collection_; 990 BalloonCollection* collection_;
991 int count_; 991 int count_;
992 992
993 DISALLOW_COPY_AND_ASSIGN(OnNotificationBalloonCountObserver); 993 DISALLOW_COPY_AND_ASSIGN(OnNotificationBalloonCountObserver);
994 }; 994 };
995 995
996 // Allos the automation provider to wait for a RENDERER_PROCESS_CLOSED
AmolKher 2010/12/10 18:56:44 Allows
997 // notification.
998 class RendererProcessClosedObserver : public NotificationObserver {
999 public:
1000 RendererProcessClosedObserver(AutomationProvider* automation,
1001 IPC::Message* reply_message);
1002
1003 virtual void Observe(NotificationType type,
1004 const NotificationSource& source,
1005 const NotificationDetails& details);
1006
1007 private:
1008 NotificationRegistrar registrar_;
1009 AutomationProvider* automation_;
1010 IPC::Message* reply_message_;
1011
1012 DISALLOW_COPY_AND_ASSIGN(RendererProcessClosedObserver);
1013 };
1014
996 1015
997 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ 1016 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_
OLDNEW
« 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