diff options
author | chase@chromium.org <chase@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-21 00:23:26 +0000 |
---|---|---|
committer | chase@chromium.org <chase@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-21 00:23:26 +0000 |
commit | c85b0ba71b5a55647b01de9d345e46896979033d (patch) | |
tree | ae99657ca1440b7540da473e1bbe6156e43e9be3 /webkit/support | |
parent | 887ba3adc7b32b7df315ef292ae9395fd75653e5 (diff) | |
download | chromium_src-c85b0ba71b5a55647b01de9d345e46896979033d.zip chromium_src-c85b0ba71b5a55647b01de9d345e46896979033d.tar.gz chromium_src-c85b0ba71b5a55647b01de9d345e46896979033d.tar.bz2 |
Revert "Move the NPAPI files from webkit/glue/plugins to webkit/plugins/npapi"
Manually reverting r69755, which broke the tree.
BUG=none
TEST=none
TBR=dmaclach@chromium.org
Review URL: http://codereview.chromium.org/5998002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69771 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/support')
-rw-r--r-- | webkit/support/platform_support_mac.mm | 4 | ||||
-rw-r--r-- | webkit/support/test_webplugin_page_delegate.h | 14 | ||||
-rw-r--r-- | webkit/support/webkit_support.cc | 16 | ||||
-rw-r--r-- | webkit/support/webkit_support_glue.cc | 11 |
4 files changed, 21 insertions, 24 deletions
diff --git a/webkit/support/platform_support_mac.mm b/webkit/support/platform_support_mac.mm index 8ff15a7..7aeb80b 100644 --- a/webkit/support/platform_support_mac.mm +++ b/webkit/support/platform_support_mac.mm @@ -17,7 +17,7 @@ #include "base/string16.h" #include "grit/webkit_resources.h" #include "third_party/WebKit/WebKit/mac/WebCoreSupport/WebSystemInterface.h" -#include "webkit/plugins/npapi/plugin_list.h" +#include "webkit/glue/plugins/plugin_list.h" #import "webkit/support/drt_application_mac.h" #import "webkit/tools/test_shell/mac/DumpRenderTreePasteboard.h" @@ -148,7 +148,7 @@ void AfterInitialize(bool unit_test_mode) { FilePath plugins_dir; PathService::Get(base::DIR_EXE, &plugins_dir); plugins_dir = plugins_dir.AppendASCII("../../../plugins"); - webkit::npapi::PluginList::Singleton()->AddExtraPluginDir(plugins_dir); + NPAPI::PluginList::Singleton()->AddExtraPluginDir(plugins_dir); } void BeforeShutdown() { diff --git a/webkit/support/test_webplugin_page_delegate.h b/webkit/support/test_webplugin_page_delegate.h index 1b4df88..95f2b4a 100644 --- a/webkit/support/test_webplugin_page_delegate.h +++ b/webkit/support/test_webplugin_page_delegate.h @@ -7,27 +7,26 @@ #include <string> -#include "webkit/plugins/npapi/webplugin_delegate_impl.h" -#include "webkit/plugins/npapi/webplugin_page_delegate.h" +#include "webkit/glue/plugins/webplugin_delegate_impl.h" +#include "webkit/glue/plugins/webplugin_page_delegate.h" namespace webkit_support { -class TestWebPluginPageDelegate : public webkit::npapi::WebPluginPageDelegate { +class TestWebPluginPageDelegate : public webkit_glue::WebPluginPageDelegate { public: TestWebPluginPageDelegate() {} virtual ~TestWebPluginPageDelegate() {} - virtual webkit::npapi::WebPluginDelegate* CreatePluginDelegate( + virtual webkit_glue::WebPluginDelegate* CreatePluginDelegate( const FilePath& file_path, const std::string& mime_type) { // We don't need a valid native window handle in layout tests. // So just passing 0. - return webkit::npapi::WebPluginDelegateImpl::Create( - file_path, mime_type, 0); + return WebPluginDelegateImpl::Create(file_path, mime_type, 0); } virtual void CreatedPluginWindow(gfx::PluginWindowHandle handle) {} virtual void WillDestroyPluginWindow(gfx::PluginWindowHandle handle) {} - virtual void DidMovePlugin(const webkit::npapi::WebPluginGeometry& move) {} + virtual void DidMovePlugin(const webkit_glue::WebPluginGeometry& move) {} virtual void DidStartLoadingForPlugin() {} virtual void DidStopLoadingForPlugin() {} virtual void ShowModalHTMLDialogForPlugin( @@ -41,5 +40,4 @@ class TestWebPluginPageDelegate : public webkit::npapi::WebPluginPageDelegate { }; } // namespace webkit_support - #endif // WEBKIT_SUPPORT_TEST_WEBPLUGIN_PAGE_DELEGATE_H_ diff --git a/webkit/support/webkit_support.cc b/webkit/support/webkit_support.cc index d088d3c..26ae930 100644 --- a/webkit/support/webkit_support.cc +++ b/webkit/support/webkit_support.cc @@ -35,13 +35,13 @@ #include "third_party/WebKit/WebKit/chromium/public/WebURLError.h" #include "webkit/appcache/web_application_cache_host_impl.h" #include "webkit/glue/media/video_renderer_impl.h" +#include "webkit/glue/plugins/plugin_list.h" +#include "webkit/glue/plugins/webplugin_impl.h" +#include "webkit/glue/plugins/webplugin_page_delegate.h" +#include "webkit/glue/plugins/webplugininfo.h" #include "webkit/glue/webkit_glue.h" #include "webkit/glue/webkitclient_impl.h" #include "webkit/glue/webmediaplayer_impl.h" -#include "webkit/plugins/npapi/plugin_list.h" -#include "webkit/plugins/npapi/webplugin_impl.h" -#include "webkit/plugins/npapi/webplugin_page_delegate.h" -#include "webkit/plugins/npapi/webplugininfo.h" #include "webkit/support/platform_support.h" #include "webkit/support/test_webplugin_page_delegate.h" #include "webkit/support/test_webkit_client.h" @@ -145,14 +145,14 @@ class TestEnvironment { class WebPluginImplWithPageDelegate : public webkit_support::TestWebPluginPageDelegate, public base::SupportsWeakPtr<WebPluginImplWithPageDelegate>, - public webkit::npapi::WebPluginImpl { + public webkit_glue::WebPluginImpl { public: WebPluginImplWithPageDelegate(WebFrame* frame, const WebPluginParams& params, const FilePath& path, const std::string& mime_type) : webkit_support::TestWebPluginPageDelegate(), - webkit::npapi::WebPluginImpl( + webkit_glue::WebPluginImpl( frame, params, path, mime_type, AsWeakPtr()) {} virtual ~WebPluginImplWithPageDelegate() {} private: @@ -250,9 +250,9 @@ WebKit::WebKitClient* GetWebKitClient() { WebPlugin* CreateWebPlugin(WebFrame* frame, const WebPluginParams& params) { const bool kAllowWildcard = true; - webkit::npapi::WebPluginInfo info; + WebPluginInfo info; std::string actual_mime_type; - if (!webkit::npapi::PluginList::Singleton()->GetPluginInfo( + if (!NPAPI::PluginList::Singleton()->GetPluginInfo( params.url, params.mimeType.utf8(), kAllowWildcard, &info, &actual_mime_type) || !info.enabled) { return NULL; diff --git a/webkit/support/webkit_support_glue.cc b/webkit/support/webkit_support_glue.cc index 85d09db..2308a40 100644 --- a/webkit/support/webkit_support_glue.cc +++ b/webkit/support/webkit_support_glue.cc @@ -7,15 +7,14 @@ #include "base/base_paths.h" #include "base/path_service.h" #include "googleurl/src/gurl.h" -#include "webkit/plugins/npapi/plugin_list.h" +#include "webkit/glue/plugins/plugin_list.h" // Functions needed by webkit_glue. namespace webkit_glue { -void GetPlugins(bool refresh, - std::vector<webkit::npapi::WebPluginInfo>* plugins) { - webkit::npapi::PluginList::Singleton()->GetPlugins(refresh, plugins); +void GetPlugins(bool refresh, std::vector<WebPluginInfo>* plugins) { + NPAPI::PluginList::Singleton()->GetPlugins(refresh, plugins); // Don't load the forked npapi_layout_test_plugin in DRT, we only want to // use the upstream version TestNetscapePlugIn (on Mac, the upstream version // is named WebKitTestNetscapePlugIn). @@ -25,10 +24,10 @@ void GetPlugins(bool refresh, FILE_PATH_LITERAL("libnpapi_layout_test_plugin.so"), }; for (int i = plugins->size() - 1; i >= 0; --i) { - webkit::npapi::WebPluginInfo plugin_info = plugins->at(i); + WebPluginInfo plugin_info = plugins->at(i); for (size_t j = 0; j < arraysize(kPluginBlackList); ++j) { if (plugin_info.path.BaseName() == FilePath(kPluginBlackList[j])) { - webkit::npapi::PluginList::Singleton()->DisablePlugin(plugin_info.path); + NPAPI::PluginList::Singleton()->DisablePlugin(plugin_info.path); plugins->erase(plugins->begin() + i); } } |