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 #include "chrome/test/automation/automation_proxy.h" | 5 #include "chrome/test/automation/automation_proxy.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/debug/trace_event.h" | 10 #include "base/debug/trace_event.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/process_util.h" | |
14 #include "base/synchronization/waitable_event.h" | 13 #include "base/synchronization/waitable_event.h" |
15 #include "base/threading/platform_thread.h" | 14 #include "base/threading/platform_thread.h" |
16 #include "chrome/common/automation_constants.h" | 15 #include "chrome/common/automation_constants.h" |
17 #include "chrome/common/automation_messages.h" | 16 #include "chrome/common/automation_messages.h" |
18 #include "chrome/common/chrome_version_info.h" | 17 #include "chrome/common/chrome_version_info.h" |
19 #include "chrome/test/automation/automation_json_requests.h" | 18 #include "chrome/test/automation/automation_json_requests.h" |
20 #include "chrome/test/automation/browser_proxy.h" | 19 #include "chrome/test/automation/browser_proxy.h" |
21 #include "chrome/test/automation/tab_proxy.h" | 20 #include "chrome/test/automation/tab_proxy.h" |
22 #include "chrome/test/automation/window_proxy.h" | 21 #include "chrome/test/automation/window_proxy.h" |
23 #include "ipc/ipc_descriptors.h" | 22 #include "ipc/ipc_descriptors.h" |
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
441 } | 440 } |
442 | 441 |
443 bool AutomationProxy::SendJSONRequest(const std::string& request, | 442 bool AutomationProxy::SendJSONRequest(const std::string& request, |
444 int timeout_ms, | 443 int timeout_ms, |
445 std::string* response) { | 444 std::string* response) { |
446 bool result = false; | 445 bool result = false; |
447 if (!SendAutomationJSONRequest(this, request, timeout_ms, response, &result)) | 446 if (!SendAutomationJSONRequest(this, request, timeout_ms, response, &result)) |
448 return false; | 447 return false; |
449 return result; | 448 return result; |
450 } | 449 } |
OLD | NEW |