OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/common/npobject_util.h" | 5 #include "content/common_child/npobject_util.h" |
6 | 6 |
7 #include "base/string_util.h" | 7 #include "base/string_util.h" |
8 #include "content/common/np_channel_base.h" | 8 #include "content/common_child/np_channel_base.h" |
9 #include "content/common/npobject_proxy.h" | 9 #include "content/common_child/npobject_proxy.h" |
10 #include "content/common/plugin_messages.h" | 10 #include "content/common_child/plugin_messages.h" |
| 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebBindings.h" |
11 #include "third_party/npapi/bindings/nphostapi.h" | 12 #include "third_party/npapi/bindings/nphostapi.h" |
12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebBindings.h" | 13 #include "webkit/glue/webkit_glue.h" |
13 #include "webkit/plugins/npapi/plugin_host.h" | 14 #include "webkit/plugins/npapi/plugin_host.h" |
14 #include "webkit/glue/webkit_glue.h" | |
15 | 15 |
16 using WebKit::WebBindings; | 16 using WebKit::WebBindings; |
17 | 17 |
18 namespace content { | 18 namespace content { |
19 | 19 |
20 // true if the current process is a plugin process, false otherwise. | 20 // true if the current process is a plugin process, false otherwise. |
21 static bool g_plugin_process; | 21 static bool g_plugin_process; |
22 | 22 |
23 namespace { | 23 namespace { |
24 // The next 7 functions are called by the plugin code when it's using the | 24 // The next 7 functions are called by the plugin code when it's using the |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 WebBindings::retainObject(result->value.objectValue); | 283 WebBindings::retainObject(result->value.objectValue); |
284 break; | 284 break; |
285 } | 285 } |
286 default: | 286 default: |
287 NOTREACHED(); | 287 NOTREACHED(); |
288 } | 288 } |
289 return true; | 289 return true; |
290 } | 290 } |
291 | 291 |
292 } // namespace content | 292 } // namespace content |
OLD | NEW |