| 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 virtual IPC::Channel::Mode GetChannelMode(bool use_named_interface); | 103 virtual IPC::Channel::Mode GetChannelMode(bool use_named_interface); |
| 104 | 104 |
| 105 // Sets the number of tabs that we expect; when this number of tabs has | 105 // Sets the number of tabs that we expect; when this number of tabs has |
| 106 // loaded, an AutomationMsg_InitialLoadsComplete message is sent. | 106 // loaded, an AutomationMsg_InitialLoadsComplete message is sent. |
| 107 void SetExpectedTabCount(size_t expected_tabs); | 107 void SetExpectedTabCount(size_t expected_tabs); |
| 108 | 108 |
| 109 // Called when the inital set of tabs has finished loading. | 109 // Called when the inital set of tabs has finished loading. |
| 110 // Call SetExpectedTabCount(0) to set this to true immediately. | 110 // Call SetExpectedTabCount(0) to set this to true immediately. |
| 111 void OnInitialTabLoadsComplete(); | 111 void OnInitialTabLoadsComplete(); |
| 112 | 112 |
| 113 // Called when the ChromeOS network library has finished its first update. | |
| 114 void OnNetworkLibraryInit(); | |
| 115 | |
| 116 // Called when the chromeos WebUI OOBE/Login is ready. | 113 // Called when the chromeos WebUI OOBE/Login is ready. |
| 117 void OnOOBEWebuiReady(); | 114 void OnOOBEWebuiReady(); |
| 118 | 115 |
| 119 // Checks all of the initial load conditions, then sends the | 116 // Checks all of the initial load conditions, then sends the |
| 120 // InitialLoadsComplete message over the automation channel. | 117 // InitialLoadsComplete message over the automation channel. |
| 121 void SendInitialLoadMessage(); | 118 void SendInitialLoadMessage(); |
| 122 | 119 |
| 123 // Call this before calling InitializeChannel. If called, send the | 120 // Call this before calling InitializeChannel. If called, send the |
| 124 // InitialLoadsComplete message immediately when the automation channel is | 121 // InitialLoadsComplete message immediately when the automation channel is |
| 125 // connected, without waiting for the initial load conditions to be met. | 122 // connected, without waiting for the initial load conditions to be met. |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 341 | 338 |
| 342 // True iff we should enable observers that check for initial load conditions. | 339 // True iff we should enable observers that check for initial load conditions. |
| 343 bool use_initial_load_observers_; | 340 bool use_initial_load_observers_; |
| 344 | 341 |
| 345 // True iff connected to an AutomationProxy. | 342 // True iff connected to an AutomationProxy. |
| 346 bool is_connected_; | 343 bool is_connected_; |
| 347 | 344 |
| 348 // True iff browser finished loading initial set of tabs. | 345 // True iff browser finished loading initial set of tabs. |
| 349 bool initial_tab_loads_complete_; | 346 bool initial_tab_loads_complete_; |
| 350 | 347 |
| 351 // True iff the Chrome OS network library finished initialization. | |
| 352 bool network_library_initialized_; | |
| 353 | |
| 354 // True iff ChromeOS webui login ui is ready. | 348 // True iff ChromeOS webui login ui is ready. |
| 355 bool login_webui_ready_; | 349 bool login_webui_ready_; |
| 356 | 350 |
| 357 // ID of automation channel. | 351 // ID of automation channel. |
| 358 std::string channel_id_; | 352 std::string channel_id_; |
| 359 | 353 |
| 360 // Trace data that has been collected but not flushed to the automation | 354 // Trace data that has been collected but not flushed to the automation |
| 361 // client. | 355 // client. |
| 362 TracingData tracing_data_; | 356 TracingData tracing_data_; |
| 363 | 357 |
| 364 DISALLOW_COPY_AND_ASSIGN(AutomationProvider); | 358 DISALLOW_COPY_AND_ASSIGN(AutomationProvider); |
| 365 }; | 359 }; |
| 366 | 360 |
| 367 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_H_ | 361 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_H_ |
| OLD | NEW |