diff options
author | chase@chromium.org <chase@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-20 23:42:40 +0000 |
---|---|---|
committer | chase@chromium.org <chase@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-20 23:42:40 +0000 |
commit | b6badfa6a538f889025db775662fe61fcb45dc37 (patch) | |
tree | d12fb54a46443e18a9fa9a671392966ba6751202 /webkit/glue | |
parent | e0e75f67163f77051d8f62d5275dbf40627d5398 (diff) | |
download | chromium_src-b6badfa6a538f889025db775662fe61fcb45dc37.zip chromium_src-b6badfa6a538f889025db775662fe61fcb45dc37.tar.gz chromium_src-b6badfa6a538f889025db775662fe61fcb45dc37.tar.bz2 |
Revert "Revert 69755 - Move the NPAPI files from webkit/glue/plugins to webkit/plugins/npapi"
Manually reverting r69766, which was itself a failed
revert of r69755.
BUG=none
TEST=none
TBR=dmaclach@chromium.org
Review URL: http://codereview.chromium.org/5996003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69768 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue')
-rw-r--r-- | webkit/glue/webkit_glue.gypi | 146 | ||||
-rw-r--r-- | webkit/glue/webkit_glue.h | 10 | ||||
-rw-r--r-- | webkit/glue/webkitclient_impl.cc | 10 |
3 files changed, 86 insertions, 80 deletions
diff --git a/webkit/glue/webkit_glue.gypi b/webkit/glue/webkit_glue.gypi index 13545b8..14ca0bb 100644 --- a/webkit/glue/webkit_glue.gypi +++ b/webkit/glue/webkit_glue.gypi @@ -168,6 +168,75 @@ # This list contains all .h, .cc, and .mm files in glue except for # those in the test subdirectory and those with unittest in in their # names. + '../plugins/npapi/carbon_plugin_window_tracker_mac.cc', + '../plugins/npapi/carbon_plugin_window_tracker_mac.h', + '../plugins/npapi/coregraphics_private_symbols_mac.h', + '../plugins/npapi/default_plugin_shared.h', + '../plugins/npapi/gtk_plugin_container.cc', + '../plugins/npapi/gtk_plugin_container.h', + '../plugins/npapi/gtk_plugin_container_manager.cc', + '../plugins/npapi/gtk_plugin_container_manager.h', + '../plugins/npapi/npapi_extension_thunk.cc', + '../plugins/npapi/npapi_extension_thunk.h', + '../plugins/npapi/nphostapi.h', + '../plugins/npapi/plugin_constants_win.cc', + '../plugins/npapi/plugin_constants_win.h', + '../plugins/npapi/plugin_group.cc', + '../plugins/npapi/plugin_group.h', + '../plugins/npapi/plugin_host.cc', + '../plugins/npapi/plugin_host.h', + '../plugins/npapi/plugin_instance.cc', + '../plugins/npapi/plugin_instance.h', + '../plugins/npapi/plugin_instance_mac.mm', + '../plugins/npapi/plugin_lib.cc', + '../plugins/npapi/plugin_lib.h', + '../plugins/npapi/plugin_lib_mac.mm', + '../plugins/npapi/plugin_lib_posix.cc', + '../plugins/npapi/plugin_lib_win.cc', + '../plugins/npapi/plugin_list.cc', + '../plugins/npapi/plugin_list.h', + '../plugins/npapi/plugin_list_mac.mm', + '../plugins/npapi/plugin_list_posix.cc', + '../plugins/npapi/plugin_list_win.cc', + '../plugins/npapi/plugin_stream.cc', + '../plugins/npapi/plugin_stream.h', + '../plugins/npapi/plugin_stream_posix.cc', + '../plugins/npapi/plugin_stream_url.cc', + '../plugins/npapi/plugin_stream_url.h', + '../plugins/npapi/plugin_stream_win.cc', + '../plugins/npapi/plugin_string_stream.cc', + '../plugins/npapi/plugin_string_stream.h', + '../plugins/npapi/plugin_web_event_converter_mac.h', + '../plugins/npapi/plugin_web_event_converter_mac.mm', + '../plugins/npapi/ppb_private.h', + '../plugins/npapi/quickdraw_drawing_manager_mac.cc', + '../plugins/npapi/quickdraw_drawing_manager_mac.h', + '../plugins/npapi/webplugin.cc', + '../plugins/npapi/webplugin.h', + '../plugins/npapi/webplugin_2d_device_delegate.cc', + '../plugins/npapi/webplugin_2d_device_delegate.h', + '../plugins/npapi/webplugin_3d_device_delegate.cc', + '../plugins/npapi/webplugin_3d_device_delegate.h', + '../plugins/npapi/webplugin_accelerated_surface_mac.h', + '../plugins/npapi/webplugin_audio_device_delegate.cc', + '../plugins/npapi/webplugin_audio_device_delegate.h', + '../plugins/npapi/webplugin_delegate.cc', + '../plugins/npapi/webplugin_delegate.h', + '../plugins/npapi/webplugin_delegate_impl.cc', + '../plugins/npapi/webplugin_delegate_impl.h', + '../plugins/npapi/webplugin_delegate_impl_gtk.cc', + '../plugins/npapi/webplugin_delegate_impl_mac.mm', + '../plugins/npapi/webplugin_delegate_impl_win.cc', + '../plugins/npapi/webplugin_file_delegate.cc', + '../plugins/npapi/webplugin_file_delegate.h', + '../plugins/npapi/webplugin_impl.cc', + '../plugins/npapi/webplugin_impl.h', + '../plugins/npapi/webplugin_print_delegate.cc', + '../plugins/npapi/webplugin_print_delegate.h', + '../plugins/npapi/webplugininfo.cc', + '../plugins/npapi/webplugininfo.h', + '../plugins/npapi/webview_plugin.cc', + '../plugins/npapi/webview_plugin.h', '../plugins/plugin_switches.cc', '../plugins/plugin_switches.h', '../plugins/ppapi/common.h', @@ -182,14 +251,14 @@ '../plugins/ppapi/npapi_glue.cc', '../plugins/ppapi/npapi_glue.h', '../plugins/ppapi/plugin_delegate.h', - '../plugins/ppapi/ppapi_plugin_instance.cc', - '../plugins/ppapi/ppapi_plugin_instance.h', - '../plugins/ppapi/ppapi_webplugin_impl.cc', - '../plugins/ppapi/ppapi_webplugin_impl.h', '../plugins/ppapi/plugin_module.cc', '../plugins/ppapi/plugin_module.h', '../plugins/ppapi/plugin_object.cc', '../plugins/ppapi/plugin_object.h', + '../plugins/ppapi/ppapi_plugin_instance.cc', + '../plugins/ppapi/ppapi_plugin_instance.h', + '../plugins/ppapi/ppapi_webplugin_impl.cc', + '../plugins/ppapi/ppapi_webplugin_impl.h', '../plugins/ppapi/ppb_audio_impl.cc', '../plugins/ppapi/ppb_audio_impl.h', '../plugins/ppapi/ppb_buffer_impl.cc', @@ -265,75 +334,6 @@ 'media/web_data_source.cc', 'media/web_data_source.h', 'media/web_video_renderer.h', - 'plugins/carbon_plugin_window_tracker_mac.h', - 'plugins/carbon_plugin_window_tracker_mac.cc', - 'plugins/coregraphics_private_symbols_mac.h', - 'plugins/default_plugin_shared.h', - 'plugins/nphostapi.h', - 'plugins/gtk_plugin_container.h', - 'plugins/gtk_plugin_container.cc', - 'plugins/gtk_plugin_container_manager.h', - 'plugins/gtk_plugin_container_manager.cc', - 'plugins/npapi_extension_thunk.cc', - 'plugins/npapi_extension_thunk.h', - 'plugins/plugin_constants_win.h', - 'plugins/plugin_group.cc', - 'plugins/plugin_group.h', - 'plugins/plugin_host.cc', - 'plugins/plugin_host.h', - 'plugins/plugin_instance.cc', - 'plugins/plugin_instance.h', - 'plugins/plugin_instance_mac.mm', - 'plugins/plugin_lib.cc', - 'plugins/plugin_lib.h', - 'plugins/plugin_lib_mac.mm', - 'plugins/plugin_lib_posix.cc', - 'plugins/plugin_lib_win.cc', - 'plugins/plugin_list.cc', - 'plugins/plugin_list.h', - 'plugins/plugin_list_mac.mm', - 'plugins/plugin_list_posix.cc', - 'plugins/plugin_list_win.cc', - 'plugins/plugin_stream.cc', - 'plugins/plugin_stream.h', - 'plugins/plugin_stream_posix.cc', - 'plugins/plugin_stream_url.cc', - 'plugins/plugin_stream_url.h', - 'plugins/plugin_stream_win.cc', - 'plugins/plugin_string_stream.cc', - 'plugins/plugin_string_stream.h', - 'plugins/plugin_stubs.cc', - 'plugins/plugin_web_event_converter_mac.h', - 'plugins/plugin_web_event_converter_mac.mm', - 'plugins/ppb_private.h', - 'plugins/quickdraw_drawing_manager_mac.h', - 'plugins/quickdraw_drawing_manager_mac.cc', - 'plugins/webview_plugin.cc', - 'plugins/webview_plugin.h', - 'plugins/webplugin.cc', - 'plugins/webplugin.h', - 'plugins/webplugin_audio_device_delegate.cc', - 'plugins/webplugin_audio_device_delegate.h', - 'plugins/webplugin_2d_device_delegate.cc', - 'plugins/webplugin_2d_device_delegate.h', - 'plugins/webplugin_3d_device_delegate.cc', - 'plugins/webplugin_3d_device_delegate.h', - 'plugins/webplugin_accelerated_surface_mac.h', - 'plugins/webplugin_delegate.cc', - 'plugins/webplugin_delegate.h', - 'plugins/webplugin_delegate_impl.cc', - 'plugins/webplugin_delegate_impl.h', - 'plugins/webplugin_delegate_impl_gtk.cc', - 'plugins/webplugin_delegate_impl_mac.mm', - 'plugins/webplugin_delegate_impl_win.cc', - 'plugins/webplugin_file_delegate.cc', - 'plugins/webplugin_file_delegate.h', - 'plugins/webplugin_impl.cc', - 'plugins/webplugin_impl.h', - 'plugins/webplugin_print_delegate.cc', - 'plugins/webplugin_print_delegate.h', - 'plugins/webplugininfo.cc', - 'plugins/webplugininfo.h', 'alt_error_page_resource_fetcher.cc', 'alt_error_page_resource_fetcher.h', 'context_menu.cc', diff --git a/webkit/glue/webkit_glue.h b/webkit/glue/webkit_glue.h index fbb541a..38ea659 100644 --- a/webkit/glue/webkit_glue.h +++ b/webkit/glue/webkit_glue.h @@ -23,7 +23,6 @@ class GURL; class SkBitmap; -struct WebPluginInfo; namespace base { class StringPiece; @@ -39,6 +38,12 @@ class WebString; class WebView; } +namespace webkit { +namespace npapi { +struct WebPluginInfo; +} +} + namespace webkit_glue { @@ -225,7 +230,8 @@ bool GetApplicationDirectory(FilePath* path); bool GetExeDirectory(FilePath* path); // Embedders implement this function to return the list of plugins to Webkit. -void GetPlugins(bool refresh, std::vector<WebPluginInfo>* plugins); +void GetPlugins(bool refresh, + std::vector<webkit::npapi::WebPluginInfo>* plugins); // Returns true if the plugins run in the same process as the renderer, and // false otherwise. diff --git a/webkit/glue/webkitclient_impl.cc b/webkit/glue/webkitclient_impl.cc index 5346181..844aae7 100644 --- a/webkit/glue/webkitclient_impl.cc +++ b/webkit/glue/webkitclient_impl.cc @@ -35,8 +35,8 @@ #include "third_party/WebKit/WebKit/chromium/public/WebVector.h" #include "third_party/WebKit/WebKit/chromium/public/WebURL.h" #include "webkit/glue/media/audio_decoder.h" -#include "webkit/glue/plugins/plugin_instance.h" -#include "webkit/glue/plugins/webplugininfo.h" +#include "webkit/plugins/npapi/plugin_instance.h" +#include "webkit/plugins/npapi/webplugininfo.h" #include "webkit/glue/webkit_glue.h" #include "webkit/glue/websocketstreamhandle_impl.h" #include "webkit/glue/weburlloader_impl.h" @@ -225,18 +225,18 @@ WebString WebKitClientImpl::userAgent(const WebURL& url) { void WebKitClientImpl::getPluginList(bool refresh, WebPluginListBuilder* builder) { - std::vector<WebPluginInfo> plugins; + std::vector<webkit::npapi::WebPluginInfo> plugins; GetPlugins(refresh, &plugins); for (size_t i = 0; i < plugins.size(); ++i) { - const WebPluginInfo& plugin = plugins[i]; + const webkit::npapi::WebPluginInfo& plugin = plugins[i]; builder->addPlugin( plugin.name, plugin.desc, FilePathStringToWebString(plugin.path.BaseName().value())); for (size_t j = 0; j < plugin.mime_types.size(); ++j) { - const WebPluginMimeType& mime_type = plugin.mime_types[j]; + const webkit::npapi::WebPluginMimeType& mime_type = plugin.mime_types[j]; builder->addMediaTypeToLastPlugin( WebString::fromUTF8(mime_type.mime_type), mime_type.description); |