| 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 // Called when the inital set of tabs has finished loading. | 110 // Called when the inital set of tabs has finished loading. |
| 111 // Call SetExpectedTabCount(0) to set this to true immediately. | 111 // Call SetExpectedTabCount(0) to set this to true immediately. |
| 112 void OnInitialTabLoadsComplete(); | 112 void OnInitialTabLoadsComplete(); |
| 113 | 113 |
| 114 // Called when the ChromeOS network library has finished its first update. | 114 // Called when the ChromeOS network library has finished its first update. |
| 115 void OnNetworkLibraryInit(); | 115 void OnNetworkLibraryInit(); |
| 116 | 116 |
| 117 // Called when the chromeos WebUI login is ready. | 117 // Called when the chromeos WebUI login is ready. |
| 118 void OnLoginWebuiReady(); | 118 void OnLoginWebuiReady(); |
| 119 | 119 |
| 120 // Checks all of the initial load conditions, then sends the |
| 121 // InitialLoadsComplete message over the automation channel. |
| 122 void SendInitialLoadMessage(); |
| 123 |
| 120 // Get the index of a particular NavigationController object | 124 // Get the index of a particular NavigationController object |
| 121 // in the given parent window. This method uses | 125 // in the given parent window. This method uses |
| 122 // TabStrip::GetIndexForNavigationController to get the index. | 126 // TabStrip::GetIndexForNavigationController to get the index. |
| 123 int GetIndexForNavigationController( | 127 int GetIndexForNavigationController( |
| 124 const content::NavigationController* controller, | 128 const content::NavigationController* controller, |
| 125 const Browser* parent) const; | 129 const Browser* parent) const; |
| 126 | 130 |
| 127 // Add or remove a non-owning reference to a tab's LoginHandler. This is for | 131 // Add or remove a non-owning reference to a tab's LoginHandler. This is for |
| 128 // when a login prompt is shown for HTTP/FTP authentication. | 132 // when a login prompt is shown for HTTP/FTP authentication. |
| 129 // TODO(mpcomplete): The login handling is a fairly special purpose feature. | 133 // TODO(mpcomplete): The login handling is a fairly special purpose feature. |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 417 std::string channel_id_; | 421 std::string channel_id_; |
| 418 | 422 |
| 419 // Trace data that has been collected but not flushed to the automation | 423 // Trace data that has been collected but not flushed to the automation |
| 420 // client. | 424 // client. |
| 421 TracingData tracing_data_; | 425 TracingData tracing_data_; |
| 422 | 426 |
| 423 DISALLOW_COPY_AND_ASSIGN(AutomationProvider); | 427 DISALLOW_COPY_AND_ASSIGN(AutomationProvider); |
| 424 }; | 428 }; |
| 425 | 429 |
| 426 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_H_ | 430 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_H_ |
| OLD | NEW |