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

Unified Diff: chrome/plugin/webplugin_delegate_stub.cc

Issue 181014: Eliminate remaining WebCore dependencies from webplugin_impl.cc... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 4 months 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
Index: chrome/plugin/webplugin_delegate_stub.cc
===================================================================
--- chrome/plugin/webplugin_delegate_stub.cc (revision 25087)
+++ chrome/plugin/webplugin_delegate_stub.cc (working copy)
@@ -25,6 +25,9 @@
using WebKit::WebBindings;
using WebKit::WebCursorInfo;
+using webkit_glue::WebPlugin;
+using webkit_glue::WebPluginDelegate;
+using webkit_glue::WebPluginResourceClient;
class FinishDestructionTask : public Task {
public:
@@ -152,15 +155,16 @@
// PluginThread::current()->Send(new PluginProcessHostMsg_MapNativeViewId(
// params.containing_window, &parent));
#endif
- delegate_ = WebPluginDelegate::Create(path, mime_type_, parent);
- if (delegate_) {
- webplugin_ = new WebPluginProxy(
- channel_, instance_id_, delegate_, page_url_);
+ webplugin_ = new WebPluginProxy(channel_, instance_id_, page_url_);
#if defined(OS_WIN)
- if (!webplugin_->SetModalDialogEvent(params.modal_dialog_event))
- return;
+ if (!webplugin_->SetModalDialogEvent(params.modal_dialog_event))
+ return;
#endif
+
+ delegate_ = WebPluginDelegate::Create(path, mime_type_, parent);
+ if (delegate_) {
+ webplugin_->set_delegate(delegate_);
*result = delegate_->Initialize(
params.url, argn, argv, argc, webplugin_, params.load_manually);
}

Powered by Google App Engine
This is Rietveld 408576698