Prevent the browser process from creating duplicate RenderWidgetHosts

This is a follow up CL for crrev.com/238575. The same problem exists when creating RenderWidgetHosts and this CL address this.

BUG=312016

Review URL: https://codereview.chromium.org/105033002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@238750 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/content/browser/web_contents/web_contents_impl.h b/content/browser/web_contents/web_contents_impl.h
index 7dbdf66..8926611 100644
--- a/content/browser/web_contents/web_contents_impl.h
+++ b/content/browser/web_contents/web_contents_impl.h
@@ -414,9 +414,11 @@
       int main_frame_route_id,
       const ViewHostMsg_CreateWindow_Params& params,
       SessionStorageNamespace* session_storage_namespace) OVERRIDE;
-  virtual void CreateNewWidget(int route_id,
+  virtual void CreateNewWidget(int render_process_id,
+                               int route_id,
                                blink::WebPopupType popup_type) OVERRIDE;
-  virtual void CreateNewFullscreenWidget(int route_id) OVERRIDE;
+  virtual void CreateNewFullscreenWidget(int render_process_id,
+                                         int route_id) OVERRIDE;
   virtual void ShowCreatedWindow(int route_id,
                                  WindowOpenDisposition disposition,
                                  const gfx::Rect& initial_pos,
@@ -733,7 +735,8 @@
   int CreateOpenerRenderViews(SiteInstance* instance);
 
   // Helper for CreateNewWidget/CreateNewFullscreenWidget.
-  void CreateNewWidget(int route_id,
+  void CreateNewWidget(int render_process_id,
+                       int route_id,
                        bool is_fullscreen,
                        blink::WebPopupType popup_type);