summaryrefslogtreecommitdiffstats
path: root/chrome/plugin/webplugin_delegate_stub.cc
diff options
context:
space:
mode:
authorchase@chromium.org <chase@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-20 23:42:40 +0000
committerchase@chromium.org <chase@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-20 23:42:40 +0000
commitb6badfa6a538f889025db775662fe61fcb45dc37 (patch)
treed12fb54a46443e18a9fa9a671392966ba6751202 /chrome/plugin/webplugin_delegate_stub.cc
parente0e75f67163f77051d8f62d5275dbf40627d5398 (diff)
downloadchromium_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 'chrome/plugin/webplugin_delegate_stub.cc')
-rw-r--r--chrome/plugin/webplugin_delegate_stub.cc19
1 files changed, 11 insertions, 8 deletions
diff --git a/chrome/plugin/webplugin_delegate_stub.cc b/chrome/plugin/webplugin_delegate_stub.cc
index ff0652d..0540adf 100644
--- a/chrome/plugin/webplugin_delegate_stub.cc
+++ b/chrome/plugin/webplugin_delegate_stub.cc
@@ -20,7 +20,7 @@
#include "skia/ext/platform_device.h"
#include "third_party/WebKit/WebKit/chromium/public/WebBindings.h"
#include "third_party/WebKit/WebKit/chromium/public/WebCursorInfo.h"
-#include "webkit/glue/plugins/webplugin_delegate_impl.h"
+#include "webkit/plugins/npapi/webplugin_delegate_impl.h"
#include "webkit/glue/webcursor.h"
#if defined(ENABLE_GPU)
@@ -29,13 +29,15 @@
using WebKit::WebBindings;
using WebKit::WebCursorInfo;
-using webkit_glue::WebPlugin;
-using webkit_glue::WebPluginResourceClient;
+using webkit::npapi::WebPlugin;
+using webkit::npapi::WebPluginResourceClient;
class FinishDestructionTask : public Task {
public:
- FinishDestructionTask(WebPluginDelegateImpl* delegate, WebPlugin* webplugin)
- : delegate_(delegate), webplugin_(webplugin) { }
+ FinishDestructionTask(webkit::npapi::WebPluginDelegateImpl* delegate,
+ WebPlugin* webplugin)
+ : delegate_(delegate), webplugin_(webplugin) {
+ }
void Run() {
// WebPlugin must outlive WebPluginDelegate.
@@ -46,8 +48,8 @@ class FinishDestructionTask : public Task {
}
private:
- WebPluginDelegateImpl* delegate_;
- WebPlugin* webplugin_;
+ webkit::npapi::WebPluginDelegateImpl* delegate_;
+ webkit::npapi::WebPlugin* webplugin_;
};
WebPluginDelegateStub::WebPluginDelegateStub(
@@ -185,7 +187,8 @@ void WebPluginDelegateStub::OnInit(const PluginMsg_Init_Params& params,
webplugin_ = new WebPluginProxy(
channel_, instance_id_, page_url_, params.containing_window,
params.host_render_view_routing_id);
- delegate_ = WebPluginDelegateImpl::Create(path, mime_type_, parent);
+ delegate_ = webkit::npapi::WebPluginDelegateImpl::Create(
+ path, mime_type_, parent);
if (delegate_) {
webplugin_->set_delegate(delegate_);
*result = delegate_->Initialize(params.url,