| OLD | NEW |
| 1 // Copyright (c) 2010 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 #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" |
| (...skipping 1434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1446 automation_server_->Send(new AutomationMsg_RequestStarted( | 1446 automation_server_->Send(new AutomationMsg_RequestStarted( |
| 1447 tab_->handle(), request_id, response)); | 1447 tab_->handle(), request_id, response)); |
| 1448 } | 1448 } |
| 1449 | 1449 |
| 1450 void ChromeFrameAutomationClient::OnReadComplete(int request_id, | 1450 void ChromeFrameAutomationClient::OnReadComplete(int request_id, |
| 1451 const std::string& data) { | 1451 const std::string& data) { |
| 1452 automation_server_->Send(new AutomationMsg_RequestData( | 1452 automation_server_->Send(new AutomationMsg_RequestData( |
| 1453 tab_->handle(), request_id, data)); | 1453 tab_->handle(), request_id, data)); |
| 1454 } | 1454 } |
| 1455 | 1455 |
| 1456 void ChromeFrameAutomationClient::OnResponseEnd(int request_id, | 1456 void ChromeFrameAutomationClient::OnResponseEnd( |
| 1457 const URLRequestStatus& status) { | 1457 int request_id, |
| 1458 const net::URLRequestStatus& status) { |
| 1458 automation_server_->Send(new AutomationMsg_RequestEnd( | 1459 automation_server_->Send(new AutomationMsg_RequestEnd( |
| 1459 tab_->handle(), request_id, status)); | 1460 tab_->handle(), request_id, status)); |
| 1460 } | 1461 } |
| 1461 | 1462 |
| 1462 void ChromeFrameAutomationClient::OnCookiesRetrieved(bool success, | 1463 void ChromeFrameAutomationClient::OnCookiesRetrieved(bool success, |
| 1463 const GURL& url, const std::string& cookie_string, int cookie_id) { | 1464 const GURL& url, const std::string& cookie_string, int cookie_id) { |
| 1464 automation_server_->Send(new AutomationMsg_GetCookiesHostResponse( | 1465 automation_server_->Send(new AutomationMsg_GetCookiesHostResponse( |
| 1465 tab_->handle(), success, url, cookie_string, cookie_id)); | 1466 tab_->handle(), success, url, cookie_string, cookie_id)); |
| 1466 } | 1467 } |
| OLD | NEW |