| 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 // HACK: we need this #define in place before npapi.h is included for | 5 // HACK: we need this #define in place before npapi.h is included for |
| 6 // plugins to work. However, all sorts of headers include npapi.h, so | 6 // plugins to work. However, all sorts of headers include npapi.h, so |
| 7 // the only way to be certain the define is in place is to put it | 7 // the only way to be certain the define is in place is to put it |
| 8 // here. You might ask, "Why not set it in npapi.h directly, or in | 8 // here. You might ask, "Why not set it in npapi.h directly, or in |
| 9 // this directory's SConscript, then?" but it turns out this define | 9 // this directory's SConscript, then?" but it turns out this define |
| 10 // makes npapi.h include Xlib.h, which in turn defines a ton of symbols | 10 // makes npapi.h include Xlib.h, which in turn defines a ton of symbols |
| 11 // like None and Status, causing conflicts with the aforementioned | 11 // like None and Status, causing conflicts with the aforementioned |
| 12 // many headers that include npapi.h. Ugh. | 12 // many headers that include npapi.h. Ugh. |
| 13 // See also webplugin_delegate_impl.cc. | 13 // See also webplugin_delegate_impl.cc. |
| 14 #define MOZ_X11 1 | 14 #define MOZ_X11 1 |
| 15 | 15 |
| 16 #include "config.h" | 16 #include "config.h" |
| 17 | 17 |
| 18 #include "webkit/glue/plugins/plugin_host.h" | 18 #include "webkit/glue/plugins/plugin_host.h" |
| 19 | 19 |
| 20 #include "base/file_util.h" | 20 #include "base/file_util.h" |
| 21 #include "base/logging.h" | 21 #include "base/logging.h" |
| 22 #include "base/scoped_ptr.h" | 22 #include "base/scoped_ptr.h" |
| 23 #include "base/string_piece.h" | 23 #include "base/string_piece.h" |
| 24 #include "base/string_util.h" | 24 #include "base/string_util.h" |
| 25 #include "base/sys_string_conversions.h" | 25 #include "base/sys_string_conversions.h" |
| 26 #include "net/base/net_util.h" | 26 #include "net/base/net_util.h" |
| 27 #include "webkit/default_plugin/default_plugin_shared.h" | 27 #include "webkit/default_plugin/default_plugin_shared.h" |
| 28 #include "webkit/glue/glue_util.h" | 28 #include "webkit/glue/glue_util.h" |
| 29 #include "webkit/glue/webplugin.h" | 29 #include "webkit/glue/webplugininfo.h" |
| 30 #include "webkit/glue/webkit_glue.h" | 30 #include "webkit/glue/webkit_glue.h" |
| 31 #include "webkit/glue/plugins/plugin_instance.h" | 31 #include "webkit/glue/plugins/plugin_instance.h" |
| 32 #include "webkit/glue/plugins/plugin_lib.h" | 32 #include "webkit/glue/plugins/plugin_lib.h" |
| 33 #include "webkit/glue/plugins/plugin_list.h" | 33 #include "webkit/glue/plugins/plugin_list.h" |
| 34 #include "webkit/glue/plugins/plugin_stream_url.h" | 34 #include "webkit/glue/plugins/plugin_stream_url.h" |
| 35 #include "third_party/npapi/bindings/npruntime.h" | 35 #include "third_party/npapi/bindings/npruntime.h" |
| 36 | 36 |
| 37 | 37 |
| 38 namespace NPAPI | 38 namespace NPAPI |
| 39 { | 39 { |
| (...skipping 869 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 909 void NPN_PluginThreadAsyncCall(NPP id, | 909 void NPN_PluginThreadAsyncCall(NPP id, |
| 910 void (*func)(void *), | 910 void (*func)(void *), |
| 911 void *userData) { | 911 void *userData) { |
| 912 scoped_refptr<NPAPI::PluginInstance> plugin = FindInstance(id); | 912 scoped_refptr<NPAPI::PluginInstance> plugin = FindInstance(id); |
| 913 if (plugin) { | 913 if (plugin) { |
| 914 plugin->PluginThreadAsyncCall(func, userData); | 914 plugin->PluginThreadAsyncCall(func, userData); |
| 915 } | 915 } |
| 916 } | 916 } |
| 917 | 917 |
| 918 } // extern "C" | 918 } // extern "C" |
| OLD | NEW |