| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 |
| 11 #ifndef CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_H_ | 11 #ifndef CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_H_ |
| 12 #define CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_H_ | 12 #define CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_H_ |
| 13 | 13 |
| 14 #include <map> | 14 #include <map> |
| 15 #include <string> | 15 #include <string> |
| 16 #include <vector> | 16 #include <vector> |
| 17 | 17 |
| 18 #include "chrome/browser/automation/automation_browser_tracker.h" | 18 #include "chrome/browser/automation/automation_browser_tracker.h" |
| 19 #include "chrome/browser/automation/automation_constrained_window_tracker.h" | 19 #include "chrome/browser/automation/automation_constrained_window_tracker.h" |
| 20 #include "chrome/browser/automation/automation_tab_tracker.h" | 20 #include "chrome/browser/automation/automation_tab_tracker.h" |
| 21 #include "chrome/browser/automation/automation_window_tracker.h" | 21 #include "chrome/browser/automation/automation_window_tracker.h" |
| 22 #include "chrome/browser/automation/automation_autocomplete_edit_tracker.h" | 22 #include "chrome/browser/automation/automation_autocomplete_edit_tracker.h" |
| 23 #include "chrome/browser/browser_list.h" | 23 #include "chrome/browser/browser_list.h" |
| 24 #include "chrome/browser/history/history.h" | 24 #include "chrome/browser/history/history.h" |
| 25 #include "chrome/common/ipc_channel_proxy.h" | 25 #include "chrome/common/ipc_channel_proxy.h" |
| 26 #include "chrome/common/ipc_message.h" | 26 #include "chrome/common/ipc_message.h" |
| 27 #include "chrome/common/notification_observer.h" | 27 #include "chrome/common/notification_observer.h" |
| 28 #include "chrome/views/event.h" | 28 #include "chrome/views/event.h" |
| 29 #include "webkit/glue/find_in_page_request.h" |
| 29 | 30 |
| 30 class LoginHandler; | 31 class LoginHandler; |
| 31 class NavigationControllerRestoredObserver; | 32 class NavigationControllerRestoredObserver; |
| 32 | 33 |
| 33 class AutomationProvider : public base::RefCounted<AutomationProvider>, | 34 class AutomationProvider : public base::RefCounted<AutomationProvider>, |
| 34 public IPC::Channel::Listener, | 35 public IPC::Channel::Listener, |
| 35 public IPC::Message::Sender { | 36 public IPC::Message::Sender { |
| 36 public: | 37 public: |
| 37 explicit AutomationProvider(Profile* profile); | 38 explicit AutomationProvider(Profile* profile); |
| 38 virtual ~AutomationProvider(); | 39 virtual ~AutomationProvider(); |
| (...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 438 | 439 |
| 439 private: | 440 private: |
| 440 virtual void Observe(NotificationType type, | 441 virtual void Observe(NotificationType type, |
| 441 const NotificationSource& source, | 442 const NotificationSource& source, |
| 442 const NotificationDetails& details); | 443 const NotificationDetails& details); |
| 443 | 444 |
| 444 void OnRemoveProvider(); // Called via PostTask | 445 void OnRemoveProvider(); // Called via PostTask |
| 445 }; | 446 }; |
| 446 | 447 |
| 447 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_H_ | 448 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_H_ |
| OLD | NEW |