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

Unified Diff: content/browser/web_contents/web_contents_impl.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/browser/web_contents/web_contents_impl.h
diff --git a/content/browser/web_contents/web_contents_impl.h b/content/browser/web_contents/web_contents_impl.h
index aa439a1f4a369b2bc11ea901c7b55448a7d3837c..148bb8490e941a5c8f14e9eecc1c3179bce7fe5d 100644
--- a/content/browser/web_contents/web_contents_impl.h
+++ b/content/browser/web_contents/web_contents_impl.h
@@ -277,6 +277,7 @@ class CONTENT_EXPORT WebContentsImpl
virtual gfx::Size GetPreferredSize() const OVERRIDE;
virtual bool GotResponseToLockMouseRequest(bool allowed) OVERRIDE;
virtual bool HasOpener() const OVERRIDE;
+ virtual bool CreatedWithOpener() const OVERRIDE;
virtual void DidChooseColorInColorChooser(SkColor color) OVERRIDE;
virtual void DidEndColorChooser() OVERRIDE;
virtual int DownloadImage(const GURL& url,
@@ -875,6 +876,10 @@ class CONTENT_EXPORT WebContentsImpl
// is closed.
WebContentsImpl* opener_;
+ // True if this tab was opened by another tab. Is not unset when opener is
+ // closed.
+ bool created_with_opener_;
+
#if defined(OS_WIN)
gfx::NativeViewAccessible accessible_parent_;
#endif

Powered by Google App Engine
This is Rietveld 408576698