| 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 1515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1526 | 1526 |
| 1527 // Sends the |reply_message_| to |automation_| indicating we're done. | 1527 // Sends the |reply_message_| to |automation_| indicating we're done. |
| 1528 void RunOnUIThread(); | 1528 void RunOnUIThread(); |
| 1529 | 1529 |
| 1530 base::WeakPtr<AutomationProvider> automation_; | 1530 base::WeakPtr<AutomationProvider> automation_; |
| 1531 scoped_ptr<IPC::Message> reply_message_; | 1531 scoped_ptr<IPC::Message> reply_message_; |
| 1532 | 1532 |
| 1533 DISALLOW_COPY_AND_ASSIGN(WaitForProcessLauncherThreadToGoIdleObserver); | 1533 DISALLOW_COPY_AND_ASSIGN(WaitForProcessLauncherThreadToGoIdleObserver); |
| 1534 }; | 1534 }; |
| 1535 | 1535 |
| 1536 // Allows the automation provider to wait for acknowledgement that a drop |
| 1537 // operation has been processed by the renderer. |
| 1538 class DragTargetDropAckNotificationObserver : public NotificationObserver { |
| 1539 public: |
| 1540 DragTargetDropAckNotificationObserver(AutomationProvider* automation, |
| 1541 IPC::Message* reply_message); |
| 1542 virtual ~DragTargetDropAckNotificationObserver(); |
| 1543 |
| 1544 virtual void Observe(NotificationType type, |
| 1545 const NotificationSource& source, |
| 1546 const NotificationDetails& details); |
| 1547 |
| 1548 private: |
| 1549 NotificationRegistrar registrar_; |
| 1550 base::WeakPtr<AutomationProvider> automation_; |
| 1551 scoped_ptr<IPC::Message> reply_message_; |
| 1552 |
| 1553 DISALLOW_COPY_AND_ASSIGN(DragTargetDropAckNotificationObserver); |
| 1554 }; |
| 1555 |
| 1536 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ | 1556 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ |
| OLD | NEW |