| 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 // This implements a browser-side endpoint for UI automation activity. | 5 // This implements a browser-side endpoint for UI automation activity. |
| 6 // The client-side endpoint is implemented by AutomationProxy. | 6 // The client-side endpoint is implemented by AutomationProxy. |
| 7 // The entire lifetime of this object should be contained within that of | 7 // The entire lifetime of this object should be contained within that of |
| 8 // the BrowserProcess, and in particular the NotificationService that's | 8 // the BrowserProcess, and in particular the NotificationService that's |
| 9 // hung off of it. | 9 // hung off of it. |
| 10 | 10 |
| (...skipping 811 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 822 const std::string& target); | 822 const std::string& target); |
| 823 | 823 |
| 824 // Determine if the message from the external host represents a browser | 824 // Determine if the message from the external host represents a browser |
| 825 // event, and if so dispatch it. | 825 // event, and if so dispatch it. |
| 826 bool InterceptBrowserEventMessageFromExternalHost(const std::string& message, | 826 bool InterceptBrowserEventMessageFromExternalHost(const std::string& message, |
| 827 const std::string& origin, | 827 const std::string& origin, |
| 828 const std::string& target); | 828 const std::string& target); |
| 829 | 829 |
| 830 void OnBrowserMoved(int handle); | 830 void OnBrowserMoved(int handle); |
| 831 | 831 |
| 832 void OnRunUnloadHandlers(int handle, gfx::NativeWindow notification_window, |
| 833 int notification_message); |
| 834 |
| 832 ExternalTabContainer* GetExternalTabForHandle(int handle); | 835 ExternalTabContainer* GetExternalTabForHandle(int handle); |
| 833 #endif // defined(OS_WIN) | 836 #endif // defined(OS_WIN) |
| 834 | 837 |
| 835 typedef ObserverList<NotificationObserver> NotificationObserverList; | 838 typedef ObserverList<NotificationObserver> NotificationObserverList; |
| 836 typedef std::map<NavigationController*, LoginHandler*> LoginHandlerMap; | 839 typedef std::map<NavigationController*, LoginHandler*> LoginHandlerMap; |
| 837 typedef std::map<int, ExtensionPortContainer*> PortContainerMap; | 840 typedef std::map<int, ExtensionPortContainer*> PortContainerMap; |
| 838 | 841 |
| 839 scoped_ptr<IPC::ChannelProxy> channel_; | 842 scoped_ptr<IPC::ChannelProxy> channel_; |
| 840 scoped_ptr<InitialLoadObserver> initial_load_observer_; | 843 scoped_ptr<InitialLoadObserver> initial_load_observer_; |
| 841 scoped_ptr<NotificationObserver> new_tab_ui_load_observer_; | 844 scoped_ptr<NotificationObserver> new_tab_ui_load_observer_; |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 907 virtual void Observe(NotificationType type, | 910 virtual void Observe(NotificationType type, |
| 908 const NotificationSource& source, | 911 const NotificationSource& source, |
| 909 const NotificationDetails& details); | 912 const NotificationDetails& details); |
| 910 | 913 |
| 911 void OnRemoveProvider(); // Called via PostTask | 914 void OnRemoveProvider(); // Called via PostTask |
| 912 | 915 |
| 913 NotificationRegistrar registrar_; | 916 NotificationRegistrar registrar_; |
| 914 }; | 917 }; |
| 915 | 918 |
| 916 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_H_ | 919 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_H_ |
| OLD | NEW |