| 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 "base/callback.h" | 7 #include "base/callback.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/trace_event.h" | 10 #include "base/trace_event.h" |
| (...skipping 1215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1226 | 1226 |
| 1227 automation_server_->Send( | 1227 automation_server_->Send( |
| 1228 new AutomationMsg_SetPageFontSize(0, tab_handle_, font_size)); | 1228 new AutomationMsg_SetPageFontSize(0, tab_handle_, font_size)); |
| 1229 } | 1229 } |
| 1230 | 1230 |
| 1231 void ChromeFrameAutomationClient::RemoveBrowsingData(int remove_mask) { | 1231 void ChromeFrameAutomationClient::RemoveBrowsingData(int remove_mask) { |
| 1232 automation_server_->Send( | 1232 automation_server_->Send( |
| 1233 new AutomationMsg_RemoveBrowsingData(0, remove_mask)); | 1233 new AutomationMsg_RemoveBrowsingData(0, remove_mask)); |
| 1234 } | 1234 } |
| 1235 | 1235 |
| 1236 void ChromeFrameAutomationClient::RunUnloadHandlers(HWND notification_window, |
| 1237 int notification_message) { |
| 1238 automation_server_->Send( |
| 1239 new AutomationMsg_RunUnloadHandlers(0, tab_handle_, notification_window, |
| 1240 notification_message)); |
| 1241 } |
| 1242 |
| 1236 ////////////////////////////////////////////////////////////////////////// | 1243 ////////////////////////////////////////////////////////////////////////// |
| 1237 // PluginUrlRequestDelegate implementation. | 1244 // PluginUrlRequestDelegate implementation. |
| 1238 // Forward network related responses to Chrome. | 1245 // Forward network related responses to Chrome. |
| 1239 | 1246 |
| 1240 void ChromeFrameAutomationClient::OnResponseStarted(int request_id, | 1247 void ChromeFrameAutomationClient::OnResponseStarted(int request_id, |
| 1241 const char* mime_type, const char* headers, int size, | 1248 const char* mime_type, const char* headers, int size, |
| 1242 base::Time last_modified, const std::string& redirect_url, | 1249 base::Time last_modified, const std::string& redirect_url, |
| 1243 int redirect_status) { | 1250 int redirect_status) { |
| 1244 const IPC::AutomationURLResponse response = { | 1251 const IPC::AutomationURLResponse response = { |
| 1245 mime_type, | 1252 mime_type, |
| (...skipping 18 matching lines...) Expand all Loading... |
| 1264 const URLRequestStatus& status) { | 1271 const URLRequestStatus& status) { |
| 1265 automation_server_->Send(new AutomationMsg_RequestEnd(0, tab_->handle(), | 1272 automation_server_->Send(new AutomationMsg_RequestEnd(0, tab_->handle(), |
| 1266 request_id, status)); | 1273 request_id, status)); |
| 1267 } | 1274 } |
| 1268 | 1275 |
| 1269 void ChromeFrameAutomationClient::OnCookiesRetrieved(bool success, | 1276 void ChromeFrameAutomationClient::OnCookiesRetrieved(bool success, |
| 1270 const GURL& url, const std::string& cookie_string, int cookie_id) { | 1277 const GURL& url, const std::string& cookie_string, int cookie_id) { |
| 1271 automation_server_->Send(new AutomationMsg_GetCookiesHostResponse(0, | 1278 automation_server_->Send(new AutomationMsg_GetCookiesHostResponse(0, |
| 1272 tab_->handle(), success, url, cookie_string, cookie_id)); | 1279 tab_->handle(), success, url, cookie_string, cookie_id)); |
| 1273 } | 1280 } |
| OLD | NEW |