Index: content/public/browser/web_contents.h |
diff --git a/content/public/browser/web_contents.h b/content/public/browser/web_contents.h |
index b7f67e46eaef8e423c4d24d3ff9753bdd5ed2de1..56985a6f3b691aebcb18419fff70003f547c8534 100644 |
--- a/content/public/browser/web_contents.h |
+++ b/content/public/browser/web_contents.h |
@@ -108,6 +108,14 @@ class WebContents : public PageNavigator, |
const CreateParams& params, |
const SessionStorageNamespaceMap& session_storage_namespace_map); |
+ // Similar to Create() above but clones the session storage namespace from |
+ // |opener| if it is non-NULL. If |propage_opener| is true, |opener| is also |
Charlie Reis
2013/07/30 01:26:30
nit: typo in propagate_opener
|
+ // set as the opener of the returned WebContents. |
+ // |
+ // This call should be used e.g. to create a popup window. |
+ CONTENT_EXPORT static WebContents* CreateWithOpener( |
+ const CreateParams& params, WebContents* opener, bool propagate_opener); |
+ |
// Adds/removes a callback called on creation of each new WebContents. |
typedef base::Callback<void(WebContents*)> CreatedCallback; |
CONTENT_EXPORT static void AddCreatedCallback( |