Index: content/public/browser/web_contents_delegate.h |
=================================================================== |
--- content/public/browser/web_contents_delegate.h (revision 243184) |
+++ content/public/browser/web_contents_delegate.h (working copy) |
@@ -294,6 +294,8 @@ |
// Allows delegate to control whether a WebContents will be created. Returns |
// true to allow the creation. Default is to allow it. In cases where the |
// delegate handles the creation/navigation itself, it will use |target_url|. |
+ // The embedder has to synchronously adopt |route_id| or else the view will |
+ // be destroyed. |
virtual bool ShouldCreateWebContents( |
WebContents* web_contents, |
int route_id, |