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 581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
592 private: | 592 private: |
593 NotificationRegistrar registrar_; | 593 NotificationRegistrar registrar_; |
594 | 594 |
595 DISALLOW_COPY_AND_ASSIGN(DomOperationObserver); | 595 DISALLOW_COPY_AND_ASSIGN(DomOperationObserver); |
596 }; | 596 }; |
597 | 597 |
598 // Sends a message back to the automation client with the results of the DOM | 598 // Sends a message back to the automation client with the results of the DOM |
599 // operation. | 599 // operation. |
600 class DomOperationMessageSender : public DomOperationObserver { | 600 class DomOperationMessageSender : public DomOperationObserver { |
601 public: | 601 public: |
602 explicit DomOperationMessageSender(AutomationProvider* automation, | 602 DomOperationMessageSender(AutomationProvider* automation, |
603 IPC::Message* relpy_message, | 603 IPC::Message* relpy_message, |
604 bool use_json_interface); | 604 bool use_json_interface); |
605 virtual ~DomOperationMessageSender(); | 605 virtual ~DomOperationMessageSender(); |
606 | 606 |
607 virtual void OnDomOperationCompleted(const std::string& json) OVERRIDE; | 607 virtual void OnDomOperationCompleted(const std::string& json) OVERRIDE; |
608 virtual void OnModalDialogShown() OVERRIDE; | 608 virtual void OnModalDialogShown() OVERRIDE; |
609 | 609 |
610 private: | 610 private: |
611 base::WeakPtr<AutomationProvider> automation_; | 611 base::WeakPtr<AutomationProvider> automation_; |
612 scoped_ptr<IPC::Message> reply_message_; | 612 scoped_ptr<IPC::Message> reply_message_; |
613 bool use_json_interface_; | 613 bool use_json_interface_; |
614 | 614 |
(...skipping 970 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1585 | 1585 |
1586 private: | 1586 private: |
1587 NotificationRegistrar registrar_; | 1587 NotificationRegistrar registrar_; |
1588 base::WeakPtr<AutomationProvider> automation_; | 1588 base::WeakPtr<AutomationProvider> automation_; |
1589 scoped_ptr<IPC::Message> reply_message_; | 1589 scoped_ptr<IPC::Message> reply_message_; |
1590 | 1590 |
1591 DISALLOW_COPY_AND_ASSIGN(DragTargetDropAckNotificationObserver); | 1591 DISALLOW_COPY_AND_ASSIGN(DragTargetDropAckNotificationObserver); |
1592 }; | 1592 }; |
1593 | 1593 |
1594 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ | 1594 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ |
OLD | NEW |