diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-20 23:12:35 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-20 23:12:35 +0000 |
commit | e0e75f67163f77051d8f62d5275dbf40627d5398 (patch) | |
tree | 070d431dc290d9b9a69c79ceeb94ba7574ef1c31 /chrome/renderer/pepper_devices_browsertest.cc | |
parent | 3370e3b7ee18664a43a9977efeab2166624d0a32 (diff) | |
download | chromium_src-e0e75f67163f77051d8f62d5275dbf40627d5398.zip chromium_src-e0e75f67163f77051d8f62d5275dbf40627d5398.tar.gz chromium_src-e0e75f67163f77051d8f62d5275dbf40627d5398.tar.bz2 |
Revert 69755 - Move the NPAPI files from webkit/glue/plugins to webkit/plugins/npapi and put
them in the webkit::npapi namespace.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/6012002
TBR=brettw@chromium.org
Review URL: http://codereview.chromium.org/5961004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69766 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/pepper_devices_browsertest.cc')
-rw-r--r-- | chrome/renderer/pepper_devices_browsertest.cc | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/chrome/renderer/pepper_devices_browsertest.cc b/chrome/renderer/pepper_devices_browsertest.cc index 963975c..e8e0bbe 100644 --- a/chrome/renderer/pepper_devices_browsertest.cc +++ b/chrome/renderer/pepper_devices_browsertest.cc @@ -18,9 +18,9 @@ #include "third_party/WebKit/WebKit/chromium/public/WebPlugin.h" #include "third_party/WebKit/WebKit/chromium/public/WebPluginParams.h" #include "third_party/WebKit/WebKit/chromium/public/WebRect.h" -#include "webkit/plugins/npapi/plugin_instance.h" -#include "webkit/plugins/npapi/plugin_list.h" -#include "webkit/plugins/npapi/webplugin_impl.h" +#include "webkit/glue/plugins/plugin_instance.h" +#include "webkit/glue/plugins/plugin_list.h" +#include "webkit/glue/plugins/webplugin_impl.h" class PepperDeviceTest; @@ -135,9 +135,9 @@ class PepperDeviceTest : public RenderViewTest { virtual void SetUp(); virtual void TearDown(); - webkit::npapi::PluginVersionInfo version_info_; + NPAPI::PluginVersionInfo version_info_; - scoped_ptr<webkit::npapi::WebPluginImpl> plugin_; + scoped_ptr<webkit_glue::WebPluginImpl> plugin_; WebPluginDelegatePepper* pepper_plugin_; // FIXME(brettw): check lifetime. }; @@ -147,7 +147,7 @@ PepperDeviceTest::PepperDeviceTest() { version_info_.file_description = ASCIIToWide("Pepper device test plugin"); version_info_.file_version = ASCIIToWide("1"); version_info_.mime_types = ASCIIToWide(kTestPluginMimeType); - webkit::npapi::PluginEntryPoints entry_points = { + NPAPI::PluginEntryPoints entry_points = { #if !defined(OS_POSIX) || defined(OS_MACOSX) NP_GetEntryPoints, #endif @@ -163,14 +163,14 @@ PepperDeviceTest::~PepperDeviceTest() { void PepperDeviceTest::SetUp() { RenderViewTest::SetUp(); - webkit::npapi::PluginList::Singleton()->RegisterInternalPlugin(version_info_); + NPAPI::PluginList::Singleton()->RegisterInternalPlugin(version_info_); // Create the WebKit plugin with no delegates (this seems to work // sufficiently for the test). WebKit::WebPluginParams params; - plugin_.reset(new webkit::npapi::WebPluginImpl( + plugin_.reset(new webkit_glue::WebPluginImpl( NULL, params, FilePath(), std::string(), - base::WeakPtr<webkit::npapi::WebPluginPageDelegate>())); + base::WeakPtr<webkit_glue::WebPluginPageDelegate>())); // Create a pepper plugin for the RenderView. pepper_plugin_ = WebPluginDelegatePepper::Create( @@ -201,8 +201,7 @@ void PepperDeviceTest::TearDown() { if (pepper_plugin_) pepper_plugin_->PluginDestroyed(); - webkit::npapi::PluginList::Singleton()->UnregisterInternalPlugin( - version_info_.path); + NPAPI::PluginList::Singleton()->UnregisterInternalPlugin(version_info_.path); RenderViewTest::TearDown(); } |