| 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. If |with_ui| is true an install confirmation | 186 // Installs the extension crx. Returns the ExtensionProxy for the |
| 187 // and notification UI is shown, otherwise the install is silent. Returns the | 187 // installed extension, or NULL on failure. |
| 188 // ExtensionProxy for the installed extension, or NULL on failure. | |
| 189 // Note: Overinstalls and downgrades will return NULL. | 188 // Note: Overinstalls and downgrades will return NULL. |
| 190 scoped_refptr<ExtensionProxy> InstallExtension(const FilePath& crx_file, | 189 scoped_refptr<ExtensionProxy> InstallExtension(const FilePath& crx_file); |
| 191 bool with_ui); | |
| 192 | 190 |
| 193 // Asserts that the next extension test result is true. | 191 // Asserts that the next extension test result is true. |
| 194 void EnsureExtensionTestResult(); | 192 void EnsureExtensionTestResult(); |
| 195 | 193 |
| 196 // Gets a list of all enabled extensions' base directories. | 194 // Gets a list of all enabled extensions' base directories. |
| 197 // Returns true on success. | 195 // Returns true on success. |
| 198 bool GetEnabledExtensions(std::vector<FilePath>* extension_directories); | 196 bool GetEnabledExtensions(std::vector<FilePath>* extension_directories); |
| 199 | 197 |
| 200 // Resets to the default theme. Returns true on success. | |
| 201 bool ResetToDefaultTheme(); | |
| 202 | |
| 203 #if defined(OS_CHROMEOS) | 198 #if defined(OS_CHROMEOS) |
| 204 // Logs in through the Chrome OS login wizard with given |username| | 199 // Logs in through the Chrome OS login wizard with given |username| |
| 205 // and |password|. Returns true on success. | 200 // and |password|. Returns true on success. |
| 206 bool LoginWithUserAndPass(const std::string& username, | 201 bool LoginWithUserAndPass(const std::string& username, |
| 207 const std::string& password) WARN_UNUSED_RESULT; | 202 const std::string& password) WARN_UNUSED_RESULT; |
| 208 #endif | 203 #endif |
| 209 | 204 |
| 210 // Returns the ID of the automation IPC channel, so that it can be | 205 // Returns the ID of the automation IPC channel, so that it can be |
| 211 // passed to the app as a launch parameter. | 206 // passed to the app as a launch parameter. |
| 212 const std::string& channel_id() const { return channel_id_; } | 207 const std::string& channel_id() const { return channel_id_; } |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 | 282 |
| 288 // Delay to let the browser execute the command. | 283 // Delay to let the browser execute the command. |
| 289 base::TimeDelta command_execution_timeout_; | 284 base::TimeDelta command_execution_timeout_; |
| 290 | 285 |
| 291 PlatformThreadId listener_thread_id_; | 286 PlatformThreadId listener_thread_id_; |
| 292 | 287 |
| 293 DISALLOW_COPY_AND_ASSIGN(AutomationProxy); | 288 DISALLOW_COPY_AND_ASSIGN(AutomationProxy); |
| 294 }; | 289 }; |
| 295 | 290 |
| 296 #endif // CHROME_TEST_AUTOMATION_AUTOMATION_PROXY_H__ | 291 #endif // CHROME_TEST_AUTOMATION_AUTOMATION_PROXY_H__ |
| OLD | NEW |