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 // 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 | 48 |
49 class AutofillProfile; | 49 class AutofillProfile; |
50 class AutomationBrowserTracker; | 50 class AutomationBrowserTracker; |
51 class AutomationExtensionTracker; | 51 class AutomationExtensionTracker; |
52 class AutomationOmniboxTracker; | 52 class AutomationOmniboxTracker; |
53 class AutomationResourceMessageFilter; | 53 class AutomationResourceMessageFilter; |
54 class AutomationTabTracker; | 54 class AutomationTabTracker; |
55 class AutomationWindowTracker; | 55 class AutomationWindowTracker; |
56 class Browser; | 56 class Browser; |
57 class CreditCard; | 57 class CreditCard; |
58 class DictionaryValue; | |
59 class DownloadItem; | 58 class DownloadItem; |
60 class Extension; | 59 class Extension; |
61 class ExtensionPortContainer; | 60 class ExtensionPortContainer; |
62 class ExtensionTestResultNotificationObserver; | 61 class ExtensionTestResultNotificationObserver; |
63 class ExternalTabContainer; | 62 class ExternalTabContainer; |
64 class FilePath; | 63 class FilePath; |
65 class InitialLoadObserver; | 64 class InitialLoadObserver; |
66 class ListValue; | |
67 class LoginHandler; | 65 class LoginHandler; |
68 class MetricEventDurationObserver; | 66 class MetricEventDurationObserver; |
69 class NavigationController; | 67 class NavigationController; |
70 class NavigationControllerRestoredObserver; | 68 class NavigationControllerRestoredObserver; |
71 class Profile; | 69 class Profile; |
72 class RenderViewHost; | 70 class RenderViewHost; |
73 class TabContents; | 71 class TabContents; |
74 struct AutocompleteMatchData; | 72 struct AutocompleteMatchData; |
75 | 73 |
| 74 namespace base { |
| 75 class DictionaryValue; |
| 76 } |
| 77 |
76 namespace gfx { | 78 namespace gfx { |
77 class Point; | 79 class Point; |
78 } | 80 } |
79 | 81 |
80 class AutomationProvider | 82 class AutomationProvider |
81 : public IPC::Channel::Listener, | 83 : public IPC::Channel::Listener, |
82 public IPC::Message::Sender, | 84 public IPC::Message::Sender, |
83 public base::SupportsWeakPtr<AutomationProvider>, | 85 public base::SupportsWeakPtr<AutomationProvider>, |
84 public base::RefCountedThreadSafe<AutomationProvider, | 86 public base::RefCountedThreadSafe<AutomationProvider, |
85 BrowserThread::DeleteOnUIThread> { | 87 BrowserThread::DeleteOnUIThread> { |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 // the handle is simply returned. | 144 // the handle is simply returned. |
143 int AddExtension(const Extension* extension); | 145 int AddExtension(const Extension* extension); |
144 | 146 |
145 #if defined(OS_WIN) | 147 #if defined(OS_WIN) |
146 // Adds the external tab passed in to the tab tracker. | 148 // Adds the external tab passed in to the tab tracker. |
147 bool AddExternalTab(ExternalTabContainer* external_tab); | 149 bool AddExternalTab(ExternalTabContainer* external_tab); |
148 #endif | 150 #endif |
149 | 151 |
150 // Get the DictionaryValue equivalent for a download item. Caller owns the | 152 // Get the DictionaryValue equivalent for a download item. Caller owns the |
151 // DictionaryValue. | 153 // DictionaryValue. |
152 DictionaryValue* GetDictionaryFromDownloadItem(const DownloadItem* download); | 154 base::DictionaryValue* GetDictionaryFromDownloadItem( |
| 155 const DownloadItem* download); |
153 | 156 |
154 protected: | 157 protected: |
155 friend struct BrowserThread::DeleteOnThread<BrowserThread::UI>; | 158 friend struct BrowserThread::DeleteOnThread<BrowserThread::UI>; |
156 friend class DeleteTask<AutomationProvider>; | 159 friend class DeleteTask<AutomationProvider>; |
157 virtual ~AutomationProvider(); | 160 virtual ~AutomationProvider(); |
158 | 161 |
159 // Helper function to find the browser window that contains a given | 162 // Helper function to find the browser window that contains a given |
160 // NavigationController and activate that tab. | 163 // NavigationController and activate that tab. |
161 // Returns the Browser if found. | 164 // Returns the Browser if found. |
162 Browser* FindAndActivateTab(NavigationController* contents); | 165 Browser* FindAndActivateTab(NavigationController* contents); |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
384 // True iff the Chrome OS network library finished initialization. | 387 // True iff the Chrome OS network library finished initialization. |
385 bool network_library_initialized_; | 388 bool network_library_initialized_; |
386 | 389 |
387 // ID of automation channel. | 390 // ID of automation channel. |
388 std::string channel_id_; | 391 std::string channel_id_; |
389 | 392 |
390 DISALLOW_COPY_AND_ASSIGN(AutomationProvider); | 393 DISALLOW_COPY_AND_ASSIGN(AutomationProvider); |
391 }; | 394 }; |
392 | 395 |
393 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_H_ | 396 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_H_ |
OLD | NEW |