| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 void SignalAppLaunch(const std::string& version_string); | 176 void SignalAppLaunch(const std::string& version_string); |
| 177 void SignalInitialLoads(); | 177 void SignalInitialLoads(); |
| 178 // load_time is how long, in ms, the tab contents took to load. | 178 // load_time is how long, in ms, the tab contents took to load. |
| 179 void SignalNewTabUITab(int load_time); | 179 void SignalNewTabUITab(int load_time); |
| 180 | 180 |
| 181 // Set whether or not running the save page as... command show prompt the | 181 // Set whether or not running the save page as... command show prompt the |
| 182 // user for a download path. Returns true if the message is successfully | 182 // user for a download path. Returns true if the message is successfully |
| 183 // sent. | 183 // sent. |
| 184 bool SavePackageShouldPromptUser(bool should_prompt) WARN_UNUSED_RESULT; | 184 bool SavePackageShouldPromptUser(bool should_prompt) WARN_UNUSED_RESULT; |
| 185 | 185 |
| 186 // Installs the extension crx. Returns the ExtensionProxy for the | 186 // Installs the extension crx. If |with_ui| is true an install confirmation |
| 187 // installed extension, or NULL on failure. | 187 // and notification UI is shown, otherwise the install is silent. Returns the |
| 188 // ExtensionProxy for the installed extension, or NULL on failure. |
| 188 // Note: Overinstalls and downgrades will return NULL. | 189 // Note: Overinstalls and downgrades will return NULL. |
| 189 scoped_refptr<ExtensionProxy> InstallExtension(const FilePath& crx_file); | 190 scoped_refptr<ExtensionProxy> InstallExtension(const FilePath& crx_file, |
| 191 bool with_ui); |
| 190 | 192 |
| 191 // Asserts that the next extension test result is true. | 193 // Asserts that the next extension test result is true. |
| 192 void EnsureExtensionTestResult(); | 194 void EnsureExtensionTestResult(); |
| 193 | 195 |
| 194 // Gets a list of all enabled extensions' base directories. | 196 // Gets a list of all enabled extensions' base directories. |
| 195 // Returns true on success. | 197 // Returns true on success. |
| 196 bool GetEnabledExtensions(std::vector<FilePath>* extension_directories); | 198 bool GetEnabledExtensions(std::vector<FilePath>* extension_directories); |
| 197 | 199 |
| 200 // Resets to the default theme. Returns true on success. |
| 201 bool ResetToDefaultTheme(); |
| 202 |
| 198 #if defined(OS_CHROMEOS) | 203 #if defined(OS_CHROMEOS) |
| 199 // Logs in through the Chrome OS login wizard with given |username| | 204 // Logs in through the Chrome OS login wizard with given |username| |
| 200 // and |password|. Returns true on success. | 205 // and |password|. Returns true on success. |
| 201 bool LoginWithUserAndPass(const std::string& username, | 206 bool LoginWithUserAndPass(const std::string& username, |
| 202 const std::string& password) WARN_UNUSED_RESULT; | 207 const std::string& password) WARN_UNUSED_RESULT; |
| 203 #endif | 208 #endif |
| 204 | 209 |
| 205 // Returns the ID of the automation IPC channel, so that it can be | 210 // Returns the ID of the automation IPC channel, so that it can be |
| 206 // passed to the app as a launch parameter. | 211 // passed to the app as a launch parameter. |
| 207 const std::string& channel_id() const { return channel_id_; } | 212 const std::string& channel_id() const { return channel_id_; } |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 | 287 |
| 283 // Delay to let the browser execute the command. | 288 // Delay to let the browser execute the command. |
| 284 base::TimeDelta command_execution_timeout_; | 289 base::TimeDelta command_execution_timeout_; |
| 285 | 290 |
| 286 PlatformThreadId listener_thread_id_; | 291 PlatformThreadId listener_thread_id_; |
| 287 | 292 |
| 288 DISALLOW_COPY_AND_ASSIGN(AutomationProxy); | 293 DISALLOW_COPY_AND_ASSIGN(AutomationProxy); |
| 289 }; | 294 }; |
| 290 | 295 |
| 291 #endif // CHROME_TEST_AUTOMATION_AUTOMATION_PROXY_H__ | 296 #endif // CHROME_TEST_AUTOMATION_AUTOMATION_PROXY_H__ |
| OLD | NEW |