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_proxy.h" | 5 #include "content/child/npapi/npobject_proxy.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 "third_party/WebKit/public/web/WebBindings.h" | 10 #include "third_party/WebKit/public/web/WebBindings.h" |
11 | 11 |
12 #if defined(ENABLE_PLUGINS) | 12 #if defined(ENABLE_PLUGINS) |
13 #include "content/child/npapi/plugin_instance.h" | 13 #include "content/child/npapi/plugin_instance.h" |
14 #endif | 14 #endif |
15 | 15 |
16 using WebKit::WebBindings; | 16 using blink::WebBindings; |
17 | 17 |
18 namespace content { | 18 namespace content { |
19 | 19 |
20 struct NPObjectWrapper { | 20 struct NPObjectWrapper { |
21 NPObject object; | 21 NPObject object; |
22 NPObjectProxy* proxy; | 22 NPObjectProxy* proxy; |
23 }; | 23 }; |
24 | 24 |
25 NPClass NPObjectProxy::npclass_proxy_ = { | 25 NPClass NPObjectProxy::npclass_proxy_ = { |
26 NP_CLASS_STRUCT_VERSION, | 26 NP_CLASS_STRUCT_VERSION, |
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
500 proxy = NULL; | 500 proxy = NULL; |
501 if (!result) | 501 if (!result) |
502 return false; | 502 return false; |
503 | 503 |
504 CreateNPVariant( | 504 CreateNPVariant( |
505 result_param, channel.get(), result_var, render_view_id, page_url); | 505 result_param, channel.get(), result_var, render_view_id, page_url); |
506 return true; | 506 return true; |
507 } | 507 } |
508 | 508 |
509 } // namespace content | 509 } // namespace content |
OLD | NEW |