| Index: chrome/plugin/npobject_stub.cc
|
| ===================================================================
|
| --- chrome/plugin/npobject_stub.cc (revision 20179)
|
| +++ chrome/plugin/npobject_stub.cc (working copy)
|
| @@ -4,7 +4,6 @@
|
|
|
| #include "chrome/plugin/npobject_stub.h"
|
|
|
| -#include "chrome/common/child_process_logging.h"
|
| #include "chrome/common/plugin_messages.h"
|
| #include "chrome/plugin/npobject_util.h"
|
| #include "chrome/plugin/plugin_channel_base.h"
|
| @@ -16,15 +15,13 @@
|
| NPObject* npobject,
|
| PluginChannelBase* channel,
|
| int route_id,
|
| - base::WaitableEvent* modal_dialog_event,
|
| - const GURL& page_url)
|
| + base::WaitableEvent* modal_dialog_event)
|
| : npobject_(npobject),
|
| channel_(channel),
|
| route_id_(route_id),
|
| valid_(true),
|
| web_plugin_delegate_proxy_(NULL),
|
| - modal_dialog_event_(modal_dialog_event),
|
| - page_url_(page_url) {
|
| + modal_dialog_event_(modal_dialog_event) {
|
| channel_->AddRoute(route_id, this, true);
|
|
|
| // We retain the object just as PluginHost does if everything was in-process.
|
| @@ -45,8 +42,6 @@
|
| }
|
|
|
| void NPObjectStub::OnMessageReceived(const IPC::Message& msg) {
|
| - child_process_logging::ScopedActiveURLSetter url_setter(page_url_);
|
| -
|
| if (!valid_) {
|
| if (msg.is_sync()) {
|
| // The object could be garbage because the frame has gone away, so
|
| @@ -122,8 +117,7 @@
|
| NPVariant* args_var = new NPVariant[arg_count];
|
| for (int i = 0; i < arg_count; ++i) {
|
| CreateNPVariant(
|
| - args[i], local_channel, &(args_var[i]), modal_dialog_event_,
|
| - page_url_);
|
| + args[i], local_channel, &(args_var[i]), modal_dialog_event_);
|
| }
|
|
|
| if (is_default) {
|
| @@ -159,8 +153,7 @@
|
| delete[] args_var;
|
|
|
| CreateNPVariantParam(
|
| - result_var, local_channel, &result_param, true, modal_dialog_event_,
|
| - page_url_);
|
| + result_var, local_channel, &result_param, true, modal_dialog_event_);
|
| NPObjectMsg_Invoke::WriteReplyParams(reply_msg, result_param, return_value);
|
| local_channel->Send(reply_msg);
|
| }
|
| @@ -197,7 +190,7 @@
|
| }
|
|
|
| CreateNPVariantParam(
|
| - result_var, channel_, property, true, modal_dialog_event_, page_url_);
|
| + result_var, channel_, property, true, modal_dialog_event_);
|
| }
|
|
|
| void NPObjectStub::OnSetProperty(const NPIdentifier_Param& name,
|
| @@ -207,8 +200,7 @@
|
| VOID_TO_NPVARIANT(result_var);
|
| NPIdentifier id = CreateNPIdentifier(name);
|
| NPVariant property_var;
|
| - CreateNPVariant(
|
| - property, channel_, &property_var, modal_dialog_event_, page_url_);
|
| + CreateNPVariant(property, channel_, &property_var, modal_dialog_event_);
|
|
|
| if (IsPluginProcess()) {
|
| if (npobject_->_class->setProperty) {
|
| @@ -289,7 +281,7 @@
|
| NPVariant* args_var = new NPVariant[arg_count];
|
| for (int i = 0; i < arg_count; ++i) {
|
| CreateNPVariant(
|
| - args[i], local_channel, &(args_var[i]), modal_dialog_event_, page_url_);
|
| + args[i], local_channel, &(args_var[i]), modal_dialog_event_);
|
| }
|
|
|
| if (IsPluginProcess()) {
|
| @@ -310,8 +302,7 @@
|
| delete[] args_var;
|
|
|
| CreateNPVariantParam(
|
| - result_var, local_channel, &result_param, true, modal_dialog_event_,
|
| - page_url_);
|
| + result_var, local_channel, &result_param, true, modal_dialog_event_);
|
| NPObjectMsg_Invoke::WriteReplyParams(reply_msg, result_param, return_value);
|
| local_channel->Send(reply_msg);
|
| }
|
| @@ -340,8 +331,7 @@
|
|
|
| NPVariant_Param result_param;
|
| CreateNPVariantParam(
|
| - result_var, local_channel, &result_param, true, modal_dialog_event_,
|
| - page_url_);
|
| + result_var, local_channel, &result_param, true, modal_dialog_event_);
|
| NPObjectMsg_Evaluate::WriteReplyParams(reply_msg, result_param, return_value);
|
| local_channel->Send(reply_msg);
|
| }
|
|
|