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

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

Issue 212703005: Preserve Page::openedByDOM state across process swaps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Tie opened_by_dom with opener. Created 6 years, 9 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 4cbbcec679ac4453ec930b28183b212f5fb6aa31..4a0ad86c233874a3c95ce4cd26bc539df26fe4c5 100644
--- a/content/public/browser/web_contents.h
+++ b/content/public/browser/web_contents.h
@@ -456,6 +456,11 @@ class WebContents : public PageNavigator,
// Does this have an opener associated with it?
virtual bool HasOpener() const = 0;
+ // True if this WebContents was created with an opener. HasOpener() becomes
+ // calls if the opener is closed while this remains true. (Relevant for
+ // whether window.close() is allowed.)
Charlie Reis 2014/04/05 01:41:25 I'm having trouble reading this. s/calls/false/?
davidben 2014/04/07 17:57:52 Removed the additional method for now since we're
+ virtual bool CreatedWithOpener() const = 0;
+
typedef base::Callback<void(
int, /* id */
int, /* HTTP status code */

Powered by Google App Engine
This is Rietveld 408576698