Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4258)

Unified Diff: chrome/renderer/pepper_devices_browsertest.cc

Issue 5996003: Revert "Revert 69755 - Move the NPAPI files from webkit/glue/plugins to webkit/plugins/npapi" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/renderer/pepper_devices.cc ('k') | chrome/renderer/pepper_plugin_delegate_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/pepper_devices_browsertest.cc
diff --git a/chrome/renderer/pepper_devices_browsertest.cc b/chrome/renderer/pepper_devices_browsertest.cc
index e8e0bbe090e84659480fd25a0be6f47a5d0cefc7..963975cd7b6e09ed2a06c7b80425952153ea7f03 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/glue/plugins/plugin_instance.h"
-#include "webkit/glue/plugins/plugin_list.h"
-#include "webkit/glue/plugins/webplugin_impl.h"
+#include "webkit/plugins/npapi/plugin_instance.h"
+#include "webkit/plugins/npapi/plugin_list.h"
+#include "webkit/plugins/npapi/webplugin_impl.h"
class PepperDeviceTest;
@@ -135,9 +135,9 @@ class PepperDeviceTest : public RenderViewTest {
virtual void SetUp();
virtual void TearDown();
- NPAPI::PluginVersionInfo version_info_;
+ webkit::npapi::PluginVersionInfo version_info_;
- scoped_ptr<webkit_glue::WebPluginImpl> plugin_;
+ scoped_ptr<webkit::npapi::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);
- NPAPI::PluginEntryPoints entry_points = {
+ webkit::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();
- NPAPI::PluginList::Singleton()->RegisterInternalPlugin(version_info_);
+ webkit::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_glue::WebPluginImpl(
+ plugin_.reset(new webkit::npapi::WebPluginImpl(
NULL, params, FilePath(), std::string(),
- base::WeakPtr<webkit_glue::WebPluginPageDelegate>()));
+ base::WeakPtr<webkit::npapi::WebPluginPageDelegate>()));
// Create a pepper plugin for the RenderView.
pepper_plugin_ = WebPluginDelegatePepper::Create(
@@ -201,7 +201,8 @@ void PepperDeviceTest::TearDown() {
if (pepper_plugin_)
pepper_plugin_->PluginDestroyed();
- NPAPI::PluginList::Singleton()->UnregisterInternalPlugin(version_info_.path);
+ webkit::npapi::PluginList::Singleton()->UnregisterInternalPlugin(
+ version_info_.path);
RenderViewTest::TearDown();
}
« no previous file with comments | « chrome/renderer/pepper_devices.cc ('k') | chrome/renderer/pepper_plugin_delegate_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698