summaryrefslogtreecommitdiffstats
path: root/chrome_frame/chrome_frame_automation.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome_frame/chrome_frame_automation.cc')
-rw-r--r--chrome_frame/chrome_frame_automation.cc29
1 files changed, 29 insertions, 0 deletions
diff --git a/chrome_frame/chrome_frame_automation.cc b/chrome_frame/chrome_frame_automation.cc
index bf11755..295bb48 100644
--- a/chrome_frame/chrome_frame_automation.cc
+++ b/chrome_frame/chrome_frame_automation.cc
@@ -1012,6 +1012,28 @@ bool ChromeFrameAutomationClient::ProcessUrlRequestMessage(TabProxy* tab,
AutomationMsg_DownloadRequestInHost::Dispatch(&msg, url_fetcher_,
&PluginUrlRequestManager::DownloadUrlRequestInHost);
break;
+
+ case AutomationMsg_GetCookiesFromHost::ID: {
+ if (invoke) {
+ // If the PluginUrlRequestManager does not handle the GetCookies
+ // request then fall through to the original handling which sends
+ // the request to the delegate.
+ invoke = AutomationMsg_GetCookiesFromHost::Dispatch(&msg, url_fetcher_,
+ &PluginUrlRequestManager::GetCookiesFromHost);
+ }
+ break;
+ }
+
+ case AutomationMsg_SetCookieAsync::ID: {
+ if (invoke) {
+ // If the PluginUrlRequestManager does not handle the SetCookies
+ // request then fall through to the original handling which sends
+ // the request to the delegate.
+ invoke = AutomationMsg_SetCookieAsync::Dispatch(&msg, url_fetcher_,
+ &PluginUrlRequestManager::SetCookiesInHost);
+ }
+ break;
+ }
}
if (!invoke) {
@@ -1282,3 +1304,10 @@ void ChromeFrameAutomationClient::OnResponseEnd(int request_id,
request_id, status));
}
+bool ChromeFrameAutomationClient::SendIPCMessage(IPC::Message* msg) {
+ if (automation_server_)
+ return automation_server_->Send(msg);
+ return false;
+}
+
+