| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 432 | 432 |
| 433 private: | 433 private: |
| 434 ExecuteBrowserCommandObserver(AutomationProvider* automation, | 434 ExecuteBrowserCommandObserver(AutomationProvider* automation, |
| 435 IPC::Message* reply_message); | 435 IPC::Message* reply_message); |
| 436 | 436 |
| 437 bool Register(int command); | 437 bool Register(int command); |
| 438 | 438 |
| 439 bool GetNotificationType(int command, NotificationType::Type* type); | 439 bool GetNotificationType(int command, NotificationType::Type* type); |
| 440 | 440 |
| 441 NotificationRegistrar registrar_; | 441 NotificationRegistrar registrar_; |
| 442 AutomationProvider* automation_; | 442 scoped_refptr<AutomationProvider> automation_; |
| 443 NotificationType::Type notification_type_; | 443 NotificationType::Type notification_type_; |
| 444 IPC::Message* reply_message_; | 444 IPC::Message* reply_message_; |
| 445 | 445 |
| 446 DISALLOW_COPY_AND_ASSIGN(ExecuteBrowserCommandObserver); | 446 DISALLOW_COPY_AND_ASSIGN(ExecuteBrowserCommandObserver); |
| 447 }; | 447 }; |
| 448 | 448 |
| 449 class FindInPageNotificationObserver : public NotificationObserver { | 449 class FindInPageNotificationObserver : public NotificationObserver { |
| 450 public: | 450 public: |
| 451 FindInPageNotificationObserver(AutomationProvider* automation, | 451 FindInPageNotificationObserver(AutomationProvider* automation, |
| 452 TabContents* parent_tab, | 452 TabContents* parent_tab, |
| (...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1023 private: | 1023 private: |
| 1024 NotificationRegistrar registrar_; | 1024 NotificationRegistrar registrar_; |
| 1025 AutomationProvider* automation_; | 1025 AutomationProvider* automation_; |
| 1026 IPC::Message* reply_message_; | 1026 IPC::Message* reply_message_; |
| 1027 | 1027 |
| 1028 DISALLOW_COPY_AND_ASSIGN(RendererProcessClosedObserver); | 1028 DISALLOW_COPY_AND_ASSIGN(RendererProcessClosedObserver); |
| 1029 }; | 1029 }; |
| 1030 | 1030 |
| 1031 | 1031 |
| 1032 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ | 1032 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ |
| OLD | NEW |