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

Unified Diff: content/public/browser/web_contents.h

Issue 20924002: Try to restore window.opener when opening blocked popups (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sessionStorage+opener Created 7 years, 5 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
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(

Powered by Google App Engine
This is Rietveld 408576698