OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_util.h" | 5 #include "content/plugin/npobject_util.h" |
6 | 6 |
7 #include "base/string_util.h" | 7 #include "base/string_util.h" |
8 #include "chrome/plugin/npobject_proxy.h" | |
9 #include "chrome/plugin/plugin_channel_base.h" | |
10 #include "content/common/plugin_messages.h" | 8 #include "content/common/plugin_messages.h" |
| 9 #include "content/plugin/npobject_proxy.h" |
| 10 #include "content/plugin/plugin_channel_base.h" |
11 #include "third_party/npapi/bindings/nphostapi.h" | 11 #include "third_party/npapi/bindings/nphostapi.h" |
12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebBindings.h" | 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebBindings.h" |
13 #include "webkit/plugins/npapi/plugin_host.h" | 13 #include "webkit/plugins/npapi/plugin_host.h" |
14 #include "webkit/glue/webkit_glue.h" | 14 #include "webkit/glue/webkit_glue.h" |
15 | 15 |
16 using WebKit::WebBindings; | 16 using WebKit::WebBindings; |
17 | 17 |
18 // true if the current process is a plugin process, false if it's a renderer | 18 // true if the current process is a plugin process, false if it's a renderer |
19 // process. | 19 // process. |
20 static bool g_plugin_process; | 20 static bool g_plugin_process; |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 result->type = NPVariantType_Object; | 264 result->type = NPVariantType_Object; |
265 result->value.objectValue = npobject_base->GetUnderlyingNPObject(); | 265 result->value.objectValue = npobject_base->GetUnderlyingNPObject(); |
266 WebBindings::retainObject(result->value.objectValue); | 266 WebBindings::retainObject(result->value.objectValue); |
267 break; | 267 break; |
268 } | 268 } |
269 default: | 269 default: |
270 NOTREACHED(); | 270 NOTREACHED(); |
271 } | 271 } |
272 return true; | 272 return true; |
273 } | 273 } |
OLD | NEW |