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/npobject_proxy.h" | 5 #include "content/plugin/npobject_proxy.h" |
6 | 6 |
7 #include "chrome/plugin/npobject_util.h" | |
8 #include "chrome/plugin/plugin_channel.h" | |
9 #include "content/common/plugin_messages.h" | 7 #include "content/common/plugin_messages.h" |
| 8 #include "content/plugin/npobject_util.h" |
| 9 #include "content/plugin/plugin_channel.h" |
10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebBindings.h" | 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebBindings.h" |
11 #include "webkit/glue/webkit_glue.h" | 11 #include "webkit/glue/webkit_glue.h" |
12 #include "webkit/plugins/npapi/plugin_instance.h" | 12 #include "webkit/plugins/npapi/plugin_instance.h" |
13 | 13 |
14 using WebKit::WebBindings; | 14 using WebKit::WebBindings; |
15 | 15 |
16 struct NPObjectWrapper { | 16 struct NPObjectWrapper { |
17 NPObject object; | 17 NPObject object; |
18 NPObjectProxy* proxy; | 18 NPObjectProxy* proxy; |
19 }; | 19 }; |
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
491 proxy->Send(msg); | 491 proxy->Send(msg); |
492 // Send may delete proxy. | 492 // Send may delete proxy. |
493 proxy = NULL; | 493 proxy = NULL; |
494 if (!result) | 494 if (!result) |
495 return false; | 495 return false; |
496 | 496 |
497 CreateNPVariant( | 497 CreateNPVariant( |
498 result_param, channel.get(), result_var, containing_window, page_url); | 498 result_param, channel.get(), result_var, containing_window, page_url); |
499 return true; | 499 return true; |
500 } | 500 } |
OLD | NEW |