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 1491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1502 | 1502 |
1503 // Sends the |reply_message_| to |automation_| indicating we're done. | 1503 // Sends the |reply_message_| to |automation_| indicating we're done. |
1504 void RunOnUIThread(); | 1504 void RunOnUIThread(); |
1505 | 1505 |
1506 base::WeakPtr<AutomationProvider> automation_; | 1506 base::WeakPtr<AutomationProvider> automation_; |
1507 scoped_ptr<IPC::Message> reply_message_; | 1507 scoped_ptr<IPC::Message> reply_message_; |
1508 | 1508 |
1509 DISALLOW_COPY_AND_ASSIGN(WaitForProcessLauncherThreadToGoIdleObserver); | 1509 DISALLOW_COPY_AND_ASSIGN(WaitForProcessLauncherThreadToGoIdleObserver); |
1510 }; | 1510 }; |
1511 | 1511 |
1512 // Allows the automation provider to wait for acknowledgement that a drop | |
1513 // operation has been processed by the renderer. | |
1514 class DragTargetDropAckNotificationObserver : public NotificationObserver { | |
1515 public: | |
1516 DragTargetDropAckNotificationObserver(AutomationProvider* automation, | |
1517 IPC::Message* reply_message); | |
1518 virtual ~DragTargetDropAckNotificationObserver(); | |
1519 | |
1520 virtual void Observe(NotificationType type, | |
1521 const NotificationSource& source, | |
1522 const NotificationDetails& details); | |
1523 | |
1524 private: | |
1525 NotificationRegistrar registrar_; | |
1526 base::WeakPtr<AutomationProvider> automation_; | |
1527 scoped_ptr<IPC::Message> reply_message_; | |
1528 | |
1529 DISALLOW_COPY_AND_ASSIGN(DragTargetDropAckNotificationObserver); | |
1530 }; | |
kkania
2011/06/01 16:16:41
newline here
nodchip
2011/06/02 07:15:53
Done.
| |
1512 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ | 1531 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ |
OLD | NEW |