| 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 #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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 int timeout_ms, | 215 int timeout_ms, |
| 216 std::string* response) WARN_UNUSED_RESULT; | 216 std::string* response) WARN_UNUSED_RESULT; |
| 217 | 217 |
| 218 #if defined(OS_CHROMEOS) | 218 #if defined(OS_CHROMEOS) |
| 219 // Logs in through the Chrome OS login wizard with given |username| | 219 // Logs in through the Chrome OS login wizard with given |username| |
| 220 // and |password|. Returns true on success. | 220 // and |password|. Returns true on success. |
| 221 bool LoginWithUserAndPass(const std::string& username, | 221 bool LoginWithUserAndPass(const std::string& username, |
| 222 const std::string& password) WARN_UNUSED_RESULT; | 222 const std::string& password) WARN_UNUSED_RESULT; |
| 223 #endif | 223 #endif |
| 224 | 224 |
| 225 #if defined(OS_POSIX) | 225 IPC::SyncChannel* channel(); |
| 226 base::file_handle_mapping_vector fds_to_map() const; | |
| 227 #endif | |
| 228 | 226 |
| 229 // AutomationMessageSender implementation. | 227 // AutomationMessageSender implementation. |
| 230 virtual bool Send(IPC::Message* message) WARN_UNUSED_RESULT; | 228 virtual bool Send(IPC::Message* message) WARN_UNUSED_RESULT; |
| 231 virtual bool Send(IPC::Message* message, int timeout_ms) WARN_UNUSED_RESULT; | 229 virtual bool Send(IPC::Message* message, int timeout_ms) WARN_UNUSED_RESULT; |
| 232 | 230 |
| 233 // Wrapper over AutomationHandleTracker::InvalidateHandle. Receives the | 231 // Wrapper over AutomationHandleTracker::InvalidateHandle. Receives the |
| 234 // message from AutomationProxy, unpacks the messages and routes that call to | 232 // message from AutomationProxy, unpacks the messages and routes that call to |
| 235 // the tracker. | 233 // the tracker. |
| 236 virtual void InvalidateHandle(const IPC::Message& message); | 234 virtual void InvalidateHandle(const IPC::Message& message); |
| 237 | 235 |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 | 305 |
| 308 // Delay to let the browser execute the command. | 306 // Delay to let the browser execute the command. |
| 309 base::TimeDelta action_timeout_; | 307 base::TimeDelta action_timeout_; |
| 310 | 308 |
| 311 base::PlatformThreadId listener_thread_id_; | 309 base::PlatformThreadId listener_thread_id_; |
| 312 | 310 |
| 313 DISALLOW_COPY_AND_ASSIGN(AutomationProxy); | 311 DISALLOW_COPY_AND_ASSIGN(AutomationProxy); |
| 314 }; | 312 }; |
| 315 | 313 |
| 316 #endif // CHROME_TEST_AUTOMATION_AUTOMATION_PROXY_H_ | 314 #endif // CHROME_TEST_AUTOMATION_AUTOMATION_PROXY_H_ |
| OLD | NEW |