| 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 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 524 virtual void Observe(NotificationType type, | 524 virtual void Observe(NotificationType type, |
| 525 const NotificationSource& source, | 525 const NotificationSource& source, |
| 526 const NotificationDetails& details); | 526 const NotificationDetails& details); |
| 527 | 527 |
| 528 private: | 528 private: |
| 529 ExecuteBrowserCommandObserver(AutomationProvider* automation, | 529 ExecuteBrowserCommandObserver(AutomationProvider* automation, |
| 530 IPC::Message* reply_message); | 530 IPC::Message* reply_message); |
| 531 | 531 |
| 532 bool Register(int command); | 532 bool Register(int command); |
| 533 | 533 |
| 534 bool GetNotificationType(int command, NotificationType::Type* type); | 534 bool GetNotificationType(int command, int* type); |
| 535 | 535 |
| 536 NotificationRegistrar registrar_; | 536 NotificationRegistrar registrar_; |
| 537 base::WeakPtr<AutomationProvider> automation_; | 537 base::WeakPtr<AutomationProvider> automation_; |
| 538 NotificationType::Type notification_type_; | 538 int notification_type_; |
| 539 scoped_ptr<IPC::Message> reply_message_; | 539 scoped_ptr<IPC::Message> reply_message_; |
| 540 | 540 |
| 541 DISALLOW_COPY_AND_ASSIGN(ExecuteBrowserCommandObserver); | 541 DISALLOW_COPY_AND_ASSIGN(ExecuteBrowserCommandObserver); |
| 542 }; | 542 }; |
| 543 | 543 |
| 544 class FindInPageNotificationObserver : public NotificationObserver { | 544 class FindInPageNotificationObserver : public NotificationObserver { |
| 545 public: | 545 public: |
| 546 FindInPageNotificationObserver(AutomationProvider* automation, | 546 FindInPageNotificationObserver(AutomationProvider* automation, |
| 547 TabContents* parent_tab, | 547 TabContents* parent_tab, |
| 548 bool reply_with_json, | 548 bool reply_with_json, |
| (...skipping 1001 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1550 | 1550 |
| 1551 private: | 1551 private: |
| 1552 NotificationRegistrar registrar_; | 1552 NotificationRegistrar registrar_; |
| 1553 base::WeakPtr<AutomationProvider> automation_; | 1553 base::WeakPtr<AutomationProvider> automation_; |
| 1554 scoped_ptr<IPC::Message> reply_message_; | 1554 scoped_ptr<IPC::Message> reply_message_; |
| 1555 | 1555 |
| 1556 DISALLOW_COPY_AND_ASSIGN(DragTargetDropAckNotificationObserver); | 1556 DISALLOW_COPY_AND_ASSIGN(DragTargetDropAckNotificationObserver); |
| 1557 }; | 1557 }; |
| 1558 | 1558 |
| 1559 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ | 1559 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ |
| OLD | NEW |