Chromium Code Reviews| Index: content/browser/web_contents/web_contents_impl.cc |
| diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc |
| index 751a13322bcd7a9697ec1f25da688b11d3f82245..e00309e108c77cddfbb6d784923691a7a6915815 100644 |
| --- a/content/browser/web_contents/web_contents_impl.cc |
| +++ b/content/browser/web_contents/web_contents_impl.cc |
| @@ -14,6 +14,7 @@ |
| #include "base/string_util.h" |
| #include "base/time.h" |
| #include "base/utf_string_conversions.h" |
| +#include "content/browser/browser_plugin/browser_plugin_host.h" |
| #include "content/browser/child_process_security_policy_impl.h" |
| #include "content/browser/debugger/devtools_manager_impl.h" |
| #include "content/browser/dom_storage/session_storage_namespace_impl.h" |
| @@ -320,6 +321,8 @@ WebContentsImpl::WebContentsImpl( |
| java_bridge_dispatcher_host_manager_.reset( |
| new JavaBridgeDispatcherHostManager(this)); |
| #endif |
| + |
| + browser_plugin_host_.reset(new content::BrowserPluginHost(this)); |
| } |
| WebContentsImpl::~WebContentsImpl() { |
| @@ -1146,6 +1149,9 @@ bool WebContentsImpl::NavigateToEntry( |
| dest_render_view_host, |
| entry.GetURL()); |
| + // Tell BrowserPluginHost about the pending cross-process navigation. |
|
Charlie Reis
2012/05/21 18:20:44
Please add TODO to remove this and list the bug nu
Fady Samuel
2012/05/21 19:22:17
Done.
|
| + browser_plugin_host()->OnPendingNavigation(dest_render_view_host); |
| + |
| // Used for page load time metrics. |
| current_load_start_ = base::TimeTicks::Now(); |
| @@ -2730,11 +2736,15 @@ bool WebContentsImpl::CreateRenderViewForRenderManager( |
| int32 max_page_id = |
| GetMaxPageIDForSiteInstance(render_view_host->GetSiteInstance()); |
| + content::RenderProcessHost* embedder_render_process_host = |
| + browser_plugin_host()->embedder_render_process_host(); |
| + int embedder_process_id = |
| + embedder_render_process_host ? embedder_render_process_host->GetID() : -1; |
| if (!static_cast<RenderViewHostImpl*>( |
| render_view_host)->CreateRenderView(string16(), |
| opener_route_id, |
| max_page_id, |
| - -1)) { |
| + embedder_process_id)) { |
| return false; |
| } |