Chromium Code Reviews| Index: content/public/browser/web_contents.h |
| diff --git a/content/public/browser/web_contents.h b/content/public/browser/web_contents.h |
| index 98c79247aec25c919a5593a67da809b1bf7f4684..557e8f601f5759d7b2a6e6273cb6883f219be4ad 100644 |
| --- a/content/public/browser/web_contents.h |
| +++ b/content/public/browser/web_contents.h |
| @@ -632,12 +632,23 @@ class WebContents : public PageNavigator, |
| // to see what it should do. |
| virtual bool FocusLocationBarByDefault() = 0; |
| - // Does this have an opener associated with it? |
| + // Does this have an opener (cooresponding to window.opener in |
| + // JavaScript)associated with it? |
|
Avi (use Gerrit)
2017/02/03 21:42:37
space after ) plz
typo: corresponding
|
| virtual bool HasOpener() const = 0; |
| // Returns the opener if HasOpener() is true, or nullptr otherwise. |
| virtual WebContents* GetOpener() const = 0; |
| + // Returns true if this WebContents was opened by another WebContents, even |
| + // if the opener was suppressed. In contrast to HasOpener/GetOpener, the |
| + // original opener doesn't reflect window.opener which can be suppressed or |
| + // updated. |
| + virtual bool HasOriginalOpener() const = 0; |
| + |
| + // Returns the original opener if HasOriginalOpener() is true, or nullptr |
| + // otherwise. |
| + virtual WebContents* GetOriginalOpener() const = 0; |
| + |
| typedef base::Callback<void( |
| int, /* id */ |
| int, /* HTTP status code */ |