OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
149 } | 149 } |
150 | 150 |
151 #if defined(OS_WIN) && !defined(USE_AURA) | 151 #if defined(OS_WIN) && !defined(USE_AURA) |
152 // Adds the external tab passed in to the tab tracker. | 152 // Adds the external tab passed in to the tab tracker. |
153 bool AddExternalTab(ExternalTabContainer* external_tab); | 153 bool AddExternalTab(ExternalTabContainer* external_tab); |
154 #endif | 154 #endif |
155 | 155 |
156 // Get the DictionaryValue equivalent for a download item. Caller owns the | 156 // Get the DictionaryValue equivalent for a download item. Caller owns the |
157 // DictionaryValue. | 157 // DictionaryValue. |
158 base::DictionaryValue* GetDictionaryFromDownloadItem( | 158 base::DictionaryValue* GetDictionaryFromDownloadItem( |
159 const content::DownloadItem* download); | 159 const content::DownloadItem* download, |
160 Profile* profile); | |
Randy Smith (Not in Mondays)
2012/08/02 17:52:17
If you did this in response to my earlier comments
benjhayden
2012/08/13 15:08:09
Done.
| |
160 | 161 |
161 protected: | 162 protected: |
162 friend struct content::BrowserThread::DeleteOnThread< | 163 friend struct content::BrowserThread::DeleteOnThread< |
163 content::BrowserThread::UI>; | 164 content::BrowserThread::UI>; |
164 friend class base::DeleteHelper<AutomationProvider>; | 165 friend class base::DeleteHelper<AutomationProvider>; |
165 virtual ~AutomationProvider(); | 166 virtual ~AutomationProvider(); |
166 | 167 |
167 // Helper function to find the browser window that contains a given | 168 // Helper function to find the browser window that contains a given |
168 // NavigationController and activate that tab. | 169 // NavigationController and activate that tab. |
169 // Returns the Browser if found. | 170 // Returns the Browser if found. |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
366 std::string channel_id_; | 367 std::string channel_id_; |
367 | 368 |
368 // Trace data that has been collected but not flushed to the automation | 369 // Trace data that has been collected but not flushed to the automation |
369 // client. | 370 // client. |
370 TracingData tracing_data_; | 371 TracingData tracing_data_; |
371 | 372 |
372 DISALLOW_COPY_AND_ASSIGN(AutomationProvider); | 373 DISALLOW_COPY_AND_ASSIGN(AutomationProvider); |
373 }; | 374 }; |
374 | 375 |
375 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_H_ | 376 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_H_ |
OLD | NEW |