OLD | NEW |
---|---|
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 Loading... | |
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_ |
OLD | NEW |