| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #ifndef CHROME_TEST_AUTOMATION_AUTOMATION_PROXY_H__ | 5 #ifndef CHROME_TEST_AUTOMATION_AUTOMATION_PROXY_H__ |
| 6 #define CHROME_TEST_AUTOMATION_AUTOMATION_PROXY_H__ | 6 #define CHROME_TEST_AUTOMATION_AUTOMATION_PROXY_H__ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "app/message_box_flags.h" | 10 #include "app/message_box_flags.h" |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 void SignalAppLaunch(const std::string& version_string); | 174 void SignalAppLaunch(const std::string& version_string); |
| 175 void SignalInitialLoads(); | 175 void SignalInitialLoads(); |
| 176 // load_time is how long, in ms, the tab contents took to load. | 176 // load_time is how long, in ms, the tab contents took to load. |
| 177 void SignalNewTabUITab(int load_time); | 177 void SignalNewTabUITab(int load_time); |
| 178 | 178 |
| 179 // Set whether or not running the save page as... command show prompt the | 179 // Set whether or not running the save page as... command show prompt the |
| 180 // user for a download path. Returns true if the message is successfully | 180 // user for a download path. Returns true if the message is successfully |
| 181 // sent. | 181 // sent. |
| 182 bool SavePackageShouldPromptUser(bool should_prompt); | 182 bool SavePackageShouldPromptUser(bool should_prompt); |
| 183 | 183 |
| 184 // Configure extension automation mode. When extension automation | |
| 185 // mode is turned on, the automation host can overtake extension API calls | |
| 186 // e.g. to make UI tests for extensions easier to write. Returns true if | |
| 187 // the message is successfully sent. | |
| 188 // | |
| 189 // The parameter can take the following types of values: | |
| 190 // a) An empty list to turn off extension automation. | |
| 191 // b) A list with one item, "*", to turn extension automation on for all | |
| 192 // functions. | |
| 193 // c) A list with one or more items which are the names of Chrome Extension | |
| 194 // API functions that should be forwarded over the automation interface. | |
| 195 // Other functions will continue to be fulfilled as normal. This lets you | |
| 196 // write tests where some functionality continues to function as normal, | |
| 197 // and other functionality is mocked out by the test. | |
| 198 bool SetEnableExtensionAutomation( | |
| 199 const std::vector<std::string>& functions_enabled); | |
| 200 | |
| 201 // Returns the ID of the automation IPC channel, so that it can be | 184 // Returns the ID of the automation IPC channel, so that it can be |
| 202 // passed to the app as a launch parameter. | 185 // passed to the app as a launch parameter. |
| 203 const std::string& channel_id() const { return channel_id_; } | 186 const std::string& channel_id() const { return channel_id_; } |
| 204 | 187 |
| 205 #if defined(OS_POSIX) | 188 #if defined(OS_POSIX) |
| 206 base::file_handle_mapping_vector fds_to_map() const; | 189 base::file_handle_mapping_vector fds_to_map() const; |
| 207 #endif | 190 #endif |
| 208 | 191 |
| 209 // AutomationMessageSender implementations. | 192 // AutomationMessageSender implementations. |
| 210 virtual bool Send(IPC::Message* message); | 193 virtual bool Send(IPC::Message* message); |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 // a version resource. | 257 // a version resource. |
| 275 bool perform_version_check_; | 258 bool perform_version_check_; |
| 276 | 259 |
| 277 // Delay to let the browser execute the command. | 260 // Delay to let the browser execute the command. |
| 278 base::TimeDelta command_execution_timeout_; | 261 base::TimeDelta command_execution_timeout_; |
| 279 | 262 |
| 280 DISALLOW_COPY_AND_ASSIGN(AutomationProxy); | 263 DISALLOW_COPY_AND_ASSIGN(AutomationProxy); |
| 281 }; | 264 }; |
| 282 | 265 |
| 283 #endif // CHROME_TEST_AUTOMATION_AUTOMATION_PROXY_H__ | 266 #endif // CHROME_TEST_AUTOMATION_AUTOMATION_PROXY_H__ |
| OLD | NEW |