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

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: rebase 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..368c9d8f75de6998074e38e04f6d72a6c7a8e67b 100644
--- a/content/public/browser/web_contents.h
+++ b/content/public/browser/web_contents.h
@@ -98,7 +98,8 @@ class WebContents : public PageNavigator,
// the SessionStorageNamespaceMap of the WebContents. This can happen if
// you duplicate a WebContents, try to reconstitute it from a saved state,
// or when you create a new WebContents based on another one (eg., when
- // servicing a window.open() call).
+ // servicing a window.open() call). If |opener| is non-NULL, the created
+ // WebContents will have its opener set to |opener|.
//
// You do not want to call this. If you think you do, make sure you completely
// understand when SessionStorageNamespace objects should be cloned, why
@@ -106,7 +107,8 @@ class WebContents : public PageNavigator,
// can happen if you share the object.
CONTENT_EXPORT static WebContents* CreateWithSessionStorage(
const CreateParams& params,
- const SessionStorageNamespaceMap& session_storage_namespace_map);
+ const SessionStorageNamespaceMap& session_storage_namespace_map,
+ WebContents* opener);
// Adds/removes a callback called on creation of each new WebContents.
typedef base::Callback<void(WebContents*)> CreatedCallback;

Powered by Google App Engine
This is Rietveld 408576698