| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/renderer/webplugin_delegate_proxy.h" | 5 #include "chrome/renderer/webplugin_delegate_proxy.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "app/gfx/blit.h" | 9 #include "app/gfx/blit.h" |
| 10 #include "app/gfx/canvas.h" | 10 #include "app/gfx/canvas.h" |
| (...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 344 | 344 |
| 345 void WebPluginDelegateProxy::DidManualLoadFail() { | 345 void WebPluginDelegateProxy::DidManualLoadFail() { |
| 346 Send(new PluginMsg_DidManualLoadFail(instance_id_)); | 346 Send(new PluginMsg_DidManualLoadFail(instance_id_)); |
| 347 } | 347 } |
| 348 | 348 |
| 349 void WebPluginDelegateProxy::InstallMissingPlugin() { | 349 void WebPluginDelegateProxy::InstallMissingPlugin() { |
| 350 Send(new PluginMsg_InstallMissingPlugin(instance_id_)); | 350 Send(new PluginMsg_InstallMissingPlugin(instance_id_)); |
| 351 } | 351 } |
| 352 | 352 |
| 353 void WebPluginDelegateProxy::OnMessageReceived(const IPC::Message& msg) { | 353 void WebPluginDelegateProxy::OnMessageReceived(const IPC::Message& msg) { |
| 354 child_process_logging::ScopedActiveURLSetter url_setter(page_url_); | 354 child_process_logging::SetActiveURL(page_url_); |
| 355 | 355 |
| 356 IPC_BEGIN_MESSAGE_MAP(WebPluginDelegateProxy, msg) | 356 IPC_BEGIN_MESSAGE_MAP(WebPluginDelegateProxy, msg) |
| 357 IPC_MESSAGE_HANDLER(PluginHostMsg_SetWindow, OnSetWindow) | 357 IPC_MESSAGE_HANDLER(PluginHostMsg_SetWindow, OnSetWindow) |
| 358 #if defined(OS_WIN) | 358 #if defined(OS_WIN) |
| 359 IPC_MESSAGE_HANDLER(PluginHostMsg_SetWindowlessPumpEvent, | 359 IPC_MESSAGE_HANDLER(PluginHostMsg_SetWindowlessPumpEvent, |
| 360 OnSetWindowlessPumpEvent) | 360 OnSetWindowlessPumpEvent) |
| 361 #endif | 361 #endif |
| 362 IPC_MESSAGE_HANDLER(PluginHostMsg_CancelResource, OnCancelResource) | 362 IPC_MESSAGE_HANDLER(PluginHostMsg_CancelResource, OnCancelResource) |
| 363 IPC_MESSAGE_HANDLER(PluginHostMsg_InvalidateRect, OnInvalidateRect) | 363 IPC_MESSAGE_HANDLER(PluginHostMsg_InvalidateRect, OnInvalidateRect) |
| 364 IPC_MESSAGE_HANDLER(PluginHostMsg_GetWindowScriptNPObject, | 364 IPC_MESSAGE_HANDLER(PluginHostMsg_GetWindowScriptNPObject, |
| (...skipping 737 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1102 intptr_t existing_stream, bool notify_needed, intptr_t notify_data) { | 1102 intptr_t existing_stream, bool notify_needed, intptr_t notify_data) { |
| 1103 plugin_->InitiateHTTPRangeRequest(url.c_str(), range_info.c_str(), | 1103 plugin_->InitiateHTTPRangeRequest(url.c_str(), range_info.c_str(), |
| 1104 existing_stream, notify_needed, | 1104 existing_stream, notify_needed, |
| 1105 notify_data); | 1105 notify_data); |
| 1106 } | 1106 } |
| 1107 | 1107 |
| 1108 void WebPluginDelegateProxy::OnDeferResourceLoading(int resource_id, | 1108 void WebPluginDelegateProxy::OnDeferResourceLoading(int resource_id, |
| 1109 bool defer) { | 1109 bool defer) { |
| 1110 plugin_->SetDeferResourceLoading(resource_id, defer); | 1110 plugin_->SetDeferResourceLoading(resource_id, defer); |
| 1111 } | 1111 } |
| OLD | NEW |