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 |
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 #pragma once | 13 #pragma once |
14 | 14 |
15 #include <map> | 15 #include <map> |
16 #include <string> | 16 #include <string> |
17 #include <vector> | 17 #include <vector> |
18 | 18 |
19 #include "base/basictypes.h" | 19 #include "base/basictypes.h" |
| 20 #include "base/observer_list.h" |
20 #include "base/scoped_ptr.h" | 21 #include "base/scoped_ptr.h" |
21 #include "chrome/browser/autofill/field_types.h" | 22 #include "chrome/browser/autofill/field_types.h" |
22 #include "chrome/browser/browser_list.h" | 23 #include "chrome/browser/cancelable_request.h" |
23 #include "chrome/browser/history/history.h" | |
24 #include "chrome/browser/tab_contents/navigation_entry.h" | 24 #include "chrome/browser/tab_contents/navigation_entry.h" |
25 #include "chrome/common/content_settings.h" | 25 #include "chrome/common/content_settings.h" |
26 #include "chrome/common/notification_registrar.h" | 26 #include "chrome/common/notification_observer.h" |
27 #include "chrome/test/automation/automation_constants.h" | 27 #include "chrome/test/automation/automation_constants.h" |
28 #include "ipc/ipc_message.h" | 28 #include "ipc/ipc_message.h" |
29 #include "ipc/ipc_channel.h" | 29 #include "ipc/ipc_channel.h" |
30 #if defined(OS_WIN) | 30 #if defined(OS_WIN) |
| 31 #include "gfx/native_widget_types.h" |
31 #include "views/event.h" | 32 #include "views/event.h" |
32 #endif // defined(OS_WIN) | 33 #endif // defined(OS_WIN) |
33 | 34 |
34 struct AutomationMsg_Find_Params; | 35 struct AutomationMsg_Find_Params; |
35 class PopupMenuWaiter; | 36 class PopupMenuWaiter; |
36 | 37 |
37 namespace IPC { | 38 namespace IPC { |
38 struct Reposition_Params; | 39 struct Reposition_Params; |
39 struct ExternalTabSettings; | 40 struct ExternalTabSettings; |
40 class ChannelProxy; | 41 class ChannelProxy; |
41 } | 42 } |
42 | 43 |
43 class AutoFillProfile; | 44 class AutoFillProfile; |
44 class AutomationAutocompleteEditTracker; | 45 class AutomationAutocompleteEditTracker; |
45 class AutomationBrowserTracker; | 46 class AutomationBrowserTracker; |
46 class AutomationExtensionTracker; | 47 class AutomationExtensionTracker; |
47 class AutomationResourceMessageFilter; | 48 class AutomationResourceMessageFilter; |
48 class AutomationTabTracker; | 49 class AutomationTabTracker; |
49 class AutomationWindowTracker; | 50 class AutomationWindowTracker; |
| 51 class Browser; |
50 class CreditCard; | 52 class CreditCard; |
51 class DictionaryValue; | 53 class DictionaryValue; |
| 54 class DownloadItem; |
52 class Extension; | 55 class Extension; |
53 class ExtensionPortContainer; | 56 class ExtensionPortContainer; |
54 class ExtensionTestResultNotificationObserver; | 57 class ExtensionTestResultNotificationObserver; |
55 class ExternalTabContainer; | 58 class ExternalTabContainer; |
| 59 class FilePath; |
56 class InitialLoadObserver; | 60 class InitialLoadObserver; |
57 class ListValue; | 61 class ListValue; |
58 class LoginHandler; | 62 class LoginHandler; |
59 class MetricEventDurationObserver; | 63 class MetricEventDurationObserver; |
60 class NavigationController; | 64 class NavigationController; |
61 class NavigationControllerRestoredObserver; | 65 class NavigationControllerRestoredObserver; |
62 class Profile; | 66 class Profile; |
| 67 class RenderViewHost; |
| 68 class TabContents; |
63 struct AutocompleteMatchData; | 69 struct AutocompleteMatchData; |
64 | 70 |
65 namespace gfx { | 71 namespace gfx { |
66 class Point; | 72 class Point; |
67 } | 73 } |
68 | 74 |
69 class AutomationProvider : public base::RefCounted<AutomationProvider>, | 75 class AutomationProvider : public base::RefCounted<AutomationProvider>, |
70 public IPC::Channel::Listener, | 76 public IPC::Channel::Listener, |
71 public IPC::Message::Sender { | 77 public IPC::Message::Sender { |
72 public: | 78 public: |
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
379 extension_test_result_observer_; | 385 extension_test_result_observer_; |
380 scoped_ptr<AutomationExtensionTracker> extension_tracker_; | 386 scoped_ptr<AutomationExtensionTracker> extension_tracker_; |
381 PortContainerMap port_containers_; | 387 PortContainerMap port_containers_; |
382 scoped_refptr<AutomationResourceMessageFilter> | 388 scoped_refptr<AutomationResourceMessageFilter> |
383 automation_resource_message_filter_; | 389 automation_resource_message_filter_; |
384 | 390 |
385 DISALLOW_COPY_AND_ASSIGN(AutomationProvider); | 391 DISALLOW_COPY_AND_ASSIGN(AutomationProvider); |
386 }; | 392 }; |
387 | 393 |
388 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_H_ | 394 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_H_ |
OLD | NEW |