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

Unified Diff: content/renderer/render_view_impl.cc

Issue 10830072: Browser Plugin: New Implementation (Renderer Side) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Initialize content shell resources Created 8 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
« no previous file with comments | « content/renderer/browser_plugin/mock_browser_plugin_manager.cc ('k') | ipc/ipc_message_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index ab56160037af39d10757ce9d95e0bca0415a88f2..c14703332c1adcecfa0e42d21e769d213342ef8f 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -55,6 +55,8 @@
#include "content/public/renderer/navigation_state.h"
#include "content/public/renderer/render_view_observer.h"
#include "content/public/renderer/render_view_visitor.h"
+#include "content/renderer/browser_plugin/browser_plugin.h"
+#include "content/renderer/browser_plugin/browser_plugin_manager.h"
#include "content/renderer/browser_plugin/old/old_browser_plugin.h"
#include "content/renderer/browser_plugin/old/browser_plugin_channel_manager.h"
#include "content/renderer/browser_plugin/old/browser_plugin_constants.h"
@@ -2317,6 +2319,13 @@ WebPlugin* RenderViewImpl::createPlugin(WebFrame* frame,
return plugin;
}
+ // TODO(fsamuel): Remove this once upstreaming of the new browser plugin is
+ // complete.
+ if (UTF16ToASCII(params.mimeType) == content::kBrowserPluginNewMimeType) {
+ return content::BrowserPluginManager::Get()->
+ CreateBrowserPlugin(this, frame, params);
+ }
+
if (UTF16ToASCII(params.mimeType) == content::kBrowserPluginMimeType)
return content::old::BrowserPlugin::Create(this, frame, params);
« no previous file with comments | « content/renderer/browser_plugin/mock_browser_plugin_manager.cc ('k') | ipc/ipc_message_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698