| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "content/child/npapi/npobject_stub.h" | 5 #include "content/child/npapi/npobject_stub.h" |
| 6 | 6 |
| 7 #include "content/child/npapi/np_channel_base.h" | 7 #include "content/child/npapi/np_channel_base.h" |
| 8 #include "content/child/npapi/npobject_util.h" | 8 #include "content/child/npapi/npobject_util.h" |
| 9 #include "content/child/plugin_messages.h" | 9 #include "content/child/plugin_messages.h" |
| 10 #include "content/public/common/content_client.h" | 10 #include "content/public/common/content_client.h" |
| 11 #include "content/public/common/content_switches.h" | 11 #include "content/public/common/content_switches.h" |
| 12 #include "third_party/WebKit/public/web/WebBindings.h" | 12 #include "third_party/WebKit/public/web/WebBindings.h" |
| 13 #include "third_party/npapi/bindings/npapi.h" | 13 #include "third_party/npapi/bindings/npapi.h" |
| 14 #include "third_party/npapi/bindings/npruntime.h" | 14 #include "third_party/npapi/bindings/npruntime.h" |
| 15 | 15 |
| 16 #if defined(OS_WIN) | 16 #if defined(OS_WIN) |
| 17 #include "base/command_line.h" | 17 #include "base/command_line.h" |
| 18 #include "content/common/plugin_constants_win.h" | 18 #include "content/common/plugin_constants_win.h" |
| 19 #endif | 19 #endif |
| 20 | 20 |
| 21 using WebKit::WebBindings; | 21 using blink::WebBindings; |
| 22 | 22 |
| 23 namespace content { | 23 namespace content { |
| 24 | 24 |
| 25 NPObjectStub::NPObjectStub( | 25 NPObjectStub::NPObjectStub( |
| 26 NPObject* npobject, | 26 NPObject* npobject, |
| 27 NPChannelBase* channel, | 27 NPChannelBase* channel, |
| 28 int route_id, | 28 int route_id, |
| 29 int render_view_id, | 29 int render_view_id, |
| 30 const GURL& page_url) | 30 const GURL& page_url) |
| 31 : npobject_(npobject), | 31 : npobject_(npobject), |
| (...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 414 channel_.get(), | 414 channel_.get(), |
| 415 &result_param, | 415 &result_param, |
| 416 true, | 416 true, |
| 417 render_view_id_, | 417 render_view_id_, |
| 418 page_url_); | 418 page_url_); |
| 419 NPObjectMsg_Evaluate::WriteReplyParams(reply_msg, result_param, return_value); | 419 NPObjectMsg_Evaluate::WriteReplyParams(reply_msg, result_param, return_value); |
| 420 channel_->Send(reply_msg); | 420 channel_->Send(reply_msg); |
| 421 } | 421 } |
| 422 | 422 |
| 423 } // namespace content | 423 } // namespace content |
| OLD | NEW |