OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 1487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1498 | 1498 |
1499 // Sends the |reply_message_| to |automation_| indicating we're done. | 1499 // Sends the |reply_message_| to |automation_| indicating we're done. |
1500 void RunOnUIThread(); | 1500 void RunOnUIThread(); |
1501 | 1501 |
1502 base::WeakPtr<AutomationProvider> automation_; | 1502 base::WeakPtr<AutomationProvider> automation_; |
1503 scoped_ptr<IPC::Message> reply_message_; | 1503 scoped_ptr<IPC::Message> reply_message_; |
1504 | 1504 |
1505 DISALLOW_COPY_AND_ASSIGN(WaitForProcessLauncherThreadToGoIdleObserver); | 1505 DISALLOW_COPY_AND_ASSIGN(WaitForProcessLauncherThreadToGoIdleObserver); |
1506 }; | 1506 }; |
1507 | 1507 |
| 1508 // Allows the automation provider to wait for acknowledgement that a drop |
| 1509 // operation has been processed by the renderer. |
| 1510 class DragTargetDropAckNotificationObserver : public NotificationObserver { |
| 1511 public: |
| 1512 DragTargetDropAckNotificationObserver(AutomationProvider* automation, |
| 1513 IPC::Message* reply_message); |
| 1514 virtual ~DragTargetDropAckNotificationObserver(); |
| 1515 |
| 1516 virtual void Observe(NotificationType type, |
| 1517 const NotificationSource& source, |
| 1518 const NotificationDetails& details); |
| 1519 |
| 1520 private: |
| 1521 NotificationRegistrar registrar_; |
| 1522 base::WeakPtr<AutomationProvider> automation_; |
| 1523 scoped_ptr<IPC::Message> reply_message_; |
| 1524 |
| 1525 DISALLOW_COPY_AND_ASSIGN(DragTargetDropAckNotificationObserver); |
| 1526 }; |
1508 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ | 1527 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ |
OLD | NEW |