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 #include "chrome_frame/chrome_frame_automation.h" | 5 #include "chrome_frame/chrome_frame_automation.h" |
6 | 6 |
7 #include "app/app_switches.h" | 7 #include "app/app_switches.h" |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/debug/trace_event.h" | 11 #include "base/debug/trace_event.h" |
12 #include "base/file_util.h" | 12 #include "base/file_util.h" |
13 #include "base/file_version_info.h" | 13 #include "base/file_version_info.h" |
14 #include "base/lazy_instance.h" | 14 #include "base/lazy_instance.h" |
15 #include "base/lock.h" | 15 #include "base/lock.h" |
16 #include "base/logging.h" | 16 #include "base/logging.h" |
17 #include "base/path_service.h" | 17 #include "base/path_service.h" |
18 #include "base/process_util.h" | 18 #include "base/process_util.h" |
19 #include "base/string_util.h" | 19 #include "base/string_util.h" |
| 20 #include "base/synchronization/waitable_event.h" |
20 #include "base/sys_info.h" | 21 #include "base/sys_info.h" |
21 #include "base/utf_string_conversions.h" | 22 #include "base/utf_string_conversions.h" |
22 #include "base/waitable_event.h" | |
23 #include "chrome/app/client_util.h" | 23 #include "chrome/app/client_util.h" |
24 #include "chrome/common/chrome_constants.h" | 24 #include "chrome/common/chrome_constants.h" |
25 #include "chrome/common/chrome_switches.h" | 25 #include "chrome/common/chrome_switches.h" |
26 #include "chrome/test/automation/tab_proxy.h" | 26 #include "chrome/test/automation/tab_proxy.h" |
27 #include "chrome_frame/chrome_launcher_utils.h" | 27 #include "chrome_frame/chrome_launcher_utils.h" |
28 #include "chrome_frame/crash_reporting/crash_metrics.h" | 28 #include "chrome_frame/crash_reporting/crash_metrics.h" |
29 #include "chrome_frame/custom_sync_call_context.h" | 29 #include "chrome_frame/custom_sync_call_context.h" |
30 #include "chrome_frame/navigation_constraints.h" | 30 #include "chrome_frame/navigation_constraints.h" |
31 #include "chrome_frame/simple_resource_loader.h" | 31 #include "chrome_frame/simple_resource_loader.h" |
32 #include "chrome_frame/utils.h" | 32 #include "chrome_frame/utils.h" |
(...skipping 1424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1457 const URLRequestStatus& status) { | 1457 const URLRequestStatus& status) { |
1458 automation_server_->Send(new AutomationMsg_RequestEnd( | 1458 automation_server_->Send(new AutomationMsg_RequestEnd( |
1459 tab_->handle(), request_id, status)); | 1459 tab_->handle(), request_id, status)); |
1460 } | 1460 } |
1461 | 1461 |
1462 void ChromeFrameAutomationClient::OnCookiesRetrieved(bool success, | 1462 void ChromeFrameAutomationClient::OnCookiesRetrieved(bool success, |
1463 const GURL& url, const std::string& cookie_string, int cookie_id) { | 1463 const GURL& url, const std::string& cookie_string, int cookie_id) { |
1464 automation_server_->Send(new AutomationMsg_GetCookiesHostResponse( | 1464 automation_server_->Send(new AutomationMsg_GetCookiesHostResponse( |
1465 tab_->handle(), success, url, cookie_string, cookie_id)); | 1465 tab_->handle(), success, url, cookie_string, cookie_id)); |
1466 } | 1466 } |
OLD | NEW |