| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/plugin/webplugin_delegate_stub.h" | 5 #include "chrome/plugin/webplugin_delegate_stub.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/time.h" | 8 #include "base/time.h" |
| 9 #include "chrome/common/chrome_switches.h" | 9 #include "chrome/common/chrome_switches.h" |
| 10 #include "chrome/common/gfx/emf.h" | 10 #include "chrome/common/gfx/emf.h" |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 IPC_MESSAGE_HANDLER(PluginMsg_UpdateGeometry, OnUpdateGeometry) | 88 IPC_MESSAGE_HANDLER(PluginMsg_UpdateGeometry, OnUpdateGeometry) |
| 89 IPC_MESSAGE_HANDLER(PluginMsg_SendJavaScriptStream, | 89 IPC_MESSAGE_HANDLER(PluginMsg_SendJavaScriptStream, |
| 90 OnSendJavaScriptStream) | 90 OnSendJavaScriptStream) |
| 91 IPC_MESSAGE_HANDLER(PluginMsg_DidReceiveManualResponse, | 91 IPC_MESSAGE_HANDLER(PluginMsg_DidReceiveManualResponse, |
| 92 OnDidReceiveManualResponse) | 92 OnDidReceiveManualResponse) |
| 93 IPC_MESSAGE_HANDLER(PluginMsg_DidReceiveManualData, OnDidReceiveManualData) | 93 IPC_MESSAGE_HANDLER(PluginMsg_DidReceiveManualData, OnDidReceiveManualData) |
| 94 IPC_MESSAGE_HANDLER(PluginMsg_DidFinishManualLoading, | 94 IPC_MESSAGE_HANDLER(PluginMsg_DidFinishManualLoading, |
| 95 OnDidFinishManualLoading) | 95 OnDidFinishManualLoading) |
| 96 IPC_MESSAGE_HANDLER(PluginMsg_DidManualLoadFail, OnDidManualLoadFail) | 96 IPC_MESSAGE_HANDLER(PluginMsg_DidManualLoadFail, OnDidManualLoadFail) |
| 97 IPC_MESSAGE_HANDLER(PluginMsg_InstallMissingPlugin, OnInstallMissingPlugin) | 97 IPC_MESSAGE_HANDLER(PluginMsg_InstallMissingPlugin, OnInstallMissingPlugin) |
| 98 IPC_MESSAGE_HANDLER(PluginMsg_HandleURLRequestReply, OnHandleURLRequestReply
) | 98 IPC_MESSAGE_HANDLER(PluginMsg_HandleURLRequestReply, |
| 99 OnHandleURLRequestReply) |
| 99 IPC_MESSAGE_HANDLER(PluginMsg_URLRequestRouted, OnURLRequestRouted) | 100 IPC_MESSAGE_HANDLER(PluginMsg_URLRequestRouted, OnURLRequestRouted) |
| 100 IPC_MESSAGE_UNHANDLED_ERROR() | 101 IPC_MESSAGE_UNHANDLED_ERROR() |
| 101 IPC_END_MESSAGE_MAP() | 102 IPC_END_MESSAGE_MAP() |
| 102 | 103 |
| 103 Release(); | 104 Release(); |
| 104 } | 105 } |
| 105 | 106 |
| 106 bool WebPluginDelegateStub::Send(IPC::Message* msg) { | 107 bool WebPluginDelegateStub::Send(IPC::Message* msg) { |
| 107 return channel_->Send(msg); | 108 return channel_->Send(msg); |
| 108 } | 109 } |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 params.stream); | 335 params.stream); |
| 335 webplugin_->OnResourceCreated(params.resource_id, resource_client); | 336 webplugin_->OnResourceCreated(params.resource_id, resource_client); |
| 336 } | 337 } |
| 337 | 338 |
| 338 void WebPluginDelegateStub::OnURLRequestRouted(const std::string& url, | 339 void WebPluginDelegateStub::OnURLRequestRouted(const std::string& url, |
| 339 bool notify_needed, | 340 bool notify_needed, |
| 340 HANDLE notify_data) { | 341 HANDLE notify_data) { |
| 341 delegate_->URLRequestRouted(url, notify_needed, notify_data); | 342 delegate_->URLRequestRouted(url, notify_needed, notify_data); |
| 342 } | 343 } |
| 343 | 344 |
| OLD | NEW |